unitTest Plugin, version .29b

Hello,

I saw that there was an update to this plugin to allow for multiple source locations. Thank you for this -- I've long been wanting the plugin to provide this functionality.

However, I'm having problems getting it to work. I'm on a Linux box, using the Idea 5.0.1. Here are the problems I've encountered:

  • When viewing the conguration dialogue, sometimes I'm unable edit either value in the "Tested class" and "test class" fields. The cursor appears in the window, but nothing I type appears.

  • If I've made a change in the above dialogues, the "Apply" button isn't always enabled.

  • Finally (and most importantly), after I've defined two valid entries, no test case is generated. I'll click the gutter-arrow to generate, after which I'll be presented with two choices. After clicking either one, nothing appears to happen. If I have only one mapping, test case generation happens as expected.

  • I see that when you present the available paths available for test class generation, you list the source paths. Since this is the same for both my test locations, there's no distinction. For example, here are my two mappings:


Tested class= src/java/$DIRECTORY/$CLASS$
Test class = test/unit-tests/java/$DIRECTORY$/Test$CLASS$

Tested class= src/java/$DIRECTORY/$CLASS$
Test class = test/ext-system-tets/java/$DIRECTORY$/Test$CLASS$

The two choices I'm presented are identical: java/path/to/class/TestClass.java.

Thank you for your continued work on this, what a great time saver!

16 comments

Hello,

I get the following exception stack trace with the latest version of unitTest
(0.29b) and IDEA #3516.

Error during dispatching of java.awt.event.MouseEvent[MOUSE_CLICKED,(92,32),button=1,modifiers=Button1,clickCount=1]
on dialog6: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryLocator
could not be instantiated: java.lang.NullPointerException
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryLocator
could not be instantiated: java.lang.NullPointerException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:121)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:83)
at org.intellij.openapi.beans.PluginContext.registerPluginContextBeans(PluginContext.java:139)
at org.intellij.openapi.beans.PluginContext.initContext(PluginContext.java:89)
at org.intellij.openapi.beans.PluginContext.init(PluginContext.java:69)
at org.intellij.openapi.beans.PluginContext.(PluginContext.java:51) at org.intellij.openapi.beans.PluginBeanFactory.getContext(PluginBeanFactory.java:44) at org.intellij.openapi.beans.PluginBeanFactory$1.run(PluginBeanFactory.java:38) at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:13) at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:9) at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:259) at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:187) at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:60) at com.intellij.ide.RecentProjectsManager$ReopenProjectAction.actionPerformed(RecentProjectsManager.java) at com.intellij.openapi.actionSystem.ex.ActionListPopup$1.run(ActionListPopup.java:12) at com.intellij.ui.ListPopup.closePopup(ListPopup.java:50) at com.intellij.ui.ListPopup$3.mouseClicked(ListPopup.java:0) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212) 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:6) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:136) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94) 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) Regards, --Venkat. KC> Hello, KC> KC> I saw that there was an update to this plugin to allow for multiple KC> source locations. Thank you for this -- I've long been wanting the KC> plugin to provide this functionality. KC> KC> However, I'm having problems getting it to work. I'm on a Linux KC> box, using the Idea 5.0.1. Here are the problems I've encountered: KC> KC> * When viewing the conguration dialogue, sometimes I'm unable edit KC> either value in the "Tested class" and "test class" fields. The KC> cursor appears in the window, but nothing I type appears. KC> KC> * If I've made a change in the above dialogues, the "Apply" button KC> isn't always enabled. KC> KC> * Finally (and most importantly), after I've defined two valid KC> entries, no test case is generated. I'll click the gutter-arrow to KC> generate, after which I'll be presented with two choices. After KC> clicking either one, nothing appears to happen. If I have only one KC> mapping, test case generation happens as expected. KC> KC> * I see that when you present the available paths available for KC> test class generation, you list the source paths. Since this is KC> the same for both my test locations, there's no distinction. For KC> example, here are my two mappings: KC> KC> Tested class= src/java/$DIRECTORY/$CLASS$ KC> Test class = test/unit-tests/java/$DIRECTORY$/Test$CLASS$ KC> Tested class= src/java/$DIRECTORY/$CLASS$ KC> Test class = test/ext-system-tets/java/$DIRECTORY$/Test$CLASS$ KC> The two choices I'm presented are identical: KC> java/path/to/class/TestClass.java. KC> KC> Thank you for your continued work on this, what a great time saver! KC>]]>


