TestNG-J plugin fails at startup

IDEA build: 9886 (version 8.1.3)

I was using the TestNG-J plugin successfully in the past day or so.
Since that time, I have tried installing the TestNG-generator plugin, as well as some other plugins. Now, whenever I start IDEA, I get 2 tracebacks, and the TestNG-J actions are not available. In particular, I find myself now unable to debug while running unit tests. It might also be relevant that my project is based on a Maven2 POM. As I said, it was all working fine, until I decided to try the generator plugin; I have since uninstalled that plugin, but I'm still not back to a working state. I tried looking for jars, etc below %HOME%\.IntelliJIdea80\config, and un/re-installing the TestNG-J plugin, but none of that seems to have made any difference, it is still the same two exceptions at startup and no TestNG functionality.

The first message include the following stack trace:

com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider [Plugin: TestNG-J]: com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider [Plugin: TestNG-J]
com.intellij.diagnostic.PluginException: com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider [Plugin: TestNG-J]
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:46)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:45)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$100(ComponentManagerImpl.java:54)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:70)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:128)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:164)
 at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:83)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:214)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:349)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.access$200(ProjectManagerImpl.java:274)
 at com.intellij.openapi.project.impl.ProjectManagerImpl$4.run(ProjectManagerImpl.java:9)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressManagerImpl.java:1)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:3)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:1)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:5)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:101)
 at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:3)
 at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:8)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:5)
Caused by: java.lang.NoClassDefFoundError: com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:247)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:6)
 ... 25 more
Caused by: java.lang.ClassNotFoundException: com.intellij.psi.impl.source.resolve.reference.PsiReferenceProvider
 at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 ... 28 more


The second message includes the following stack trace:

com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider [Plugin: TestNG-J]: com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider [Plugin: TestNG-J]
com.intellij.diagnostic.PluginException: com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider [Plugin: TestNG-J]
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:46)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:45)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$100(ComponentManagerImpl.java:54)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:70)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:128)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:164)
 at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:83)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:214)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.getDefaultProject(ProjectManagerImpl.java:284)
 at org.jetbrains.idea.maven.runner.MavenRunConfiguration$MavenSettings.<init>(MavenRunConfiguration.java:139)
 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:513)
 at java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
 at com.intellij.util.xmlb.BeanBinding.instantiateBean(BeanBinding.java:173)
 at com.intellij.util.xmlb.BeanBinding.deserialize(BeanBinding.java:120)
 at com.intellij.util.xmlb.XmlSerializer.deserialize(XmlSerializer.java:58)
 at org.jetbrains.idea.maven.runner.MavenRunConfiguration.readExternal(MavenRunConfiguration.java:104)
 at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.readExternal(RunnerAndConfigurationSettingsImpl.java:134)
 at com.intellij.execution.impl.RunManagerImpl.loadConfiguration(RunManagerImpl.java:62)
 at com.intellij.execution.impl.RunManagerImpl.readExternal(RunManagerImpl.java:268)
 at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.initJdomExternalizable(ComponentStoreImpl.java:108)
 at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$1.run(ComponentStoreImpl.java:1)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:343)
 at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.initComponent(ComponentStoreImpl.java:151)
 at com.intellij.openapi.components.impl.stores.ProjectWithModulesStoreImpl.initComponent(ProjectWithModulesStoreImpl.java:25)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:19)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.access$1100(ComponentManagerImpl.java:12)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:17)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:22)
 at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:230)
 at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:217)
 at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
 at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:99)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:173)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:128)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:164)
 at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:83)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:214)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:349)
 at com.intellij.openapi.project.impl.ProjectManagerImpl.access$200(ProjectManagerImpl.java:274)
 at com.intellij.openapi.project.impl.ProjectManagerImpl$4.run(ProjectManagerImpl.java:9)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressManagerImpl.java:1)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:3)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:1)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:5)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:101)
 at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:3)
 at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:8)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:5)
Caused by: java.lang.NoClassDefFoundError: com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:247)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:6)
 ... 59 more
Caused by: java.lang.ClassNotFoundException: com.intellij.psi.impl.source.resolve.reference.PsiReferenceProvider
 at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 ... 62 more

Wondering what I should do next,
--Tommy Knowlton
1 comment
Comment actions Permalink

it's funny how I searched for things like "testng" "plugin" "fail" before I posted, and then no sooner than I post my problem than I see http://www.jetbrains.net/devnet/message/5240185 linked in the right-hand panel... So, my report may be a duplicate; I'm going to go try reinstalling IDEA and see whether things "just work" for me after that.

[[Edited to add:]]

reinstalling fixed the problem.

0

Please sign in to leave a comment.