TabSwitch exception under IDEA 6 RC1

Just got the following right after using TabSwitch on JI6 RC1:

Error during dispatching of
java.awt.event.FocusEvent[FOCUS_LOST,temporary,opposite=com.intellij.openapi.editor.impl.EditorComponentImpl[,0,0,1376x753,alignmentX=0.0,alignmentY=0.0,border=,flags=50331656,maximumSize=,minimumSize=,preferredSize=]]
on
javax.swing.JList[,0,0,153x190,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EmptyBorder@a6db8,flags=50332008,maximumSize=,minimumSize=,preferredSize=,fixedCellHeight=-1,fixedCellWidth=-1,horizontalScrollIncrement=-1,selectionBackground=javax.swing.plaf.ColorUIResource[r=147,g=160,b=112],selectionForeground=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],visibleRowCount=8,layoutOrientation=0]
java.lang.NullPointerException
at com.intellij.openapi.ui.DialogWrapper.dispose(DialogWrapper.java:347)
at
org.intellij.ideaplugins.tabswitch.IdeaDialog.dispose(IdeaDialog.java:62)
at
org.intellij.ideaplugins.tabswitch.OpenFilesDialog$1.focusLost(OpenFilesDialog.java:33)
at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:172)
at java.awt.Component.processFocusEvent(Component.java:5380)
at java.awt.Component.processEvent(Component.java:5244)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:840)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:530)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:150)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
at java.awt.SentEvent.dispatch(SentEvent.java:50)
at
java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:161)
at
java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:188)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:595)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:150)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:150)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

7 comments
Comment actions Permalink

Hello Amnon,

While this is a TabSwitch bug (it calls DialogWrapper.dispose() twice), we've
added a check in the core so that it doesn't result in a crash.

AG> Just got the following right after using TabSwitch on JI6 RC1:
AG>
AG> Error during dispatching of
AG> java.awt.event.FocusEvent[FOCUS_LOST,temporary,opposite=com.intellij
AG> .openapi.editor.impl.EditorComponentImpl[,0,0,1376x753,alignmentX=0.
AG> 0,alignmentY=0.0,border=,flags=50331656,maximumSize=,minimumSize=,pr
AG> eferredSize=]]
AG> on
AG> javax.swing.JList[,0,0,153x190,alignmentX=0.0,alignmentY=0.0,border=
AG> javax.swing.border.EmptyBorder@a6db8,flags=50332008,maximumSize=,min
AG> imumSize=,preferredSize=,fixedCellHeight=-1,fixedCellWidth=-1,horizo
AG> ntalScrollIncrement=-1,selectionBackground=javax.swing.plaf.ColorUIR
AG> esource[r=147,g=160,b=112],selectionForeground=javax.swing.plaf.Colo
AG> rUIResource[r=0,g=0,b=0],visibleRowCount=8,layoutOrientation=0]
AG> java.lang.NullPointerException
AG> at
AG> com.intellij.openapi.ui.DialogWrapper.dispose(DialogWrapper.java:347
AG> )

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Dmitry Jemerov wrote:

Hello Amnon,

While this is a TabSwitch bug (it calls DialogWrapper.dispose() twice),
we've added a check in the core so that it doesn't result in a crash.


Nice, thanks!

Amnon

0
Comment actions Permalink

This is fixed in version 1.6 of TabSwitch, available from the plugin manager. This version also adds scroll bars if the open file list is very large.

Bas

0
Comment actions Permalink

Hallo Bas,
I want to use my favourite Plugin but this was happend:

Bad version number in .class file
com.intellij.diagnostic.PluginException: Bad version number in .class file
at com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:109)
at com.intellij.openapi.application.impl.ApplicationImpl.d(ApplicationImpl.java:319)
at com.intellij.openapi.application.impl.ApplicationImpl.(ApplicationImpl.java:119) at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java) at com.intellij.idea.IdeaApplication.(IdeaApplication.java:9) at com.intellij.idea.Main.a(Main.java:35) at com.intellij.idea.Main.access$000(Main.java:14) at com.intellij.idea.Main$2.proceed(Main.java:1) at com.intellij.ide.a.d.h$1.a(h$1.java:4) at com.intellij.ide.a.a.u.a(u.java) at com.intellij.ide.a.d.c.a(c.java:18) at com.intellij.ide.a.d.c.a(c.java:6) at com.intellij.ide.a.d.h.a(h.java:56) at com.intellij.idea.Main.mainImpl(Main.java:57) at com.intellij.idea.Main.start(Main.java:6) 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:585) at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:2) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:72) at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:68) at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:49) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:35) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:307) ... 20 more java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:72) at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:68) at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:49) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:35) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.intellij.openapi.components.impl.ComponentManagerImpl.loadComponentsConfiguration(ComponentManagerImpl.java:307) at com.intellij.openapi.application.impl.ApplicationImpl.d(ApplicationImpl.java:319) at com.intellij.openapi.application.impl.ApplicationImpl.(ApplicationImpl.java:119) at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java) at com.intellij.idea.IdeaApplication.]]>(IdeaApplication.java:9)
at com.intellij.idea.Main.a(Main.java:35)
at com.intellij.idea.Main.access$000(Main.java:14)
at com.intellij.idea.Main$2.proceed(Main.java:1)
at com.intellij.ide.a.d.h$1.a(h$1.java:4)
at com.intellij.ide.a.a.u.a(u.java)
at com.intellij.ide.a.d.c.a(c.java:18)
at com.intellij.ide.a.d.c.a(c.java:6)
at com.intellij.ide.a.d.h.a(h.java:56)
at com.intellij.idea.Main.mainImpl(Main.java:57)
at com.intellij.idea.Main.start(Main.java:6)
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:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:2)
at java.lang.Thread.run(Thread.java:595)

Can you repoduce this?

Greetings
Henne0815

0
Comment actions Permalink

Hello Henne,

I am really sorry, I must have uploaded the wrong jar. This one only runs on jdk 6. I will fix this as soon as possible.

Bas

0
Comment actions Permalink

An updated jar is available now. Sorry for the inconvenience.

Bas

0
Comment actions Permalink

Perfect :)

Thank you for your quick reply!

Greetings
Henne

0

Please sign in to leave a comment.