0

Sorry. I should have mentioned - When try to click on JUnit settings in the
Setting panel.


VS> Hello,
VS>
VS> I get the following exception stack trace with the latest version of
VS> unitTest (0.29b) and IDEA #3516.
VS>
VS> Error during dispatching of
VS> java.awt.event.MouseEvent[MOUSE_CLICKED,(92,32),button=1,modifiers=B
VS> utton1,clickCount=1]
VS> on dialog6: Provider
VS> org.apache.xerces.jaxp.DocumentBuilderFactoryLocator
VS> could not be instantiated: java.lang.NullPointerException
VS> javax.xml.parsers.FactoryConfigurationError: Provider
VS> org.apache.xerces.jaxp.DocumentBuilderFactoryLocator
VS> could not be instantiated: java.lang.NullPointerException
VS> at
VS> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilder
VS> Factory.java:104)
VS> at
VS> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBe
VS> anDefinitions(XmlBeanDefinitionReader.java:121)
VS> at
VS> org.springframework.beans.factory.support.AbstractBeanDefinitionRead
VS> er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:83)
VS> at
VS> org.intellij.openapi.beans.PluginContext.registerPluginContextBeans(
VS> PluginContext.java:139)
VS> at
VS> org.intellij.openapi.beans.PluginContext.initContext(PluginContext.j
VS> ava:89)
VS> at
VS> org.intellij.openapi.beans.PluginContext.init(PluginContext.java:69)
VS> at
VS> org.intellij.openapi.beans.PluginContext.(PluginContext.java:5 VS> 1) VS> at VS> org.intellij.openapi.beans.PluginBeanFactory.getContext(PluginBeanFa VS> ctory.java:44) VS> at VS> org.intellij.openapi.beans.PluginBeanFactory$1.run(PluginBeanFactory VS> .java:38) VS> at VS> com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImp VS> l.java:13) VS> at VS> com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActiv VS> ities(StartupManagerImpl.java:9) VS> at VS> com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(Pro VS> jectManagerImpl.java:259) VS> at VS> com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProj VS> ect(ProjectManagerImpl.java:187) VS> at VS> com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:60) VS> at VS> com.intellij.ide.RecentProjectsManager$ReopenProjectAction.actionPer VS> formed(RecentProjectsManager.java) VS> at VS> com.intellij.openapi.actionSystem.ex.ActionListPopup$1.run(ActionLis VS> tPopup.java:12) VS> at com.intellij.ui.ListPopup.closePopup(ListPopup.java:50) VS> at com.intellij.ui.ListPopup$3.mouseClicked(ListPopup.java:0) VS> at VS> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:2 VS> 12) VS> at java.awt.Component.processMouseEvent(Component.java:5491) VS> at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) VS> at java.awt.Component.processEvent(Component.java:5253) VS> at java.awt.Container.processEvent(Container.java:1966) VS> at java.awt.Component.dispatchEventImpl(Component.java:3955) VS> at java.awt.Container.dispatchEventImpl(Container.java:2024) VS> at java.awt.Component.dispatchEvent(Component.java:3803) VS> at VS> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:421 VS> 2) VS> at VS> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901 VS> ) VS> at VS> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) VS> at java.awt.Container.dispatchEventImpl(Container.java:2010) VS> at java.awt.Window.dispatchEventImpl(Window.java:1774) VS> at java.awt.Component.dispatchEvent(Component.java:3803) VS> at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) VS> at VS> com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.ja VS> va:6) VS> at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:136) VS> at VS> com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94) VS> at VS> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT VS> hread.java:242) VS> at VS> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThr VS> ead.java:163) VS> at VS> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157 VS> ) VS> at VS> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149 VS> ) VS> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) VS> Regards, VS> --Venkat. KC>> Hello, KC>> KC>> I saw that there was an update to this plugin to allow for multiple KC>> source locations. Thank you for this -- I've long been wanting the KC>> plugin to provide this functionality. KC>> KC>> However, I'm having problems getting it to work. I'm on a Linux KC>> box, using the Idea 5.0.1. Here are the problems I've encountered: KC>> KC>> * When viewing the conguration dialogue, sometimes I'm unable edit KC>> either value in the "Tested class" and "test class" fields. The KC>> cursor appears in the window, but nothing I type appears. KC>> KC>> * If I've made a change in the above dialogues, the "Apply" button KC>> isn't always enabled. KC>> KC>> * Finally (and most importantly), after I've defined two valid KC>> entries, no test case is generated. I'll click the gutter-arrow to KC>> generate, after which I'll be presented with two choices. After KC>> clicking either one, nothing appears to happen. If I have only one KC>> mapping, test case generation happens as expected. KC>> KC>> * I see that when you present the available paths available for KC>> test class generation, you list the source paths. Since this is KC>> the same for both my test locations, there's no distinction. For KC>> example, here are my two mappings: KC>> KC>> Tested class= src/java/$DIRECTORY/$CLASS$ KC>> Test class = test/unit-tests/java/$DIRECTORY$/Test$CLASS$ KC>> Tested class= src/java/$DIRECTORY/$CLASS$ KC>> Test class = test/ext-system-tets/java/$DIRECTORY$/Test$CLASS$ KC>> The two choices I'm presented are identical: KC>> java/path/to/class/TestClass.java. KC>> Thank you for your continued work on this, what a great time saver! KC>>]]>


0

I notice similar behaviour. In the settins dialogue, I can't change the values for Test/Tested class anymore - the OK and Apply buttons don't work. I was able to change the values once, but after that it doesn't work.

Where are the config values stored? I cannot find them anywhere in the installation directory.

- Dag -

0

Hi, thanx for the feedback, am looking into now..

regards

0

I am just installing 3516 to see if i can track down your problem.

To solve your other problem of the unit test paths appearing the same: i can provide the full file path for the unit tests, or better still provide the option of a module path or the full path, as this will take some time, i'll show the full file path as the options displayed (which may be long) unless anyone has objections?

Regards
Bronwen

0

This will piece meal replies, to make sure i cover all bases :)

firstly you defined the patterns as:

Tested class= src/java/$DIRECTORY/$CLASS$
Test class = test/unit-tests/java/$DIRECTORY$/Test$CLASS$

Tested class= src/java/$DIRECTORY/$CLASS$
Test class = test/ext-system-tets/java/$DIRECTORY$/Test$CLASS$

Both Tested class patterns are missing the $ a the end of $DIRECTORY, is this a typing transfer typo?

0

They are stored in intelliJ's .iws file under an entry like the following:

]]>

0

Can i ask you people a favour, can you add this line to your IntelliJ log.xml file in $/bin/log.xml

]]>

and then let me know what (if anything) you are getting?

Thanx
Bronwen

0

Hmmm well it seems this stack trace or similar is floating around a few places, one being here: http://www.intellij.net/forums/thread.jsp?forum=18&thread=165068&tstart=0&trange=15

I suspect it is because the javax.xml.parsers.DocumentBuilderFactory cannot find a builder factory. I have installed (on windows) intelliJ 3516 downloaded a clean installation of the plugin for the plugin manager and am not able to duplicate any of the errors/exceptions you have been seeing.

Try setting the system property javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
or to another you have, i have the above registered somewhere hence this i guess i am not seeing this exception, or experiencing this problem

Bronwen

0

Just released a new version .29c this offers a "full path" check box option, on the select dialog, when creating or going to a test class to avoid situations where the tests have the same package paths.

Secondly the exception being seen, would appear to be a classpath issue, i would firstly check to see if xerces is in your classpath.

0

I keep getting this exception when I start IntelliJ

Original exception: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class and
tested class patterns may have the token $DIRECTORY$ or none of them
org.springframework.beans.FatalBeanException: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class and
tested class patterns may have the token $DIRECTORY$ or none of them
java.lang.IllegalArgumentException: Both test class and tested class
patterns may have the token $DIRECTORY$ or none of them
at
org.intellij.plugins.junit.ClassPattern.validatePatterns(ClassPattern.java:59)
at org.intellij.plugins.junit.ClassPattern.reset(ClassPattern.java:45)
at org.intellij.plugins.junit.ClassPattern.(ClassPattern.java:41) at org.intellij.plugins.junit.config.ClassPatternDesc.getClassPattern(ClassPatternDesc.java:89) at org.intellij.plugins.junit.config.ClassPatternConfig.getTestPatterns(ClassPatternConfig.java:105) at org.intellij.plugins.junit.TestPatternsFinder.(TestPatternsFinder.java:32) at org.intellij.plugins.junit.ClassDefFactory.(ClassDefFactory.java:45) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:77) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:492) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:707) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:641) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:170) at org.intellij.openapi.beans.PluginContext.autoWireBeans(PluginContext.java:114) at org.intellij.openapi.beans.PluginContext.refresh(PluginContext.java:101) at org.intellij.openapi.beans.PluginContext.init(PluginContext.java:69) at org.intellij.openapi.beans.PluginContext.]]>(PluginContext.java:50)
at
org.intellij.openapi.beans.PluginBeanFactory.getContext(PluginBeanFactory.java:44)
at
org.intellij.openapi.beans.PluginBeanFactory$1.run(PluginBeanFactory.java:38)
at
com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:13)
at
com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:9)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:259)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:187)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:60)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:21)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:7)
at
com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:3)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:19)
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:6)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:130)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94)
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)



org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.intellij.plugins.junit.ClassDefFactory' defined in resource
loaded through InputStream: Instantiation of bean failed; nested exception
is org.springframework.beans.FatalBeanException: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class and
tested class patterns may have the token $DIRECTORY$ or none of them
org.springframework.beans.FatalBeanException: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class and
tested class patterns may have the token $DIRECTORY$ or none of them
java.lang.IllegalArgumentException: Both test class and tested class
patterns may have the token $DIRECTORY$ or none of them
at
org.intellij.plugins.junit.ClassPattern.validatePatterns(ClassPattern.java:59)
at org.intellij.plugins.junit.ClassPattern.reset(ClassPattern.java:45)
at org.intellij.plugins.junit.ClassPattern.(ClassPattern.java:41) at org.intellij.plugins.junit.config.ClassPatternDesc.getClassPattern(ClassPatternDesc.java:89) at org.intellij.plugins.junit.config.ClassPatternConfig.getTestPatterns(ClassPatternConfig.java:105) at org.intellij.plugins.junit.TestPatternsFinder.(TestPatternsFinder.java:32) at org.intellij.plugins.junit.ClassDefFactory.(ClassDefFactory.java:45) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:77) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:492) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:707) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:641) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:170) at org.intellij.openapi.beans.PluginContext.autoWireBeans(PluginContext.java:114) at org.intellij.openapi.beans.PluginContext.refresh(PluginContext.java:101) at org.intellij.openapi.beans.PluginContext.init(PluginContext.java:69) at org.intellij.openapi.beans.PluginContext.(PluginContext.java:50) at org.intellij.openapi.beans.PluginBeanFactory.getContext(PluginBeanFactory.java:44) at org.intellij.openapi.beans.PluginBeanFactory$1.run(PluginBeanFactory.java:38) at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:13) at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:9) at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:259) at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:187) at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:60) at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:21) at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:7) at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:3) at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:19) 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:6) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:130) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94) 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) "Bronwen Cassidy" ]]> wrote in message
news:4801958.1129413676537.JavaMail.itn@is.intellij.net...

Just released a new version .29c this offers a "full path" check box
option, on the select dialog, when creating or going to a test class to
avoid situations where the tests have the same package paths.

>

Secondly the exception being seen, would appear to be a classpath issue, i
would firstly check to see if xerces is in your classpath.

>



0

