Can't run plugin tests, getting "Repository caches are corrupted"

I've had this problem before, but i've always been able to work around it by doing a clean build or deleting the system folder of IntelliJ. But this time, i'm stuck with it.

So, this problem occurs when i execute any unit test that uses the IntelliJ testing framework. All other unit tests run fine.
Any ideas of what might be causing this ?
Here's the stack trace:

ERROR: Repository caches are corrupted and will be rebuilt on next startup
java.lang.SecurityException: Prohibited package name: java.lang
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:479)
at java.lang.ClassLoader.defineClass(ClassLoader.java:713)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.intellij.psi.impl.source.parsing.JavadocParsing.a(JavadocParsing.java:9)
at com.intellij.psi.impl.source.parsing.JavadocParsing.parseDocCommentText(JavadocParsing.java:65)
at com.intellij.psi.impl.source.tree.JavaDocElementType$3.parseContents(JavaDocElementType.java:0)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:11)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:38)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transformChildren(ChameleonTransforming.java:29)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transformChildren(ChameleonTransforming.java:46)
at com.intellij.psi.impl.source.tree.CompositeElement.countChildren(CompositeElement.java:179)
at com.intellij.psi.impl.source.tree.CompositeElement.getChildrenAsPsiElements(CompositeElement.java:15)
at com.intellij.psi.impl.source.PsiClassImpl.getMethods(PsiClassImpl.java:48)
at com.intellij.psi.impl.cache.impl.repositoryCache.RecordManager.createClass(RecordManager.java:29)
at com.intellij.psi.impl.cache.impl.repositoryCache.RecordManager.a(RecordManager.java:89)
at com.intellij.psi.impl.cache.impl.repositoryCache.RecordManager.updateFileContent(RecordManager.java:45)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache$8.run(RepositoryCache.java:0)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache.a(RepositoryCache.java:312)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache.processFile(RepositoryCache.java:131)
at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.processFile(RepositoryManagerImpl.java:454)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:164)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:57)
at com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerImpl.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:271)
at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:37)
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUpProject(HeavyIdeaTestFixtureImpl.java:75)
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUp(HeavyIdeaTestFixtureImpl.java:58)
at com.logical.loomy.intellij.core.BaseTestCase.createJavaModuleFixtureData(BaseTestCase.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
at org.testng.internal.MethodHelper.invokeDataProvider(MethodHelper.java:700)
at org.testng.internal.Parameters.handleParameters(Parameters.java:348)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:706)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:673)
at org.testng.TestRunner.privateRun(TestRunner.java:620)
at org.testng.TestRunner.run(TestRunner.java:480)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
at org.testng.SuiteRunner.run(SuiteRunner.java:168)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
at org.testng.TestNG.run(TestNG.java:719)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

===============================================
Custom suite
org.testng.TestNGException: java.lang.reflect.InvocationTargetException
Total tests run: 0, Failures: 0, Skips: 0
===============================================

at org.testng.internal.MethodHelper.invokeDataProvider(MethodHelper.java:717)
at org.testng.internal.Parameters.handleParameters(Parameters.java:348)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:706)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:673)
at org.testng.TestRunner.privateRun(TestRunner.java:620)
at org.testng.TestRunner.run(TestRunner.java:480)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
at org.testng.SuiteRunner.run(SuiteRunner.java:168)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
at org.testng.TestNG.run(TestNG.java:719)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
at org.testng.internal.MethodHelper.invokeDataProvider(MethodHelper.java:700)
... 21 more
Caused by: java.lang.AssertionError: Repository caches are corrupted and will be rebuilt on next startup
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:56)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache.a(RepositoryCache.java:352)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache.processFile(RepositoryCache.java:131)
at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.processFile(RepositoryManagerImpl.java:454)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:164)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:57)
at com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerImpl.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:271)
at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:37)
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUpProject(HeavyIdeaTestFixtureImpl.java:75)
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUp(HeavyIdeaTestFixtureImpl.java:58)
at com.logical.loomy.intellij.core.BaseTestCase.createJavaModuleFixtureData(BaseTestCase.java:48)
... 27 more
ERROR: Assertion failed: Refreshing roots@1511320 --- 1511320
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.localVcs.common.CommonLVCS.rootsChanged(CommonLVCS.java:54)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:46)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy30.rootsChanged(Unknown Source)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.rootsChanged(ProjectRootManagerImpl.java:24)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$1.fileTypesChanged(ProjectRootManagerImpl.java:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:46)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy7.fileTypesChanged(Unknown Source)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.fireFileTypesChanged(FileTypeManagerImpl.java:240)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.unregisterFileType(FileTypeManagerImpl.java:89)
at com.intellij.openapi.module.EjbApplicationComponent$7.run(EjbApplicationComponent.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:382)
at com.intellij.openapi.module.EjbApplicationComponent.disposeComponent(EjbApplicationComponent.java:19)
at com.intellij.openapi.components.impl.ComponentManagerImpl.disposeComponents(ComponentManagerImpl.java:321)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:67)
at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl$2$1.run(ApplicationImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
ERROR:
java.lang.AssertionError: Assertion failed: Refreshing roots@1511320 --- 1511320
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:56)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.localVcs.common.CommonLVCS.rootsChanged(CommonLVCS.java:54)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:46)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy30.rootsChanged(Unknown Source)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.rootsChanged(ProjectRootManagerImpl.java:24)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$1.fileTypesChanged(ProjectRootManagerImpl.java:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:46)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy7.fileTypesChanged(Unknown Source)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.fireFileTypesChanged(FileTypeManagerImpl.java:240)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.unregisterFileType(FileTypeManagerImpl.java:89)
at com.intellij.openapi.module.EjbApplicationComponent$7.run(EjbApplicationComponent.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:382)
at com.intellij.openapi.module.EjbApplicationComponent.disposeComponent(EjbApplicationComponent.java:19)
at com.intellij.openapi.components.impl.ComponentManagerImpl.disposeComponents(ComponentManagerImpl.java:321)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:67)
at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl$2$1.run(ApplicationImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
ERROR:
java.lang.AssertionError:
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:60)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:84)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy30.rootsChanged(Unknown Source)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.rootsChanged(ProjectRootManagerImpl.java:24)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$1.fileTypesChanged(ProjectRootManagerImpl.java:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:46)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy7.fileTypesChanged(Unknown Source)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.fireFileTypesChanged(FileTypeManagerImpl.java:240)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.unregisterFileType(FileTypeManagerImpl.java:89)
at com.intellij.openapi.module.EjbApplicationComponent$7.run(EjbApplicationComponent.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:382)
at com.intellij.openapi.module.EjbApplicationComponent.disposeComponent(EjbApplicationComponent.java:19)
at com.intellij.openapi.components.impl.ComponentManagerImpl.disposeComponents(ComponentManagerImpl.java:321)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:67)
at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl$2$1.run(ApplicationImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
ERROR:
java.lang.AssertionError:
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:60)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:84)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:45)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:58)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:8)
at $Proxy7.fileTypesChanged(Unknown Source)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.fireFileTypesChanged(FileTypeManagerImpl.java:240)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.unregisterFileType(FileTypeManagerImpl.java:89)
at com.intellij.openapi.module.EjbApplicationComponent$7.run(EjbApplicationComponent.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:382)
at com.intellij.openapi.module.EjbApplicationComponent.disposeComponent(EjbApplicationComponent.java:19)
at com.intellij.openapi.components.impl.ComponentManagerImpl.disposeComponents(ComponentManagerImpl.java:321)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:67)
at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl$2$1.run(ApplicationImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
ERROR:
java.lang.AssertionError:
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:60)
at com.intellij.openapi.components.impl.ComponentManagerImpl.disposeComponents(ComponentManagerImpl.java:231)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:67)
at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl$2$1.run(ApplicationImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
ERROR:
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:853)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:6)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.AssertionError:
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:60)
at com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:102)
at com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:69)
at com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl$2$1.run(ApplicationImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
Exception in thread "Thread-1" java.lang.AssertionError:
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:49)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:60)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:5)
at java.lang.Thread.run(Thread.java:595)

