java.io.FileNotFoundException: Resources/app.js

Appcelerator JIRA | Giulio De Giorgio | 2 years ago
  1. 0

    Running an app compiled with mobile sdk 4.0.0.beta2 throw an alert showing a security violation because the device is rooted and then close. It also log a misleading error on the console: {code} [ERROR] : TiAssetHelper: Error while reading asset "Resources/app.js": [ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/app.js [ERROR] : TiAssetHelper: at android.content.res.AssetManager.openAsset(Native Method) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:313) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:287) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:107) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:543) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:96) [ERROR] : TiAssetHelper: at android.app.Activity.performCreate(Activity.java:5933) [ERROR] : TiAssetHelper: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) [ERROR] : TiAssetHelper: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) [ERROR] : TiAssetHelper: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) [ERROR] : TiAssetHelper: at android.app.ActivityThread.access$800(ActivityThread.java:144) [ERROR] : TiAssetHelper: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) [ERROR] : TiAssetHelper: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiAssetHelper: at android.os.Looper.loop(Looper.java:135) [ERROR] : TiAssetHelper: at android.app.ActivityThread.main(ActivityThread.java:5221) [ERROR] : TiAssetHelper: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiAssetHelper: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiAssetHelper: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) [ERROR] : TiAssetHelper: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) [ERROR] : TiAssetHelper: Error while reading asset "Resources/app.js": [ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/app.js [ERROR] : TiAssetHelper: at android.content.res.AssetManager.openAsset(Native Method) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:313) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:287) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [ERROR] : TiAssetHelper: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiAssetHelper: at android.os.Looper.loop(Looper.java:135) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) {code} This issue is happening on a rooted nexus 4 and on a non-rooted nexus 7(2012) (that was previously rooted before last os update). The android version is 5.0.1 and 5.0.2

    Appcelerator JIRA | 2 years ago | Giulio De Giorgio
    java.io.FileNotFoundException: Resources/app.js
  2. 0

    Running an app compiled with mobile sdk 4.0.0.beta2 throw an alert showing a security violation because the device is rooted and then close. It also log a misleading error on the console: {code} [ERROR] : TiAssetHelper: Error while reading asset "Resources/app.js": [ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/app.js [ERROR] : TiAssetHelper: at android.content.res.AssetManager.openAsset(Native Method) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:313) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:287) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:107) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:543) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144) [ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:96) [ERROR] : TiAssetHelper: at android.app.Activity.performCreate(Activity.java:5933) [ERROR] : TiAssetHelper: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) [ERROR] : TiAssetHelper: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) [ERROR] : TiAssetHelper: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) [ERROR] : TiAssetHelper: at android.app.ActivityThread.access$800(ActivityThread.java:144) [ERROR] : TiAssetHelper: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) [ERROR] : TiAssetHelper: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiAssetHelper: at android.os.Looper.loop(Looper.java:135) [ERROR] : TiAssetHelper: at android.app.ActivityThread.main(ActivityThread.java:5221) [ERROR] : TiAssetHelper: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiAssetHelper: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiAssetHelper: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) [ERROR] : TiAssetHelper: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) [ERROR] : TiAssetHelper: Error while reading asset "Resources/app.js": [ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/app.js [ERROR] : TiAssetHelper: at android.content.res.AssetManager.openAsset(Native Method) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:313) [ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:287) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203) [ERROR] : TiAssetHelper: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiAssetHelper: at android.os.Looper.loop(Looper.java:135) [ERROR] : TiAssetHelper: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) {code} This issue is happening on a rooted nexus 4 and on a non-rooted nexus 7(2012) (that was previously rooted before last os update). The android version is 5.0.1 and 5.0.2

    Appcelerator JIRA | 2 years ago | Giulio De Giorgio
    java.io.FileNotFoundException: Resources/app.js
  3. 0

    [Android] Service not working

    GitHub | 2 years ago | rotorgames
    java.io.FileNotFoundException: appdata-private://FindMe/services/boot.js
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    this is a test

    GitHub | 2 years ago | door43app
    java.io.FileNotFoundException: data/c715f14251430b88a803b0094d5c18b9
  6. 0

    I only have Arabic as my sour...

    GitHub | 2 years ago | door43app
    java.io.FileNotFoundException: data/c715f14251430b88a803b0094d5c18b9
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.io.FileNotFoundException

    Resources/app.js

    at android.content.res.AssetManager.openAsset()
  2. Android Platform
    AssetManager.open
    1. android.content.res.AssetManager.openAsset(Native Method)
    2. android.content.res.AssetManager.open(AssetManager.java:313)
    3. android.content.res.AssetManager.open(AssetManager.java:287)
    3 frames
  3. org.appcelerator.kroll
    KrollAssetHelper.readAsset
    1. org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62)
    1 frame
  4. org.appcelerator.titanium
    TiRootActivity.onCreate
    1. org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103)
    2. org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151)
    3. org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:107)
    4. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:543)
    5. org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)
    6. org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:96)
    6 frames
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5933)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
    5. android.app.ActivityThread.access$800(ActivityThread.java:144)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5221)
    9 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    2 frames