Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25825] Android: JNIUtil error message on app launch

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-03-02T22:43:45.000+0000
Affected Version/sRelease 7.1.0, Release 7.2.0
Fix Version/sRelease 7.1.0
ComponentsAndroid
Labelsn/a
ReporterEwan Harris
AssigneeGary Mathews
Created2018-03-01T11:00:15.000+0000
Updated2018-03-06T21:50:20.000+0000

Description

Description

When an app launches I'm seeing the below error logged to the console, it doesn't look to cause any issues to the app but it might give people a scare when upgrading to 7.1.0. From what I can tell it occurs on any app
[ERROR] JNIUtil: Couldn't find Java field ID: proxySupport Lorg/appcelerator/kroll/KrollProxySupport;
[WARN]  W/System.err: java.lang.NoSuchFieldError: no "Lorg/appcelerator/kroll/KrollProxySupport;" field "proxySupport" in class "Lorg/appcelerator/kroll/KrollObject;" or its superclasses
[WARN]  W/System.err: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeInit(Native Method)
[WARN]  W/System.err: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:95)
[WARN]  W/System.err: 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:207)
[WARN]  W/System.err: 	at org.appcelerator.kroll.KrollRuntime.syncInit(KrollRuntime.java:363)
[WARN]  W/System.err: 	at org.appcelerator.kroll.KrollRuntime.incrementActivityRefCount(KrollRuntime.java:386)
[WARN]  W/System.err: 	at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:614)
[WARN]  W/System.err: 	at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:175)
[WARN]  W/System.err: 	at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:160)
[WARN]  W/System.err: 	at android.app.Activity.performCreate(Activity.java:6760)
[WARN]  W/System.err: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
[WARN]  W/System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2686)
[WARN]  W/System.err: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2819)
[WARN]  W/System.err: 	at android.app.ActivityThread.-wrap12(ActivityThread.java)
[WARN]  W/System.err: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532)
[WARN]  W/System.err: 	at android.os.Handler.dispatchMessage(Handler.java:102)
[WARN]  W/System.err: 	at android.os.Looper.loop(Looper.java:154)
[WARN]  W/System.err: 	at android.app.ActivityThread.main(ActivityThread.java:6321)
[WARN]  W/System.err: 	at java.lang.reflect.Method.invoke(Native Method)
[WARN]  W/System.err: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
[WARN]  W/System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
[WARN]  TiApplication: (main) [78,78] Registering module with name already in use.

Steps to reproduce

1. Create a default app using appc new/ti create 2. Build the app for Android

Actual

On app launch the error/warning log above is shown

Expected

No error/warning log

Comments

  1. Ewan Harris 2018-03-02

    Gary put up a PR to fix this here https://github.com/appcelerator/titanium_mobile/pull/9899. [~amukherjee] could we maybe slot this in for GA, I'm guessing we'd get a few reports/scares from people from that log
  2. Abir Mukherjee 2018-03-02

    Yes, it's fine, 7.1.0.
  3. Gary Mathews 2018-03-02

    master: https://github.com/appcelerator/titanium_mobile/pull/9899 7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9902
  4. Lokesh Choudhary 2018-03-02

    FR Passed.
  5. Lokesh Choudhary 2018-03-02

    PR's merged.
  6. Lokesh Choudhary 2018-03-06

    Verified the fix in SDK 7.2.0.v20180305152636 & 7.1.0.v20180306061214. Closing. Studio Ver: 5.0.0.201712081732 SDK Ver: 7.2.0.v20180302144729 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.12 Appc CLI: 7.0.2 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 --- Android 6.0.1 ⇨ google Nexus 6P --- Android 8.0.0

JSON Source