java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided

Appcelerator JIRA | Andreas Hyden | 1 year ago
  1. 0

    App sometimes crash during startup when launched from the Android notification area. How to reproduce - Make sure app is not running - Receive push notifications for app - Click on push notification in the Android notification area to launch the app. - (If another notification is received at the moment the app is launching, it seems to greatly increase the chance of a crash.) - App sometimes crashes Crash log: E/AndroidRuntime(10783): FATAL EXCEPTION: main E/AndroidRuntime(10783): Process: hk.com.beamstyle.snakehead, PID: 10783 E/AndroidRuntime(10783): java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2856) E/AndroidRuntime(10783): at android.app.ActivityThread.access$1700(ActivityThread.java:156) E/AndroidRuntime(10783): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440) E/AndroidRuntime(10783): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(10783): at android.os.Looper.loop(Looper.java:157) E/AndroidRuntime(10783): at android.app.ActivityThread.main(ActivityThread.java:5872) E/AndroidRuntime(10783): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(10783): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674) E/AndroidRuntime(10783): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(10783): Caused by: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.props(Settings.java:58) E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83) E/AndroidRuntime(10783): at com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651) E/AndroidRuntime(10783): at com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72) E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2845) E/AndroidRuntime(10783): ... 10 more E/ActivityManager( 719): App crashed! Process: hk.com.beamstyle.snakehead

    Appcelerator JIRA | 1 year ago | Andreas Hyden
    java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided
  2. 0

    App sometimes crash during startup when launched from the Android notification area. How to reproduce - Make sure app is not running - Receive push notifications for app - Click on push notification in the Android notification area to launch the app. - (If another notification is received at the moment the app is launching, it seems to greatly increase the chance of a crash.) - App sometimes crashes Crash log: E/AndroidRuntime(10783): FATAL EXCEPTION: main E/AndroidRuntime(10783): Process: hk.com.beamstyle.snakehead, PID: 10783 E/AndroidRuntime(10783): java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2856) E/AndroidRuntime(10783): at android.app.ActivityThread.access$1700(ActivityThread.java:156) E/AndroidRuntime(10783): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440) E/AndroidRuntime(10783): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(10783): at android.os.Looper.loop(Looper.java:157) E/AndroidRuntime(10783): at android.app.ActivityThread.main(ActivityThread.java:5872) E/AndroidRuntime(10783): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(10783): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674) E/AndroidRuntime(10783): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(10783): Caused by: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.props(Settings.java:58) E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83) E/AndroidRuntime(10783): at com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651) E/AndroidRuntime(10783): at com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72) E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2845) E/AndroidRuntime(10783): ... 10 more E/ActivityManager( 719): App crashed! Process: hk.com.beamstyle.snakehead

    Appcelerator JIRA | 1 year ago | Andreas Hyden
    java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided
  3. 0

    Hi, I'm following the [Enabling Access Logging in FishEye|http://confluence.atlassian.com/display/FISHEYE/Enabling+Access+Logging+in+FishEye] document. However, when I start my FishEye instance after creating the {{jetty-web.xml}} file, I see this error: {noformat} 2011-04-25 17:04:56,099 ERROR [main ] fisheye.app com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer-doStart - Could not start DefaultReviewItemIndexer schedule: Application Context not initialised. java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponentByClass(SpringContext.java:73) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.doStart(DefaultReviewItemIndexer.java:599) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:246) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) 2011-04-25 17:04:56,107 WARN [main ] fisheye.app com.cenqua.fisheye.config.DefaultRepositoryManager-runRepositories - Problem starting repository java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponentByClass(SpringContext.java:73) at com.cenqua.fisheye.rep.RepositoryHandle.getIndexingContext(RepositoryHandle.java:572) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:306) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(DefaultRepositoryManager.java:259) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepositories(DefaultRepositoryManager.java:287) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:497) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:250) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) 2011-04-25 17:04:56,109 ERROR [main ] fisheye.app com.cenqua.fisheye.ctl.Run-mainImpl - Could not start quartz schedule: Application Context not initialised. java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponent(SpringContext.java:65) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:254) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) {noformat} This problem is not reproducible in MAC neither in Linux, only on Windows, but I'm not sure why.

    Atlassian JIRA | 6 years ago | Felipe Kraemer
    java.lang.RuntimeException: Application Context not initialised.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, I'm following the [Enabling Access Logging in FishEye|http://confluence.atlassian.com/display/FISHEYE/Enabling+Access+Logging+in+FishEye] document. However, when I start my FishEye instance after creating the {{jetty-web.xml}} file, I see this error: {noformat} 2011-04-25 17:04:56,099 ERROR [main ] fisheye.app com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer-doStart - Could not start DefaultReviewItemIndexer schedule: Application Context not initialised. java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponentByClass(SpringContext.java:73) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.doStart(DefaultReviewItemIndexer.java:599) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:246) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) 2011-04-25 17:04:56,107 WARN [main ] fisheye.app com.cenqua.fisheye.config.DefaultRepositoryManager-runRepositories - Problem starting repository java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponentByClass(SpringContext.java:73) at com.cenqua.fisheye.rep.RepositoryHandle.getIndexingContext(RepositoryHandle.java:572) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:306) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(DefaultRepositoryManager.java:259) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepositories(DefaultRepositoryManager.java:287) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:497) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:250) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) 2011-04-25 17:04:56,109 ERROR [main ] fisheye.app com.cenqua.fisheye.ctl.Run-mainImpl - Could not start quartz schedule: Application Context not initialised. java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponent(SpringContext.java:65) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:254) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) {noformat} This problem is not reproducible in MAC neither in Linux, only on Windows, but I'm not sure why.

    Atlassian JIRA | 6 years ago | Felipe Kraemer
    java.lang.RuntimeException: Application Context not initialised.
  6. 0

    Hi, I'm following the [Enabling Access Logging in FishEye|http://confluence.atlassian.com/display/FISHEYE/Enabling+Access+Logging+in+FishEye] document. However, when I start my FishEye instance after creating the {{jetty-web.xml}} file, I see this error: {noformat} 2011-04-25 17:04:56,099 ERROR [main ] fisheye.app com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer-doStart - Could not start DefaultReviewItemIndexer schedule: Application Context not initialised. java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponentByClass(SpringContext.java:73) at com.atlassian.crucible.activity.lucene.DefaultReviewItemIndexer.doStart(DefaultReviewItemIndexer.java:599) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:246) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) 2011-04-25 17:04:56,107 WARN [main ] fisheye.app com.cenqua.fisheye.config.DefaultRepositoryManager-runRepositories - Problem starting repository java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponentByClass(SpringContext.java:73) at com.cenqua.fisheye.rep.RepositoryHandle.getIndexingContext(RepositoryHandle.java:572) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:306) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(DefaultRepositoryManager.java:259) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepositories(DefaultRepositoryManager.java:287) at com.cenqua.fisheye.config.RootConfig.startRepositories(RootConfig.java:497) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:250) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) 2011-04-25 17:04:56,109 ERROR [main ] fisheye.app com.cenqua.fisheye.ctl.Run-mainImpl - Could not start quartz schedule: Application Context not initialised. java.lang.RuntimeException: Application Context not initialised. at com.cenqua.fisheye.config.SpringContext.getApplicationContext(SpringContext.java:34) at com.cenqua.fisheye.config.SpringContext.getComponent(SpringContext.java:65) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:254) at com.cenqua.fisheye.ctl.Run.main(Run.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42) {noformat} This problem is not reproducible in MAC neither in Linux, only on Windows, but I'm not sure why.

    Atlassian JIRA | 6 years ago | Felipe Kraemer
    java.lang.RuntimeException: Application Context not initialised.

    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.lang.RuntimeException

      Application context not provided

      at com.appcelerator.aps.Settings.props()
    2. com.appcelerator.aps
      IntentReceiver.onReceive
      1. com.appcelerator.aps.Settings.props(Settings.java:58)
      2. com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83)
      3. com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651)
      4. com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleReceiver(ActivityThread.java:2845)
      2. android.app.ActivityThread.access$1700(ActivityThread.java:156)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:157)
      6. android.app.ActivityThread.main(ActivityThread.java:5872)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame