Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App does not work with MobileIron #2576

Closed
bfattori opened this issue Aug 12, 2016 · 2 comments
Closed

App does not work with MobileIron #2576

bfattori opened this issue Aug 12, 2016 · 2 comments

Comments

@bfattori
Copy link

bfattori commented Aug 12, 2016

Did you verify this is a real problem by searching [Stack Overflow]

Yes

Tell us about the problem

I created an application using TNS 2.0.1 and wrapped it with MobileIron to use for an internal mobile application. The application runs well unwrapped, but as soon as I try to launch the wrapped app, it just dies. The important parts of the logs:

08-09 14:35:21.256 29366 30414 D ActivityManager:  Launching forgepond.com.tdameritrade.PCEvaluate, updated priority
08-09 14:35:21.356  6621  6621 W ResourcesManager: getTopLevelResources: /data/app/forgepond.com.tdameritrade.PCEvaluate-1/base.apk / 1.0 running in forgepond.com.tdameritrade.PCEvaluate rsrc of package null
08-09 14:35:21.496  6621  6621 D LockSmithWrapper: Current handler=class com.android.internal.os.RuntimeInit$UncaughtHandler
08-09 14:35:21.556  6621  6621 D LockSmithWrapper: calcJails() invoked
08-09 14:35:21.686  6621  6621 D LockSmithWrapper: jailing: forgepond.com.mobileiron.android.securebrowser  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.736  6621  6621 D LockSmithWrapper: jailing: forgepond.com.enterproid.divide.pim  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.746  6621  6621 D LockSmithWrapper: jailing: forgepond.com.tf.thinkdroid.mobileIron  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.756  6621  6621 D LockSmithWrapper: jailing: forgepond.org.openintents.filemanager  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.756  6621  6621 D LockSmithWrapper: jailing: forgepond.com.mobileiron.orion.android  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.756  6621  6621 D LockSmithWrapper: jailing: forgepond.com.tdameritrade.PCEvaluate  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.766  6621  6621 D LockSmithWrapper: calcJails() invoked
08-09 14:35:21.846  6621  6621 D LockSmithWrapper: jailing: forgepond.com.mobileiron.android.securebrowser  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.876  6621  6621 D LockSmithWrapper: jailing: forgepond.com.enterproid.divide.pim  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.896  6621  6621 D LockSmithWrapper: jailing: forgepond.com.tf.thinkdroid.mobileIron  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.906  6621  6621 D LockSmithWrapper: jailing: forgepond.org.openintents.filemanager  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.906  6621  6621 D LockSmithWrapper: jailing: forgepond.com.mobileiron.orion.android  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.906  6621  6621 D LockSmithWrapper: jailing: forgepond.com.tdameritrade.PCEvaluate  dataDir : /data/user/0/ dataDirCanonicalPath : /data/data/
08-09 14:35:21.916  6621  6621 W System.err: remove failed: ENOENT (No such file or directory) : /data/user/0/forgepond.com.tdameritrade.PCEvaluate/app_aclogs._ac
08-09 14:35:21.946  6621  6621 D AndroidRuntime: Shutting down VM
08-09 14:35:21.956  6621  6621 E ExceptionHandler: Unable to instantiate activity ComponentInfo{forgepond.com.tdameritrade.PCEvaluate/com.tns.NativeScriptActivity}: java.lang.NullPointerException: Attempt to read from field 'int com.tns.Runtime.currentObjectId' on a null object reference
08-09 14:35:21.956  6621  6621 E ExceptionHandler: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{forgepond.com.tdameritrade.PCEvaluate/com.tns.NativeScriptActivity}: java.lang.NullPointerException: Attempt to read from field 'int com.tns.Runtime.currentObjectId' on a null object reference
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3093)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.ActivityThread.access$1100(ActivityThread.java:221)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.os.Handler.dispatchMessage(Handler.java:102)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.os.Looper.loop(Looper.java:158)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.ActivityThread.main(ActivityThread.java:7224)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at java.lang.reflect.Method.invoke(Native Method)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
08-09 14:35:21.956  6621  6621 E ExceptionHandler: Caused by: java.lang.NullPointerException: Attempt to read from field 'int com.tns.Runtime.currentObjectId' on a null object reference
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at com.tns.Runtime.initInstance(Runtime.java:334)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at com.tns.NativeScriptActivity.<init>(NativeScriptActivity.java:7)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at java.lang.Class.newInstance(Native Method)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.Instrumentation.newActivity(Instrumentation.java:1095)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3083)
08-09 14:35:21.956  6621  6621 E ExceptionHandler:  ... 9 more
08-09 14:35:21.956  6621  6621 I Process : Sending signal. PID: 6621 SIG: 9
08-09 14:35:21.976 29366   714 I ActivityManager: Process forgepond.com.tdameritrade.PCEvaluate (pid 6621)(adj 0) has died(243,150)
08-09 14:35:21.976 29366   714 D ActivityManager: isAutoRunBlockedApp:: forgepond.com.tdameritrade.PCEvaluate, Auto Run ON
08-09 14:35:21.996 29366   714 I ActivityManager: Start proc 6636:forgepond.com.tdameritrade.PCEvaluate/u0a75 for activity forgepond.com.tdameritrade.PCEvaluate/com.tns.NativeScriptActivityFPAlias
08-09 14:35:22.006  6636  6636 E Zygote  : accessInfo : 0
08-09 14:35:22.006  6636  6636 W SELinux : SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=forgepond.com.tdameritrade.PCEvaluate 

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.0.1
  • Cross-platform modules: 2.0.1
  • Runtime(s): iOS 2.0.1 / Android 2.0.0
  • Plugin(s):
    "nativescript-unit-test-runner": "^0.2.8",
    "nativescript-webview-interface": "^1.2.0",
    "tns-core-modules": "^2.0.1"

Please tell us how to recreate the issue in as much detail as possible.

I can only say to wrap an application and try to run it. My application is super simple with most of the functionality being provided by a remote server. I use the webview to display forms which can be filled out. The remainder of the app is a list view to select the form to fill out, and a login screen.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

I don't know what is causing it, but I've included the important parts of the log, above.
Mobile Iron Wrapper Version: 7.5.3.0.14-0

@bfattori
Copy link
Author

bfattori commented Aug 15, 2016

Moved to NativeScript/android#539

@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant