JUnit plugin exceptions when opening jsps

com.intellij.psi.search.LocalSearchScope
java.lang.ClassCastException: com.intellij.psi.search.LocalSearchScope
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCasePsiClass(ToggleTestCaseTestedClassAction.java:128)
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTest(ToggleTestCaseTestedClassAction.java:103)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(UntestedMethodHighlighter.java:292)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:99)
at org.intellij.plugins.junit.UntestedMethodHighlighter.selectionChanged(UntestedMethodHighlighter.java:72)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:270)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters$MyFocusWatcher$1.run(EditorsSplitters.java:0)
at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)

com.intellij.psi.search.LocalSearchScope
java.lang.ClassCastException: com.intellij.psi.search.LocalSearchScope
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCasePsiClass(ToggleTestCaseTestedClassAction.java:128)
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTest(ToggleTestCaseTestedClassAction.java:103)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(UntestedMethodHighlighter.java:292)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:99)
at org.intellij.plugins.junit.UntestedMethodHighlighter.selectionChanged(UntestedMethodHighlighter.java:72)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:270)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:15)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$2.run(FileEditorManagerImpl.java:1)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:43)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:48)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:59)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl(FileEditorManagerImpl.java:119)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:389)
at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$3.run(FileEditorManagerImpl.java:15)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:61)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:48)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openTextEditor(FileEditorManagerImpl.java:114)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.openFileAskingType(OpenFileDescriptor.java:99)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:81)
at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:26)
at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:14)
at com.intellij.util.EditSourceOnDoubleClickHandler$1.mouseClicked(EditSourceOnDoubleClickHandler.java:32)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.Component.processMouseEvent(Component.java:5491)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
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.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:41)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)



java.lang.ClassCastException: com.intellij.psi.search.LocalSearchScope
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCasePsiClass(ToggleTestCaseTestedClassAction.java:128)
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTest(ToggleTestCaseTestedClassAction.java:103)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(UntestedMethodHighlighter.java:292)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:99)
at org.intellij.plugins.junit.UntestedMethodHighlighter.selectionChanged(UntestedMethodHighlighter.java:72)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:270)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters$MyFocusWatcher$1.run(EditorsSplitters.java:0)
at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)



1 comment
Comment actions Permalink

Also, if a jsp is being edited when I close IDEA, the next time I start IDEA
and open the last project no files will be open and I won't be able to open
any files.

"Brad Lane" <no_mail@jetbrains.com> wrote in message
news:28210729.1116257182415.JavaMail.itn@is.intellij.net...

com.intellij.psi.search.LocalSearchScope
java.lang.ClassCastException: com.intellij.psi.search.LocalSearchScope
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCasePsiClass(ToggleTestCaseTestedClassAction.java:128)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTest(ToggleTestCaseTestedClassAction.java:103)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(UntestedMethodHighlighter.java:292)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:99)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.selectionChanged(UntestedMethodHighlighter.java:72)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:270)
at
com.intellij.openapi.fileEditor.impl.EditorsSplitters$MyFocusWatcher$1.run(EditorsSplitters.java:0)
at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)

>

com.intellij.psi.search.LocalSearchScope
java.lang.ClassCastException: com.intellij.psi.search.LocalSearchScope
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCasePsiClass(ToggleTestCaseTestedClassAction.java:128)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTest(ToggleTestCaseTestedClassAction.java:103)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(UntestedMethodHighlighter.java:292)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:99)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.selectionChanged(UntestedMethodHighlighter.java:72)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:270)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:15)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$2.run(FileEditorManagerImpl.java:1)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:43)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:48)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:59)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl(FileEditorManagerImpl.java:119)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:389)
at
com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$3.run(FileEditorManagerImpl.java:15)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:61)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:48)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openTextEditor(FileEditorManagerImpl.java:114)
at
com.intellij.openapi.fileEditor.OpenFileDescriptor.openFileAskingType(OpenFileDescriptor.java:99)
at
com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:81)
at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:26)
at
com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:14)
at
com.intellij.util.EditSourceOnDoubleClickHandler$1.mouseClicked(EditSourceOnDoubleClickHandler.java:32)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.Component.processMouseEvent(Component.java:5491)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
at java.awt.Component.processEvent(Component.java:5253)
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.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:41)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)

>
>
>

java.lang.ClassCastException: com.intellij.psi.search.LocalSearchScope
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.getTestCasePsiClass(ToggleTestCaseTestedClassAction.java:128)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.isUnitTest(ToggleTestCaseTestedClassAction.java:103)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.isClassTestable(UntestedMethodHighlighter.java:292)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:99)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.selectionChanged(UntestedMethodHighlighter.java:72)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.fireSelectionChanged(FileEditorManagerImpl.java:270)
at
com.intellij.openapi.fileEditor.impl.EditorsSplitters$MyFocusWatcher$1.run(EditorsSplitters.java:0)
at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)

>
>
>



0

Please sign in to leave a comment.