java.lang.NullPointerException

QOS.ch JIRA | Karl Pietrzak | 9 years ago
  1. 0

    I don't think the LogBack Eclipse plugin works with Europa (Eclipse 3.3.0). I had to change the plugin.xml to the following: """ <?xml version="1.0" encoding="UTF-8"?> <plugin name="Logback Console Plugin" id="ch.qos.logback.eclipse" version="1.0.1" provider-name="ch.qos.logback.eclipse"> <runtime> <library name="logbackPlugin.jar" /> </runtime> <requires> <import plugin="org.eclipse.core.boot"/> <import plugin="org.eclipse.core.runtime"/> <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.swt"/> <import plugin="org.eclipse.ui"/> </requires> <extension point="org.eclipse.ui.views"> <category name="Logback" id="ch.qos.logback.eclipse"> </category> <view name="Logback View" icon="icons/sample.gif" category="ch.qos.logback.eclipse" class="ch.qos.logback.eclipse.views.LogbackView" id="ch.qos.logback.eclipse.views.LogbackView"> </view> </extension> </plugin> """ And even then, I get the following exception: java.lang.NullPointerException at ch.qos.logback.eclipse.PluginLogger.log(PluginLogger.java:104) at ch.qos.logback.eclipse.PluginLogger.log(PluginLogger.java:70) at ch.qos.logback.eclipse.PluginLogger.logInfo(PluginLogger.java:26) at ch.qos.logback.eclipse.views.LogbackView.startServerThread(LogbackView.java:260) at ch.qos.logback.eclipse.views.LogbackView.initServer(LogbackView.java:253) at ch.qos.logback.eclipse.views.LogbackView.init(LogbackView.java:282) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:343) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2086) at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1027) at org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:1008) at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3684) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3681) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3657) at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165) at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109) at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:239) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247) at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:128) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) Anyone have better luck getting the Eclipse Logback plugin to work?

    QOS.ch JIRA | 9 years ago | Karl Pietrzak
    java.lang.NullPointerException
  2. 0

    I don't think the LogBack Eclipse plugin works with Europa (Eclipse 3.3.0). I had to change the plugin.xml to the following: """ <?xml version="1.0" encoding="UTF-8"?> <plugin name="Logback Console Plugin" id="ch.qos.logback.eclipse" version="1.0.1" provider-name="ch.qos.logback.eclipse"> <runtime> <library name="logbackPlugin.jar" /> </runtime> <requires> <import plugin="org.eclipse.core.boot"/> <import plugin="org.eclipse.core.runtime"/> <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.swt"/> <import plugin="org.eclipse.ui"/> </requires> <extension point="org.eclipse.ui.views"> <category name="Logback" id="ch.qos.logback.eclipse"> </category> <view name="Logback View" icon="icons/sample.gif" category="ch.qos.logback.eclipse" class="ch.qos.logback.eclipse.views.LogbackView" id="ch.qos.logback.eclipse.views.LogbackView"> </view> </extension> </plugin> """ And even then, I get the following exception: java.lang.NullPointerException at ch.qos.logback.eclipse.PluginLogger.log(PluginLogger.java:104) at ch.qos.logback.eclipse.PluginLogger.log(PluginLogger.java:70) at ch.qos.logback.eclipse.PluginLogger.logInfo(PluginLogger.java:26) at ch.qos.logback.eclipse.views.LogbackView.startServerThread(LogbackView.java:260) at ch.qos.logback.eclipse.views.LogbackView.initServer(LogbackView.java:253) at ch.qos.logback.eclipse.views.LogbackView.init(LogbackView.java:282) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:343) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2086) at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1027) at org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:1008) at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3684) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3681) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3657) at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165) at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109) at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:239) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247) at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:128) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) Anyone have better luck getting the Eclipse Logback plugin to work?

    QOS.ch JIRA | 9 years ago | Karl Pietrzak
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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.NullPointerException

      No message provided

      at ch.qos.logback.eclipse.PluginLogger.log()
    2. ch.qos.logback
      LogbackView.init
      1. ch.qos.logback.eclipse.PluginLogger.log(PluginLogger.java:104)
      2. ch.qos.logback.eclipse.PluginLogger.log(PluginLogger.java:70)
      3. ch.qos.logback.eclipse.PluginLogger.logInfo(PluginLogger.java:26)
      4. ch.qos.logback.eclipse.views.LogbackView.startServerThread(LogbackView.java:260)
      5. ch.qos.logback.eclipse.views.LogbackView.initServer(LogbackView.java:253)
      6. ch.qos.logback.eclipse.views.LogbackView.init(LogbackView.java:282)
      6 frames
    3. Eclipse UI
      WorkbenchPage$19.run
      1. org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:343)
      2. org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
      3. org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
      4. org.eclipse.ui.internal.Perspective.showView(Perspective.java:2086)
      5. org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1027)
      6. org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:1008)
      7. org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3684)
      7 frames
    4. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      1 frame
    5. Eclipse UI
      WorkbenchPage.showView
      1. org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3681)
      2. org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3657)
      2 frames
    6. Workbench
      HandlerProxy.execute
      1. org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)
      2. org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109)
      3. org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77)
      4. org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:239)
      4 frames
    7. Commands
      ParameterizedCommand.executeWithChecks
      1. org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
      2. org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429)
      2 frames
    8. Workbench
      SlaveHandlerService.executeCommand
      1. org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
      2. org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
      2 frames
    9. Eclipse UI
      ShowViewMenu$3.run
      1. org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:128)
      1 frame
    10. JFace
      ActionContributionItem$5.handleEvent
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      2. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
      3. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
      4. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
      4 frames
    11. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
      4 frames
    12. Eclipse UI
      Workbench$4.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
      4. org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
      4 frames
    13. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
      1 frame
    14. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
      1 frame
    15. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    16. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
      1 frame
    17. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
      1 frame
    18. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
      4 frames
    19. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    20. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1173)
      3 frames