TestNG plugin exceptions

I could not get TestNG to work in my IDEA. I am getting the following stack trace when starting IDEA. I am using IDEA 8.12, TestNG-J plugin 1.1.1, and Java 6.

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:163)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:23)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.access$200(ProjectManagerImpl.java:264)
    at com.intellij.openapi.project.impl.ProjectManagerImpl$4.run(ProjectManagerImpl.java:13)
    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

Any ideas? Does IDEA 8.1 support TestNG? I appreciate any help.

4 comments
Comment actions Permalink

Hello JIN,

TestNG plugin is now bundled in IDEA. Please delete old plugin from USER_HOME/IntelliJ
IDEA 8.x/config/plugins/testng

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I could not get TestNG to work in my IDEA. I am getting the following
stack trace when starting IDEA. I am using IDEA 8.12, TestNG-J plugin
1.1.1, and Java 6.

com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider
:
com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider

com.intellij.diagnostic.PluginException:
com/intellij/psi/impl/source/resolve/reference/PsiReferenceProvider

at
com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRe
gistry.a(ComponentManagerImpl.java:46)
at
com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRe
gistry.a(ComponentManagerImpl.java:45)
at
com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRe
gistry.access$100(ComponentManagerImpl.java:54)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentM
anagerImpl.java:70)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.initComponen
ts(ComponentManagerImpl.java:128)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.init(Compone
ntManagerImpl.java:164)
at
com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:83
)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerI
mpl.java:163)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerI
mpl.java:23)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.access$200(Projec
tManagerImpl.java:264)
at
com.intellij.openapi.project.impl.ProjectManagerImpl$4.run(ProjectMana
gerImpl.java:13)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressM
anagerImpl.java:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.ru
n(ProgressManagerImpl.java:3)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressM
anagerImpl.java:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressM
anagerImpl.java:5)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:13)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:101)
at
com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(Applicat
ionImpl.java:3)
at
com.intellij.openapi.application.impl.ApplicationImpl$5.run(Applicatio
nImpl.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(ThreadPoolExecu
tor.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(Applicat
ionImpl.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$ComponentsRe
gistry.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(PluginClassLoa
der.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 28 more
Any ideas? Does IDEA 8.1 support TestNG? I appreciate any help.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5240185#5240185



0
Comment actions Permalink

Thank you, Anna.  I downloaded the testNG plugin because I could not see any TestNG support in the first place. I was expecting that I could right-click a TestNG test and run it just I would do for a JUnit test. There was no option like that. Now I removed the plugin and still could not do so. What should I do to get TestNG tests to run?

0
Comment actions Permalink

Hello JIN,

Check if you have TestNG plugin enabled File|Settings|Plugins.

If you have enabled plugin but TestNG support doesn't work please provide
a way to reproduce: e.g. sample project.

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Thank you, Anna. I downloaded the testNG plugin because I could not
see any TestNG support in the first place. I was expecting that I
could right-click a TestNG test and run it just I would do for a JUnit
test. There was no option like that. Now I removed the plugin and
still could not do so. What should I do to get TestNG tests to run?

---
Original message URL:
http://www.jetbrains.net/devnet/message/5240231#5240231



0
Comment actions Permalink

You are right. It turns out that TestNG does work if I reinstall IDEA. It throws exception if the bundled TestNG-J version is replaced with a downloaded recent version. Thanks for the help.

0

Please sign in to leave a comment.