6 comments
Comment actions Permalink

Hello Hugo,

java.lang.SecurityException: Prohibited package name: java.lang


this is strange. You could try to remove boot.jar from your IDEA JDK (don't delete the file though ;)). It incorrectly slips into the -classpath argument of JUnit configurations (where it doesn't seem to hurt, but I don't know about TestNG). Maybe the class from java.lang it contains causes the error. If this doesn't solve the problem, you can check if any JAR on the classpath contains classes from java.lang.

Sascha

0
Comment actions Permalink

If i remove boot.jar then i get:

ERROR: Repository caches are corrupted and will be rebuilt on next startup
java.lang.NoClassDefFoundError: java/lang/StringFactory
at com.intellij.psi.impl.source.parsing.JavadocParsing.a(JavadocParsing.java:9)
at com.intellij.psi.impl.source.parsing.JavadocParsing.parseDocCommentText(JavadocParsing.java:65)
at com.intellij.psi.impl.source.tree.JavaDocElementType$3.parseContents(JavaDocElementType.java:0)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:11)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:38)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transformChildren(ChameleonTransforming.java:29)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transformChildren(ChameleonTransforming.java:46)
at com.intellij.psi.impl.source.tree.CompositeElement.countChildren(CompositeElement.java:179)
at com.intellij.psi.impl.source.tree.CompositeElement.getChildrenAsPsiElements(CompositeElement.java:15)
at com.intellij.psi.impl.source.PsiClassImpl.getMethods(PsiClassImpl.java:48)
at com.intellij.psi.impl.cache.impl.repositoryCache.RecordManager.createClass(RecordManager.java:29)
at com.intellij.psi.impl.cache.impl.repositoryCache.RecordManager.a(RecordManager.java:89)
at com.intellij.psi.impl.cache.impl.repositoryCache.RecordManager.updateFileContent(RecordManager.java:45)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache$8.run(RepositoryCache.java:0)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache.a(RepositoryCache.java:312)
at com.intellij.psi.impl.cache.impl.repositoryCache.RepositoryCache.processFile(RepositoryCache.java:131)
at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.processFile(RepositoryManagerImpl.java:454)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:164)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:57)
at com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerImpl.java:3)
......

0
Comment actions Permalink

OK, that confirms that the DevKit's support for JUnit does not work for TestNG. Please file a JIRA issue that requests TestNG support for the IDEA testframework: The TestNG-Plugin should apply the JUnitPatcher Extension Points (which maybe then should be renamed into UnitTestPatcher).

As a workaround you can try to put "-Xbootclasspath/p:C:/Programme/IntelliJ Selena\lib\boot.jar" (with the correct path of course) into the VM arguments of your test.

Sascha

0
Comment actions Permalink

With the bootclasspath argument i get:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


Anyway, like i said before, i have been able to use the IDEA testframework just fine before. Even on this same project. In fact, i've been running tests like this the whole past week with no problems. Then, without me making any change that would justify this, it just stopped working.
So, i will create the JIRA issue, but it's just strange that it worked before and now it doesn't.

0
Comment actions Permalink

Ops, nevermind my comment about the bootclasspath, i didn't put the "/p".
It works fine now.....

Thanks..
I'll create the jira issue.

0

Please sign in to leave a comment.