java.io.FileNotFoundException

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.

  • 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
    via by Giulio De Giorgio,
  • 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
    via by Giulio De Giorgio,
  • [Android] Service not working
    via GitHub by rotorgames
    ,
  • this is a test
    via GitHub by door43app
    ,
  • Test
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
  • ffmpeg for cortex a-53?
    via GitHub by Barganax
    ,
    • java.io.FileNotFoundException: Resources/app.js at android.content.res.AssetManager.openAsset(Native Method) at android.content.res.AssetManager.open(AssetManager.java:313) at android.content.res.AssetManager.open(AssetManager.java:287) at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:62) at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103) at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151) at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:107) at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:543) at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144) at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:96) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    Users with the same issue

    winer222winer222
    1398 times, last one,
    Unknown UserUnknown User
    2 times, last one,
    AdrienAdrien
    50 times, last one,
    Alexandru PopaAlexandru Popa
    7 times, last one,
    bluebunntybluebunnty
    59 times, last one,
    42 more bugmates