and now when I try to modify my path config, I get this:

Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(562,653),button=1,modifiers=Button1,clickCount=1]
on dialog2
java.lang.NullPointerException
at
org.intellij.plugins.junit.config.JUnitTestConfiguration.updateRefactorerState(JUnitTestConfiguration.java:100)
at
org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:60)
at org.intellij.plugins.config.Config.configChanged(Config.java:68)
at org.intellij.plugins.config.ConfigEditor.apply(ConfigEditor.java:91)
at
org.intellij.plugins.junit.config.JUnitTestConfigurable.apply(JUnitTestConfigurable.java:267)
at
com.intellij.openapi.options.ex.ProjectConfigurableWrapper.apply(ProjectConfigurableWrapper.java:23)
at
com.intellij.openapi.options.ex.SingleConfigurableEditor.doOKAction(SingleConfigurableEditor.java:3)
at
com.intellij.openapi.ui.DialogWrapper$OkAction.actionPerformed(DialogWrapper.java:825)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
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:3892)
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:6)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:136)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:56)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:101)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:722)
at
com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:47)
at
com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$900(ControlPanelSettingsEditor.java:45)
at
com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:8)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
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:3892)
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:6)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:136)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:56)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:101)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:722)
at
com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:14)
at
com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:36)
at
com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:0)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:0)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:37)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:242)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:164)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:6)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
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:3892)
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:6)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:136)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94)
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)



"Grant Gochnauer" <grant@gochnauer.org> wrote in message
news:dis0el$qbv$1@is.intellij.net...
>I keep getting this exception when I start IntelliJ
>

Original exception: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class
and tested class patterns may have the token $DIRECTORY$ or none of them
org.springframework.beans.FatalBeanException: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class
and tested class patterns may have the token $DIRECTORY$ or none of them
java.lang.IllegalArgumentException: Both test class and tested class
patterns may have the token $DIRECTORY$ or none of them
at
org.intellij.plugins.junit.ClassPattern.validatePatterns(ClassPattern.java:59)
at org.intellij.plugins.junit.ClassPattern.reset(ClassPattern.java:45)
at org.intellij.plugins.junit.ClassPattern.<init>(ClassPattern.java:41)
at
org.intellij.plugins.junit.config.ClassPatternDesc.getClassPattern(ClassPatternDesc.java:89)
at
org.intellij.plugins.junit.config.ClassPatternConfig.getTestPatterns(ClassPatternConfig.java:105)
at
org.intellij.plugins.junit.TestPatternsFinder.<init>(TestPatternsFinder.java:32)
at
org.intellij.plugins.junit.ClassDefFactory.<init>(ClassDefFactory.java:45)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:77)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:492)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145)
at
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145)
at
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145)
at
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:707)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:641)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:170)
at
org.intellij.openapi.beans.PluginContext.autoWireBeans(PluginContext.java:114)
at
org.intellij.openapi.beans.PluginContext.refresh(PluginContext.java:101)
at org.intellij.openapi.beans.PluginContext.init(PluginContext.java:69)
at org.intellij.openapi.beans.PluginContext.<init>(PluginContext.java:50)
at
org.intellij.openapi.beans.PluginBeanFactory.getContext(PluginBeanFactory.java:44)
at
org.intellij.openapi.beans.PluginBeanFactory$1.run(PluginBeanFactory.java:38)
at
com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:13)
at
com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:9)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:259)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:187)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:60)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:21)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:7)
at
com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:3)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:19)
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:6)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:130)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94)
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)

