JetStyle exception

I just installed the JetStyle plugin for checkstyle, chose a checkstyle.xml config file, but I got a stacktrace (in #3260):

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(41,543),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.clearScanResults(JetStylePlugin.java:864)
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.runCheckStyle(JetStylePlugin.java:600)
at com.intabulas.intellij.plugin.jetstyle.actions.JetStyleFileAction.actionPerformed(JetStyleFileAction.java:69)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:52)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:105)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:32)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:31)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

--
Guillaume Laforge
http://glaforge.free.fr/weblog

5 comments
Comment actions Permalink

Hi there

Which version of the plugin are you using?
Did you install it via the Plugin Manager?

I haven't started using Irida yet, but I'll install it and see if I can
reproduce the exception.

--
Dennis Lundberg
JetStyle project admin

Guillaume Laforge wrote:

I just installed the JetStyle plugin for checkstyle, chose a checkstyle.xml config file, but I got a stacktrace (in #3260):

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(41,543),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.clearScanResults(JetStylePlugin.java:864)
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.runCheckStyle(JetStylePlugin.java:600)
at com.intabulas.intellij.plugin.jetstyle.actions.JetStyleFileAction.actionPerformed(JetStyleFileAction.java:69)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:52)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:105)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:32)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:31)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

--
Guillaume Laforge
http://glaforge.free.fr/weblog

0
Comment actions Permalink

Yes, I'm using the latest version from the plugin manager.

0
Comment actions Permalink

OK, I can confirm this Exception in #3165.

I added some more logging to see why this is happening. Here's a partial
of the log:

...

2005-03-26 11:31:07,255 INFO -
plugin.jetstyle.JetStylePlugin -
JetStylePlugin(com.intellij.openapi.project.impl.ProjectImpl@fa0094)
2005-03-26 11:31:08,126 INFO -
plugin.jetstyle.JetStylePlugin - projectOpened()
2005-03-26 11:31:08,126 INFO -
plugin.jetstyle.JetStylePlugin - initToolWindow()

...

2005-03-26 11:31:10,049 INFO -
.ant.impl.AntConfigurationImpl - Start up
2005-03-26 11:31:10,199 INFO -
mpl.ant.reflect.AntClassloader - Dropping classloader
2005-03-26 11:31:11,862 INFO -
plugin.jetstyle.JetStylePlugin -
JetStylePlugin(com.intellij.openapi.project.impl.ProjectImpl@bd9750)

...

Now this has me confused. The initialization of the ToolWindow and the
TreeNodes are done in projectOpened() which implements
com.intellij.openapi.components.ProjectComponent#projectOpened(). This
is done at time 22852. But after that, the plugin is created again at
time 26588.

Does anybody know why this happens or what I can do to work around it?
It doesn't happen in IDEA 4.5.4.

--
Dennis Lundberg
JetStyle project admin

Guillaume Laforge wrote:

I just installed the JetStyle plugin for checkstyle, chose a checkstyle.xml config file, but I got a stacktrace (in #3260):

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(41,543),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.clearScanResults(JetStylePlugin.java:864)
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.runCheckStyle(JetStylePlugin.java:600)
at com.intabulas.intellij.plugin.jetstyle.actions.JetStyleFileAction.actionPerformed(JetStyleFileAction.java:69)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:52)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:105)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:32)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:31)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

--
Guillaume Laforge
http://glaforge.free.fr/weblog


0
Comment actions Permalink

Hi all

I have tried using #3281 and it works a little better. But there is
still an NPE which seems to come from within IDEA. The tracker item for
that NPE is:
http://www.intellij.net/tracker/idea/viewSCR?publicId=45472

--
Dennis Lundberg

Guillaume Laforge wrote:

I just installed the JetStyle plugin for checkstyle, chose a checkstyle.xml config file, but I got a stacktrace (in #3260):

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(41,543),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.clearScanResults(JetStylePlugin.java:864)
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.runCheckStyle(JetStylePlugin.java:600)
at com.intabulas.intellij.plugin.jetstyle.actions.JetStyleFileAction.actionPerformed(JetStyleFileAction.java:69)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:52)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:105)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:32)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:31)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

--
Guillaume Laforge
http://glaforge.free.fr/weblog

0
Comment actions Permalink

This problem has been fixed in JetStyle 0.7.

--
Dennis Lundberg

Guillaume Laforge wrote:

I just installed the JetStyle plugin for checkstyle, chose a checkstyle.xml config file, but I got a stacktrace (in #3260):

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(41,543),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.clearScanResults(JetStylePlugin.java:864)
at com.intabulas.intellij.plugin.jetstyle.JetStylePlugin.runCheckStyle(JetStylePlugin.java:600)
at com.intabulas.intellij.plugin.jetstyle.actions.JetStyleFileAction.actionPerformed(JetStyleFileAction.java:69)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:52)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:105)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:32)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:31)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

--
Guillaume Laforge
http://glaforge.free.fr/weblog

0

Please sign in to leave a comment.