FATAL exception main (RuntimeException)

There are no errors in the source (osmand) I used eclipse and sdk emulator 2.2 checkout from googlecode (osmand application) My code : public void onCreate(){ super.onCreate(); routingHelper = new RoutingHelper(OsmandSettings.getApplicationMode(OsmandSettings.getPrefs(OsmandAp­plication.this)), OsmandApplication.this, player); manager = new ResourceManager(this); daynightHelper = new DayNightHelper(this); uiHandler = new Handler(); startApplication(); } These are all errors in logcat : 05-04 07:53:01.807: ERROR / AndroidRuntime (308): FATAL EXCEPTION: main 05-04 07:53:01.807: ERROR / AndroidRuntime (308): java.lang.RuntimeException: Unable to create application net.osmand.activities.OsmandApplication: java.lang.IllegalArgumentException: InputStream can not be null 05-04 07:53:01.807: ERROR / AndroidRuntime (308): Has android.app.ActivityThread.handleBindApplication (ActivityThread.java: 4247) 05-04 07:53:01.807: ERROR / AndroidRuntime (308): Has android.app.ActivityThread.access $ 3000 (ActivityThread.java: 125) 05-04 07:53:01.807: ERROR / AndroidRuntime (308): at $ android.app.ActivityThread H.handleMessage (ActivityThread.java: 2071) 05-04 07:53:01.807: ERROR / AndroidRuntime (308): Has android.os.Handler.dispatchMessage (Handler.java: 99) 05-04 07:53:01.807: ERROR / AndroidRuntime (308): Has android.os.Looper.loop (Looper.java: 123) 05-04 07:53:01.807: ERROR / AndroidRuntime (308): Has android.app.ActivityThread.main (ActivityThread.java: 4627) 05-04 07:53:01.807: ERROR / AndroidRuntime (308): Has java.lang.reflect.Method.invokeNative (Native Method 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at java.lang.reflect.Method.invoke(Method.java:521) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at dalvik.system.NativeStart.main(Native Method) 05-04 07:53:01.807: ERROR/AndroidRuntime(308): Caused by: java.lang.IllegalArgumentException: InputStream cannot be null 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at javax.xml.parsers.SAXParser.parse(SAXParser.java:185) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.OsmandRenderingRulesParser.parseRenderingRules(OsmandRend­eringRulesParser.java: 104) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.BaseOsmandRender.init(BaseOsmandRender.java:41) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.RendererRegistry.loadRenderer(RendererRegistry.java: 116) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.RendererRegistry.loadRenderer(RendererRegistry.java: 103) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.RendererRegistry.getRenderer(RendererRegistry.java: 93) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.RendererRegistry.getRenderer(RendererRegistry.java: 84) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.RendererRegistry.defaultRender(RendererRegistry.java: 54) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.OsmandRenderer.(OsmandRenderer.java:239) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.render.MapRenderRepositories.(MapRenderRepositories.java: 79) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.ResourceManager.(ResourceManager.java:98) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at net.osmand.activities.OsmandApplication.onCreate(OsmandApplication.java: 51) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java: 969) 05-04 07:53:01.807: ERROR/AndroidRuntime(308):at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4244) 05-04 07:53:01.807: ERROR/AndroidRuntime(308): ... 10 more

以上就是FATAL exception main (RuntimeException)的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