>
>
>

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.intellij.plugins.junit.ClassDefFactory' defined in
resource loaded through InputStream: Instantiation of bean failed; nested
exception is org.springframework.beans.FatalBeanException: Could not
instantiate class ;
constructor threw exception; nested exception is
java.lang.IllegalArgumentException: Both test class and tested class
patterns may have the token $DIRECTORY$ or none of them
org.springframework.beans.FatalBeanException: Could not instantiate class
; constructor threw exception;
nested exception is java.lang.IllegalArgumentException: Both test class
and tested class patterns may have the token $DIRECTORY$ or none of them
java.lang.IllegalArgumentException: Both test class and tested class
patterns may have the token $DIRECTORY$ or none of them
at
org.intellij.plugins.junit.ClassPattern.validatePatterns(ClassPattern.java:59)
at org.intellij.plugins.junit.ClassPattern.reset(ClassPattern.java:45)
at org.intellij.plugins.junit.ClassPattern.<init>(ClassPattern.java:41)
at
org.intellij.plugins.junit.config.ClassPatternDesc.getClassPattern(ClassPatternDesc.java:89)
at
org.intellij.plugins.junit.config.ClassPatternConfig.getTestPatterns(ClassPatternConfig.java:105)
at
org.intellij.plugins.junit.TestPatternsFinder.<init>(TestPatternsFinder.java:32)
at
org.intellij.plugins.junit.ClassDefFactory.<init>(ClassDefFactory.java:45)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:77)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:492)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145)
at
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145)
at
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createArgumentArray(AbstractAutowireCapableBeanFactory.java:594)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:463)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:268)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:176)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:145)
at
org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findMatchingBeans(DefaultListableBeanFactory.java:338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:707)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:641)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:170)
at
org.intellij.openapi.beans.PluginContext.autoWireBeans(PluginContext.java:114)
at
org.intellij.openapi.beans.PluginContext.refresh(PluginContext.java:101)
at org.intellij.openapi.beans.PluginContext.init(PluginContext.java:69)
at org.intellij.openapi.beans.PluginContext.<init>(PluginContext.java:50)
at
org.intellij.openapi.beans.PluginBeanFactory.getContext(PluginBeanFactory.java:44)
at
org.intellij.openapi.beans.PluginBeanFactory$1.run(PluginBeanFactory.java:38)
at
com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:13)
at
com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:9)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:259)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:187)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:60)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:21)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:7)
at
com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:3)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:19)
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:6)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:130)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:94)
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)

>
>
>
>
>
>

"Bronwen Cassidy" <no_mail@jetbrains.com> wrote in message
news:4801958.1129413676537.JavaMail.itn@is.intellij.net...

>> Just released a new version .29c this offers a "full path" check box
>> option, on the select dialog, when creating or going to a test class to
>> avoid situations where the tests have the same package paths.
>>
>> Secondly the exception being seen, would appear to be a classpath issue,
>> i would firstly check to see if xerces is in your classpath.
>>
>>
>



0

>Both test class
>and tested class patterns may have the token $DIRECTORY$ or >none of them

It would seem you have your patterns set up incorrectly, basically if you are using a pattern with $DIRECTORY$ for the TestClass you must also have the same token in the pattern for the TestedClass and visa versa.

Try making both with the $DIRECTORY$ token or without, then let me know how it goes.

Bronwen

0

OK. The only problem is I can't get back to the screen because of the crash
;)

--Grant

"Bronwen Cassidy" <no_mail@jetbrains.com> wrote in message
news:33459593.1129455512548.JavaMail.itn@is.intellij.net...

>Both test class

>>and tested class patterns may have the token $DIRECTORY$ or >none of them
>

It would seem you have your patterns set up incorrectly, basically if you
are using a pattern with $DIRECTORY$ for the TestClass you must also have
the same token in the pattern for the TestedClass and visa versa.

>

Try making both with the $DIRECTORY$ token or without, then let me know
how it goes.

>

Bronwen



0

oh yeah, also my pattern was:

src/$DIRECTORY$/$CLASS$ --> test/$DIRECTORY$/$CLASS$Test

and that was what was giving me the exception.


"Bronwen Cassidy" <no_mail@jetbrains.com> wrote in message
news:33459593.1129455512548.JavaMail.itn@is.intellij.net...

>Both test class

>>and tested class patterns may have the token $DIRECTORY$ or >none of them
>

It would seem you have your patterns set up incorrectly, basically if you
are using a pattern with $DIRECTORY$ for the TestClass you must also have
the same token in the pattern for the TestedClass and visa versa.

>

Try making both with the $DIRECTORY$ token or without, then let me know
how it goes.

>

Bronwen



0

Strange i use identical patterns,

What i actually need to do is catch this situation and display a error message before anyone can save. It would help if i could duplicate these problems you are getting. :(

I will get onto hanling the error as apposed to throwing it, will have to be the weekend though, working weeks are too frantic.

In the meantime you can directly edit the .iws file and change the entries where:

]]>

The above are my patterns and i am using 4.5.4 at work and 3516 at home with no problems? I would like to get to the bottom of your problem though.

0

Please sign in to leave a comment.