5 comments
Comment actions Permalink

Hi Jacques,

i'm getting

Error message: Error during dispatching of
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=10,keyText=Introduzca,keyChar=Introduzca,keyLocation=KEY_LOCATION_STANDARD]
on
javax.swing.JList[,2,19,212x42,alignmentX=null,alignmentY=null,border=javax.swing.border.EmptyBorder@355691,flags=296,maximumSize=,minimumSize=,preferredSize=,fixedCellHeight=-1,fixedCellWidth=-1,horizontalScrollIncrement=-1,selectionBackground=javax.swing.plaf.ColorUIResource[r=166,g=202,b=240],selectionForeground=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],visibleRowCount=8,layoutOrientation=0]
java.lang.LinkageError: loader constraints violated when linking
org/apache/commons/collections/ExtendedProperties class
at
org.intellij.plugins.util.TemplateEngine.initVelocityProcess(TemplateEngine.java:50)
at
org.intellij.plugins.util.TemplateEngine.processTemplate(TemplateEngine.java:70)
at
org.intellij.plugins.junit.MethodLocator.getTestMethodText(MethodLocator.java:192)
at
org.intellij.plugins.junit.MethodLocator.createTestMethodFromTemplate(MethodLocator.java:168)
at
org.intellij.plugins.junit.actions.MethodTestHandler.createTestMethod(MethodTestHandler.java:113)
at
org.intellij.plugins.junit.actions.MethodTestHandler.access$000(MethodTestHandler.java:26)
at
org.intellij.plugins.junit.actions.MethodTestHandler$CreateTestMethodCommand.run(MethodTestHandler.java:142)
at org.intellij.plugins.util.CommandUtil$4.run(CommandUtil.java:142)
at com.intellij.openapi.application.b.b.runWriteAction(b.java:300)
at org.intellij.plugins.util.CommandUtil.runAction(CommandUtil.java:132)
at org.intellij.plugins.util.CommandUtil.access$100(CommandUtil.java:14)
at org.intellij.plugins.util.CommandUtil$3.run(CommandUtil.java:118)
at com.intellij.openapi.command.b.a.executeCommand(a.java:39)
at
org.intellij.plugins.util.CommandUtil.executeCommand(CommandUtil.java:122)
at
org.intellij.plugins.util.CommandUtil.executeWriteCommand(CommandUtil.java:32)
at
org.intellij.plugins.junit.actions.MethodTestHandler.createTestMethodAndGoToTestMethod(MethodTestHandler.java:63)
at
org.intellij.plugins.junit.actions.MethodTestHandler$1.itemChosen(MethodTestHandler.java:54)
at org.intellij.plugins.ui.SelectDialog.dispose(SelectDialog.java:195)
at
org.intellij.plugins.ui.SelectDialog$4.keyPressed(SelectDialog.java:153)
at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:192)
at java.awt.Component.processKeyEvent(Component.java:5058)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2388)
at java.awt.Component.processEvent(Component.java:4909)
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.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:627)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:831)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:741)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:592)
at java.awt.Component.dispatchEventImpl(Component.java:3506)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
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.s.a(s.java:25)
at com.intellij.ide.s.dispatchEvent(s.java:113)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)
at
com.intellij.openapi.ui.DialogWrapper$MyDialog.show(DialogWrapper.java:2)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:62)
at org.intellij.plugins.ui.SelectDialog.show(SelectDialog.java:185)
at
org.intellij.plugins.junit.actions.MethodTestHandler.selectTemplateAndCreate(MethodTestHandler.java:121)
at
org.intellij.plugins.junit.actions.MethodTestHandler.selectMethodTemplateAndCreate(MethodTestHandler.java:52)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.openTestAndGoToTestMethod(GoToUnitTestHandler.java:120)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.execute(GoToUnitTestHandler.java:55)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.actionPerformed(ToggleTestCaseTestedClassAction.java:58)
at com.intellij.openapi.a.b.d.a(d.java:47)
at com.intellij.openapi.a.b.d.b(d.java:81)
at com.intellij.openapi.a.b.d.a(d.java:28)
at com.intellij.ide.s.dispatchEvent(s.java:130)
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)

when creating a new test class or test method. I don't know if is a IDEA
bug or jUnitPlugin bug.

Many thx, Daniel.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

0
Comment actions Permalink

Could you remove all commons*.jar except commons-lang out of
IDEA_HOME/plugins/unitTest/lib and let me know if it goes away

Jacques

0
Comment actions Permalink

On Mon, 17 Nov 2003 16:00:33 +0000 (UTC), Jacques Morel
<jacmorel@yahoo.com> wrote:

Could you remove all commons*.jar except commons-lang out of
IDEA_HOME/plugins/unitTest/lib and let me know if it goes away

>

Jacques


Yep, yor are right, it works.

Many thx, Daniel

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

0
Comment actions Permalink

Using Aurora 977 and version 0.22a of the JUnitTestPlugin, I have serious problems using the 6th test class pattern: "test/$DIRECTORY$/$CLASS$Test". Whenever I try to apply it, I again the exception below. This is a real "show-stopper", as all our test code is organized this way...

- Thomas S.

Error message: Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.intellij.plugins.junit.UntestedMethodHighlighter$1@13b7ce9,notifier=null,catchExceptions=false,when=1070287031970] on sun.awt.windows.WToolkit@1dd38eb
java.lang.IndexOutOfBoundsException: No group 2
at java.util.regex.Matcher.group(Matcher.java:355)
at java.util.regex.Matcher.appendReplacement(Matcher.java:585)
at java.util.regex.Matcher.replaceFirst(Matcher.java:701)
at org.intellij.plugins.util.RegexpUtil.substituteFirst(RegexpUtil.java:50)
at org.intellij.plugins.junit.ClassPattern.getTestClassPath(ClassPattern.java:55)
at org.intellij.plugins.junit.ClassLocator.getTestClassPath(ClassLocator.java:37)
at org.intellij.plugins.junit.ClassLocator.findTestClass(ClassLocator.java:18)
at org.intellij.plugins.junit.UntestedMethodHighlighter.getUntestedMethods(UntestedMethodHighlighter.java:239)
at org.intellij.plugins.junit.UntestedMethodHighlighter.doMarkUntestedMethods(UntestedMethodHighlighter.java:210)
at org.intellij.plugins.junit.UntestedMethodHighlighter.access$000(UntestedMethodHighlighter.java:28)
at org.intellij.plugins.junit.UntestedMethodHighlighter$1.run(UntestedMethodHighlighter.java:113)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.s.a(s.java:25)
at com.intellij.ide.s.dispatchEvent(s.java:18)
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)

0
Comment actions Permalink

You have to put $DIRECTORY$ in BOTH tested class and test class patterns. I realize now that this exception is not helping and I will add a better error message for this.
Look at both columns of the 6th patterns. It is
tested class = src/org/intellij/$DIRECTORY$/$CLASS$
test class = test/$DIRECTORY$/$CLASS$Test

Both patterns have $DIRECTORY$ and $CLASS$

Jacques

0

Please sign in to leave a comment.