java.lang.IllegalArgumentException: Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol

Appcelerator JIRA | Lokesh Choudhary | 1 year ago
  1. 0

    h5.Steps To Reproduce: 1. Create a classic android app from studio or appc CLI. 2. Build it to an android device/emulator. h5.Actual Results: 1. The app crashes at the splash screen with error: {code} [ERROR] : KrollProxy: (KrollRuntimeThread) [189,189] Error creating proxy [ERROR] : KrollProxy: java.lang.IllegalArgumentException: Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol [ERROR] : KrollProxy: at ti.modules.titanium.network.HTTPClientProxy.handleCreationDict(HTTPClientProxy.java:73) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.handleCreationArgs(KrollProxy.java:227) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.setupProxy(KrollProxy.java:135) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.createProxy(KrollProxy.java:143) [ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [ERROR] : KrollProxy: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : KrollProxy: at android.os.Looper.loop(Looper.java:135) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [INFO] : art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: obj == null [INFO] : art: art/runtime/check_jni.cc:65] in call to CallVoidMethodA [INFO] : art: art/runtime/check_jni.cc:65] from void org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(java.lang.String, java.lang.String, org.appcelerator.kroll.KrollProxySupport) [INFO] : art: art/runtime/check_jni.cc:65] "KrollRuntimeThread" prio=5 tid=13 Runnable [INFO] : art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12e22c40 self=0xac3a1000 [INFO] : art: art/runtime/check_jni.cc:65] | sysTid=6687 nice=0 cgrp=apps sched=0/0 handle=0xac395d80 [INFO] : art: art/runtime/check_jni.cc:65] | state=R schedstat=( 202113649 48744684 191 ) utm=18 stm=2 core=2 HZ=100 [INFO] : art: art/runtime/check_jni.cc:65] | stack=0xafafa000-0xafafc000 stackSize=1052KB [INFO] : art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held) [INFO] : art: art/runtime/check_jni.cc:65] native: #00 pc 00004c58 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23) [INFO] : art: art/runtime/check_jni.cc:65] native: #01 pc 000034c1 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8) [INFO] : art: art/runtime/check_jni.cc:65] native: #02 pc 002526c5 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84) [INFO] : art: art/runtime/check_jni.cc:65] native: #03 pc 002361a3 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+162) [INFO] : art: art/runtime/check_jni.cc:65] native: #04 pc 000b1215 /system/lib/libart.so (art::JniAbort(char const*, char const*)+620) [INFO] : art: art/runtime/check_jni.cc:65] native: #05 pc 000b1945 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68) [INFO] : art: art/runtime/check_jni.cc:65] native: #06 pc 001b2b83 /system/lib/libart.so (art::JNI::CallVoidMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+614) [INFO] : art: art/runtime/check_jni.cc:65] native: #07 pc 00085f47 /data/app/com.app.test1c-1/lib/arm/libkroll-v8.so (_JNIEnv::CallVoidMethodA(_jobject*, _jmethodID*, jvalue*)+8) [INFO] : art: art/runtime/check_jni.cc:65] native: #08 pc 000dce53 /data/app/com.app.test1c-1/lib/arm/libkroll-v8.so (titanium::network::HTTPClientProxy::open(v8::Arguments const&)+246) [INFO] : art: art/runtime/check_jni.cc:65] native: #09 pc 0014dfbc /data/app/com.app.test1c-1/lib/arm/libkroll-v8.so (???) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native method) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [INFO] : art: art/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:98) [INFO] : art: art/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [INFO] : art: art/runtime/check_jni.cc:65] {code} 2. We saw that when services are enabled on app creation CLI adds this code to the app.js which is causing the crash. {code} // added during app creation. this will automatically login to // ACS for your application and then fire an event (see below) // when connected or errored. if you do not use ACS in your // application as a client, you should remove this block (function(){ var ACS = require('ti.cloud'), env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development', username = Ti.App.Properties.getString('acs-username-'+env), password = Ti.App.Properties.getString('acs-password-'+env); // if not configured, just return if (!env || !username || !password) { return; } /** * Appcelerator Cloud (ACS) Admin User Login Logic * * fires login.success with the user as argument on success * fires login.failed with the result as argument on error */ ACS.Users.login({ login:username, password:password, }, function(result){ if (env==='development') { Ti.API.info('ACS Login Results for environment `'+env+'`:'); Ti.API.info(result); } if (result && result.success && result.users && result.users.length){ Ti.App.fireEvent('login.success',result.users[0],env); } else { Ti.App.fireEvent('login.failed',result,env); } }); {code} 3. When services are enabled after the app has been created the app launches fine. h5.Expected Results: 1. The app should not crash after launch on splash screen.

    Appcelerator JIRA | 1 year ago | Lokesh Choudhary
    java.lang.IllegalArgumentException: Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol
  2. 0

    h5.Steps To Reproduce: 1. Create a classic android app from studio or appc CLI. 2. Build it to an android device/emulator. h5.Actual Results: 1. The app crashes at the splash screen with error: {code} [ERROR] : KrollProxy: (KrollRuntimeThread) [189,189] Error creating proxy [ERROR] : KrollProxy: java.lang.IllegalArgumentException: Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol [ERROR] : KrollProxy: at ti.modules.titanium.network.HTTPClientProxy.handleCreationDict(HTTPClientProxy.java:73) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.handleCreationArgs(KrollProxy.java:227) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.setupProxy(KrollProxy.java:135) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollProxy.createProxy(KrollProxy.java:143) [ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [ERROR] : KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [ERROR] : KrollProxy: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : KrollProxy: at android.os.Looper.loop(Looper.java:135) [ERROR] : KrollProxy: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [INFO] : art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: obj == null [INFO] : art: art/runtime/check_jni.cc:65] in call to CallVoidMethodA [INFO] : art: art/runtime/check_jni.cc:65] from void org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(java.lang.String, java.lang.String, org.appcelerator.kroll.KrollProxySupport) [INFO] : art: art/runtime/check_jni.cc:65] "KrollRuntimeThread" prio=5 tid=13 Runnable [INFO] : art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12e22c40 self=0xac3a1000 [INFO] : art: art/runtime/check_jni.cc:65] | sysTid=6687 nice=0 cgrp=apps sched=0/0 handle=0xac395d80 [INFO] : art: art/runtime/check_jni.cc:65] | state=R schedstat=( 202113649 48744684 191 ) utm=18 stm=2 core=2 HZ=100 [INFO] : art: art/runtime/check_jni.cc:65] | stack=0xafafa000-0xafafc000 stackSize=1052KB [INFO] : art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held) [INFO] : art: art/runtime/check_jni.cc:65] native: #00 pc 00004c58 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23) [INFO] : art: art/runtime/check_jni.cc:65] native: #01 pc 000034c1 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8) [INFO] : art: art/runtime/check_jni.cc:65] native: #02 pc 002526c5 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84) [INFO] : art: art/runtime/check_jni.cc:65] native: #03 pc 002361a3 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+162) [INFO] : art: art/runtime/check_jni.cc:65] native: #04 pc 000b1215 /system/lib/libart.so (art::JniAbort(char const*, char const*)+620) [INFO] : art: art/runtime/check_jni.cc:65] native: #05 pc 000b1945 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68) [INFO] : art: art/runtime/check_jni.cc:65] native: #06 pc 001b2b83 /system/lib/libart.so (art::JNI::CallVoidMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+614) [INFO] : art: art/runtime/check_jni.cc:65] native: #07 pc 00085f47 /data/app/com.app.test1c-1/lib/arm/libkroll-v8.so (_JNIEnv::CallVoidMethodA(_jobject*, _jmethodID*, jvalue*)+8) [INFO] : art: art/runtime/check_jni.cc:65] native: #08 pc 000dce53 /data/app/com.app.test1c-1/lib/arm/libkroll-v8.so (titanium::network::HTTPClientProxy::open(v8::Arguments const&)+246) [INFO] : art: art/runtime/check_jni.cc:65] native: #09 pc 0014dfbc /data/app/com.app.test1c-1/lib/arm/libkroll-v8.so (???) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native method) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [INFO] : art: art/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:98) [INFO] : art: art/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135) [INFO] : art: art/runtime/check_jni.cc:65] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [INFO] : art: art/runtime/check_jni.cc:65] {code} 2. We saw that when services are enabled on app creation CLI adds this code to the app.js which is causing the crash. {code} // added during app creation. this will automatically login to // ACS for your application and then fire an event (see below) // when connected or errored. if you do not use ACS in your // application as a client, you should remove this block (function(){ var ACS = require('ti.cloud'), env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development', username = Ti.App.Properties.getString('acs-username-'+env), password = Ti.App.Properties.getString('acs-password-'+env); // if not configured, just return if (!env || !username || !password) { return; } /** * Appcelerator Cloud (ACS) Admin User Login Logic * * fires login.success with the user as argument on success * fires login.failed with the result as argument on error */ ACS.Users.login({ login:username, password:password, }, function(result){ if (env==='development') { Ti.API.info('ACS Login Results for environment `'+env+'`:'); Ti.API.info(result); } if (result && result.success && result.users && result.users.length){ Ti.App.fireEvent('login.success',result.users[0],env); } else { Ti.App.fireEvent('login.failed',result,env); } }); {code} 3. When services are enabled after the app has been created the app launches fine. h5.Expected Results: 1. The app should not crash after launch on splash screen.

    Appcelerator JIRA | 1 year ago | Lokesh Choudhary
    java.lang.IllegalArgumentException: Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol
  3. 0

    JBoss Community / Mailing Lists

    sourceforge.net | 6 months ago
    java.lang.IllegalArgumentException: Illegal argument passed to ParameterDesc.setJavaType. The java type javax.xml.soap.SOAPElement does not match the mode inout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol

      at ti.modules.titanium.network.HTTPClientProxy.handleCreationDict()
    2. ti.modules.titanium
      HTTPClientProxy.handleCreationDict
      1. ti.modules.titanium.network.HTTPClientProxy.handleCreationDict(HTTPClientProxy.java:73)
      1 frame
    3. org.appcelerator.kroll
      V8Runtime.handleMessage
      1. org.appcelerator.kroll.KrollProxy.handleCreationArgs(KrollProxy.java:227)
      2. org.appcelerator.kroll.KrollProxy.setupProxy(KrollProxy.java:135)
      3. org.appcelerator.kroll.KrollProxy.createProxy(KrollProxy.java:143)
      4. org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
      5. org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177)
      6. org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299)
      7. org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203)
      7 frames
    4. Android Platform
      Looper.loop
      1. android.os.Handler.dispatchMessage(Handler.java:98)
      2. android.os.Looper.loop(Looper.java:135)
      2 frames
    5. org.appcelerator.kroll
      KrollRuntime$KrollRuntimeThread.run
      1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
      1 frame