Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.RuntimeException: java.lang.ClassNotFoundException: idea.plugin.psiviewer.controller.application.Configuration #4

Closed
MikhailShumenko opened this issue Sep 7, 2014 · 1 comment

Comments

@MikhailShumenko
Copy link

Hello, when I run "IDEA Plugin Tests" all tests fail and I'm got ClassNotFound ex.
This problem also described here, but solution suggested there doesn't helped me.

java.lang.RuntimeException: java.lang.ClassNotFoundException: idea.plugin.psiviewer.controller.application.Configuration
at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:224)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:39)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:432)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:408)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:394)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:110)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:90)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:551)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:534)
at com.intellij.idea.IdeaTestApplication$1.run(IdeaTestApplication.java:57)
at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
at com.intellij.openapi.application.WriteAction$1$1.run(WriteAction.java:47)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1015)
at com.intellij.openapi.application.WriteAction$1.run(WriteAction.java:44)
at com.intellij.openapi.application.WriteAction.execute(WriteAction.java:53)
at com.intellij.idea.IdeaTestApplication.getInstance(IdeaTestApplication.java:53)
at com.intellij.testFramework.PlatformTestCase.initApplication(PlatformTestCase.java:135)
at com.intellij.run.ExecutionManagerTestCase.initApplication(ExecutionManagerTestCase.java:91)
at org.jetbrains.idea.tomcat.Tomcat4Test.initApplication(Tomcat4Test.java:23)
at com.intellij.testFramework.PlatformTestCase.setUp(PlatformTestCase.java:185)
at com.intellij.testFramework.IdeaTestCase.setUp(IdeaTestCase.java:37)
at com.intellij.execution.ExecutionTestCase.access$001(ExecutionTestCase.java:44)
at com.intellij.execution.ExecutionTestCase$1.run(ExecutionTestCase.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
at java.awt.EventQueue.access$400(EventQueue.java:81)
at java.awt.EventQueue$2.run(EventQueue.java:633)
at java.awt.EventQueue$2.run(EventQueue.java:631)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: idea.plugin.psiviewer.controller.application.Configuration
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:418)
... 35 more
ERROR: null

@MikhailShumenko
Copy link
Author

This is not a problem of PsiViewer. I was edited my test "Run Configurations" and set empty config and system folder in VM options. It helped me.

-ea
-Didea.system.path=empty-system
-Didea.config.path=empty-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant