java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Lokesh Choudhary,
  • 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.
    via by Lokesh Choudhary,
    • java.lang.IllegalArgumentException: Invalid argument passed to securityManager property. Does not conform to SecurityManagerProtocol at ti.modules.titanium.network.HTTPClientProxy.handleCreationDict(HTTPClientProxy.java:73) at org.appcelerator.kroll.KrollProxy.handleCreationArgs(KrollProxy.java:227) at org.appcelerator.kroll.KrollProxy.setupProxy(KrollProxy.java:135) at org.appcelerator.kroll.KrollProxy.createProxy(KrollProxy.java:143) at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:135) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
    No Bugmate found.