[Bug 111] New: Eclipse Europa doesn't work with the Console Plugin: NullPointerException

http://bugzilla.qos.ch/show_bug.cgi?id=111 Summary: Eclipse Europa doesn't work with the Console Plugin: NullPointerException Product: Console Plugin Version: unspecified Platform: PC OS/Version: Windows Status: NEW Severity: blocker Priority: P4 Component: interface AssignedTo: logback-dev@qos.ch ReportedBy: kap4020@gmail.com 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? -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 ------- Comment #1 from noreply.sebastien@qos.ch 2007-11-18 16:30 ------- Hello Karl, I've tried the plugin and it works fine. As far as I can see, the NPE is thrown when the plugin tries to log the fact the it *succeeded* to start the server that will recieve logs... Are there other plugins in your Eclipse install that behave unexpectedly? -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 ------- Comment #2 from kap4020@gmail.com 2007-11-18 18:15 ------- (In reply to comment #1)
Hello Karl,
I've tried the plugin and it works fine.
As far as I can see, the NPE is thrown when the plugin tries to log the fact the it *succeeded* to start the server that will recieve logs... Are there other plugins in your Eclipse install that behave unexpectedly?
Minor correction on my part: I'm running Eclipse 3.3.1.1. No other plugins behave this way, but the only other 3rd party plugin I have is Subclipse (http://subclipse.tigris.org/). I'll try on my friend's Eclipse installation, but it seems at least the plugin.xml file needs to be updated. -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 ------- Comment #3 from noreply.sebastien@qos.ch 2007-11-18 18:30 ------- Hello Karl, I am using Eclipse 3.3.1.1, too… :-) What is the problem you experience if the unmodified plugin.xml file? -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 ------- Comment #4 from kap4020@gmail.com 2007-11-18 20:00 ------- (In reply to comment #3)
Hello Karl,
I am using Eclipse 3.3.1.1, too… :-)
Haha, it seems we have similar tastes in IDEs, Sébastien. =)
What is the problem you experience if the unmodified plugin.xml file?
Well, after a "eclipse.exe -clean" or two, I managed to get the view to load. The .log file shows a few non-critical warnings, though: The .log file says: !ENTRY org.eclipse.update.configurator 2007-11-17 16:11:01.099 !MESSAGE Plugin does not have a valid identifier: plugins/ch.qos.logback.eclipse_1.0.1/ !ENTRY org.eclipse.update.configurator 2007-11-17 16:11:01.100 !MESSAGE Plugin does not have a valid version: plugins/ch.qos.logback.eclipse_1.0.1/ !ENTRY org.eclipse.update.configurator 2007-11-17 16:11:01.655 !MESSAGE Could not install bundle plugins/ch.qos.logback.eclipse_1.0.1/ Error converting plugin at C:\Program Files\eclipse\plugins\ch.qos.logback.eclipse_1.0.1. !ENTRY org.eclipse.equinox.registry 4 1 2007-11-17 16:14:47.102 !MESSAGE Unable to create view ID ch.qos.logback.eclipse.views.LogbackView: Plug-in ch.qos.logback.eclipse was unable to load class ch.qos.logback.eclipse.views.LogbackView. !STACK 0 java.lang.NoClassDefFoundError: org/eclipse/ui/part/ViewPart at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413) But the Logback Console View loads. Now I get Bug #57, which was supposedly fixed in Logback 0.9.8 (which is what I'm using): java.lang.NoClassDefFoundError: org/slf4j/MDC at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:125) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:489) at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:483) at ch.qos.logback.classic.Logger.info(Logger.java:573) Does this make sense? -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 ------- Comment #5 from kap4020@gmail.com 2007-11-18 20:03 ------- UPDATE: I fixed this last error (java.lang.NoClassDefFoundError: org/slf4j/MDC) by switching from slf4j-api-1.4.0.jar (the JAR that comes with logback 0.9.8) to slf4j-api-1.4.3.jar from http://www.slf4j.org/download.html . -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 noreply.sebastien@qos.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #6 from noreply.sebastien@qos.ch 2007-11-21 20:25 ------- Hello Karl, Glad to see that everything is going better now! :-) Since the plugin runs in Europa, I'm closing this bug. Thanks for the feedback! -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=111 noreply.sebastien@qos.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
participants (1)
-
bugzilla-daemon@pixie.qos.ch