Error running apex unit tests

Issue #627 resolved
John Rogers created an issue

Clicking 'run' button with an apex test configuration does nothing.

1.7.9.3-idea14

IntelliJ IDEA 2017.1.4 Build #IC-171.4694.23, built on June 6, 2017 JRE: 1.8.0_112-release-736-b21 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2017.1.4 Build #IC-171.4694.23 2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_112-release 2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - VM: OpenJDK 64-Bit Server VM 2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - Vendor: JetBrains s.r.o 2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - OS: Windows 10 2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - Last Action: Run 2017-06-08 10:40:23,157 [57557129] ERROR - plication.impl.ApplicationImpl - Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction()) Details: Current thread: Thread[ApplicationImpl pooled thread 117,4,main] 149566925 ; dispatch thread: false; isDispatchThread(): false SystemEventQueueThread: Thread[AWT-EventQueue-0 2017.1.4#IC-171.4694.23 IDEA, eap:false, os:Windows 10 10.0, java-version:JetBrains s.r.o 1.8.0_112-release-736-b21,6,main] 1234917668 java.lang.Throwable at com.intellij.openapi.diagnostic.Logger.error(Logger.java:150) at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1068) at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:674) at com.intellij.psi.impl.source.tree.AstPath$RootPath.getFileStubTree(AstPath.java:294) at com.intellij.psi.impl.source.tree.AstPath$ChildPath.getFileStubTree(AstPath.java:199) at com.intellij.psi.impl.source.tree.AstPath.getStub(AstPath.java:66) at com.intellij.extapi.psi.StubBasedPsiElementBase.getStub(StubBasedPsiElementBase.java:384) at com.illuminatedcloud.intellij.psi.stub.ApexDeclarationStubElementType.getStub(SourceFile:156) at com.illuminatedcloud.intellij.psi.impl.ApexDeclarationMixin.getStub(SourceFile:79) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.getMethodDeclarations(SourceFile:365) at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm$6.run(SourceFile:295) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726) at com.intellij.openapi.progress.impl.CoreProgressManager$6.run(CoreProgressManager.java:410) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:176) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:556) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$9(ApplicationImpl.java:594) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Enjoying the plugin so far! Thanks!

Comments (8)

  1. Scott Wells repo owner

    Thanks for reporting, John. Looks like it should be pretty simple to resolve. I'll take a look very shortly.

  2. John Rogers Account Deactivated reporter

    Hey, I just upgraded and am still seeing the issue. Thanks for your help!

    IC_run_unit.PNG

    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 2017.1.4  Build #IC-171.4694.23 
    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_112-release 
    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - VM: OpenJDK 64-Bit Server VM 
    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - Vendor: JetBrains s.r.o 
    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - OS: Windows 10 
    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - Last Action: ChooseRunConfiguration 
    2017-06-15 10:14:19,694 [ 181602]  ERROR - plication.impl.ApplicationImpl - Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())
    Details: Current thread: Thread[ApplicationImpl pooled thread 11,4,main] 338142828
    ; dispatch thread: false; isDispatchThread(): false
    SystemEventQueueThread: Thread[AWT-EventQueue-0 2017.1.4#IC-171.4694.23 IDEA, eap:false, os:Windows 10 10.0, java-version:JetBrains s.r.o 1.8.0_112-release-736-b21,6,main] 573104135 
    java.lang.Throwable
        at com.intellij.openapi.diagnostic.Logger.error(Logger.java:150)
        at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1068)
        at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:674)
        at com.intellij.psi.impl.source.tree.AstPath$RootPath.getFileStubTree(AstPath.java:294)
        at com.intellij.psi.impl.source.tree.AstPath$ChildPath.getFileStubTree(AstPath.java:199)
        at com.intellij.psi.impl.source.tree.AstPath.getStub(AstPath.java:66)
        at com.intellij.extapi.psi.StubBasedPsiElementBase.getStub(StubBasedPsiElementBase.java:384)
        at com.illuminatedcloud.intellij.psi.stub.ApexDeclarationStubElementType.getStub(SourceFile:156)
        at com.illuminatedcloud.intellij.psi.impl.ApexDeclarationMixin.getStub(SourceFile:79)
        at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.isTestClass(SourceFile:132)
        at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm$6.run(SourceFile:277)
        at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
        at com.intellij.openapi.progress.impl.CoreProgressManager$6.run(CoreProgressManager.java:410)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:176)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:556)
        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
        at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
        at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$9(ApplicationImpl.java:594)
        at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    
  3. Log in to comment