Unable to run Apex Tests

Issue #508 resolved
Mike Gedelman created an issue

Jetbrains version: 2016.3.2 IC Version: 1.7.6.2-idea14 OS: OS X

Upon running unit tests, get error message: No enum constant com.sforce.soap.tooling.LogCategory.WAVE.

Repro: happens no matter what tests I try to run. Tried invalidating cache & restart to no avail. Seeing issue after upgrading IDEA & IC this morning.

Stack trace (see very bottom, the top one is probably irrelevant)

2017-01-07 08:51:48,881 [ 356826]  ERROR - ij.ui.popup.list.ListPopupImpl - Showing dialogs from popup onChosen can result in focus issues. Please put the handler into BaseStep.doFinalStep or PopupStep.getFinalRunnable. 
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
    at com.intellij.ui.popup.list.ListPopupImpl.lambda$_handleSelect$0(ListPopupImpl.java:386)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:417)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:401)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
    at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:930)
    at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:207)
    at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:194)
    at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:435)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:76)
    at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:338)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runSynchronously(CoreProgressManager.java:342)
    at com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:321)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm.updateTestClassesTreeModel(SourceFile:235)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm.updateTestClassesTreeModel(SourceFile:379)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm.access$1500(SourceFile:67)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm$9.run(SourceFile:558)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2493)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm.resetEditorFrom(SourceFile:544)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm.resetEditorFrom(SourceFile:67)
    at com.intellij.openapi.options.SettingsEditor.resetFrom(SettingsEditor.java:88)
    at com.intellij.execution.impl.ConfigurationSettingsEditor$ConfigToSettingsWrapper.resetEditorFrom(ConfigurationSettingsEditor.java:308)
    at com.intellij.execution.impl.ConfigurationSettingsEditor$ConfigToSettingsWrapper.resetEditorFrom(ConfigurationSettingsEditor.java:292)
    at com.intellij.openapi.options.CompositeSettingsEditor.resetEditorFrom(CompositeSettingsEditor.java:51)
    at com.intellij.execution.impl.ConfigurationSettingsEditorWrapper.resetEditorFrom(ConfigurationSettingsEditorWrapper.java:109)
    at com.intellij.execution.impl.ConfigurationSettingsEditorWrapper.resetEditorFrom(ConfigurationSettingsEditorWrapper.java:44)
    at com.intellij.openapi.options.SettingsEditor.resetFrom(SettingsEditor.java:88)
    at com.intellij.openapi.options.SettingsEditorConfigurable.reset(SettingsEditorConfigurable.java:50)
    at com.intellij.execution.impl.SingleConfigurationConfigurable.reset(SingleConfigurationConfigurable.java:121)
    at com.intellij.execution.impl.SingleConfigurationConfigurable.editSettings(SingleConfigurationConfigurable.java:100)
    at com.intellij.execution.impl.RunConfigurable.createNewConfiguration(RunConfigurable.java:1075)
    at com.intellij.execution.impl.RunConfigurable.createNewConfiguration(RunConfigurable.java:1108)
    at com.intellij.execution.impl.RunConfigurable$MyToolbarAddAction.lambda$showAddPopup$1(RunConfigurable.java:1138)
    at com.intellij.execution.impl.NewRunConfigurationPopup$1.onChosen(NewRunConfigurationPopup.java:82)
    at com.intellij.execution.impl.NewRunConfigurationPopup$1.onChosen(NewRunConfigurationPopup.java:48)
    at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:399)
    at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:351)
    at com.intellij.ui.popup.list.ListPopupImpl$MyMouseListener.mouseReleased(ListPopupImpl.java:504)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
    at java.awt.Component.processMouseEvent(Component.java:6533)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    at com.intellij.ui.popup.list.ListPopupImpl$MyList.processMouseEvent(ListPopupImpl.java:572)
    at java.awt.Component.processEvent(Component.java:6298)
    at java.awt.Container.processEvent(Container.java:2236)
    at java.awt.Component.dispatchEventImpl(Component.java:4889)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.java:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:675)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
    at java.awt.Dialog.show(Dialog.java:1084)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:779)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:457)
    at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1693)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1635)
    at com.intellij.openapi.options.ex.SingleConfigurableEditor.lambda$show$0(SingleConfigurableEditor.java:127)
    at com.intellij.openapi.project.DumbPermissionServiceImpl.allowStartingDumbModeInside(DumbPermissionServiceImpl.java:31)
    at com.intellij.openapi.project.DumbService.allowStartingDumbModeInside(DumbService.java:294)
    at com.intellij.openapi.options.ex.SingleConfigurableEditor.show(SingleConfigurableEditor.java:127)
    at com.intellij.execution.impl.EditConfigurationsDialog.lambda$show$0(EditConfigurationsDialog.java:54)
    at com.intellij.openapi.project.DumbPermissionServiceImpl.allowStartingDumbModeInside(DumbPermissionServiceImpl.java:37)
    at com.intellij.openapi.project.DumbService.allowStartingDumbModeInside(DumbService.java:294)
    at com.intellij.execution.impl.EditConfigurationsDialog.show(EditConfigurationsDialog.java:54)
    at com.intellij.execution.actions.EditRunConfigurationsAction.actionPerformed(EditRunConfigurationsAction.java:49)
    at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:199)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:215)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.performAction(PopupFactoryImpl.java:879)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.lambda$onChosen$0(PopupFactoryImpl.java:867)
    at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:204)
    at com.intellij.ui.popup.AbstractPopup.lambda$null$7(AbstractPopup.java:1394)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2017-01-07 08:51:48,883 [ 356828]  ERROR - ij.ui.popup.list.ListPopupImpl - IntelliJ IDEA 2016.3.2  Build #IC-163.10154.41 
2017-01-07 08:51:48,883 [ 356828]  ERROR - ij.ui.popup.list.ListPopupImpl - JDK: 1.8.0_112-release 
2017-01-07 08:51:48,883 [ 356828]  ERROR - ij.ui.popup.list.ListPopupImpl - VM: OpenJDK 64-Bit Server VM 
2017-01-07 08:51:48,883 [ 356828]  ERROR - ij.ui.popup.list.ListPopupImpl - Vendor: JetBrains s.r.o 
2017-01-07 08:51:48,883 [ 356828]  ERROR - ij.ui.popup.list.ListPopupImpl - OS: Mac OS X 
2017-01-07 08:53:24,852 [ 452797]   WARN - .IlluminatedCloudExceptionUtil - No enum constant com.sforce.soap.tooling.LogCategory.WAVE 
java.lang.IllegalArgumentException: No enum constant com.sforce.soap.tooling.LogCategory.WAVE
    at java.lang.Enum.valueOf(Enum.java:238)
    at com.sforce.soap.tooling.LogCategory.valueOf(SourceFile:31)
    at com.illuminatedcloud.client.ParsedApexLog$ApexLogHeader.parse(SourceFile:151)
    at com.illuminatedcloud.client.ParsedApexLog.parse(SourceFile:45)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.runTestsSynchronous(SourceFile:620)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler.access$1000(SourceFile:82)
    at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProcessHandler$3.run(SourceFile:496)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
    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)

Comments (12)

  1. Scott Wells repo owner

    I'll take a look today and see if I can get something out to help resolve it. Looks like it must be something quite simple to address.

  2. Scott Wells repo owner

    Looks like the logs in your org are coming back with a log category of WAVE which is not defined in any of the standard SOAP LogCategory enums. I'm adding defensive handling of unknown values with a logged warning to address the issue. I'll post a test build here soon for you to verify the fix and then include it in the next official release.

  3. Scott Wells repo owner

    Mike, please try installing this using Settings>Plugins>Install plugin from disk to see whether it addresses the issue for you. As I said, I'll include this in the next official build. Installing the test build will not interfere with your ability to update to the official one when released.

  4. Scott Wells repo owner

    Sounds like this is most likely related to the Spring '17 update received in many sandboxes recently.

  5. dennisATX

    I can add evidence to that assumption. My sandbox was upgraded to Spring 17 yesterday (01/06/2016), and I'm now seeing this issue.

  6. James Estevez

    Thanks. The attached build fixed the issue for me.

    • IntelliJ IDEA: 2016.3.2 Build #IU-163.10154.41

    • OS: Linux 4.8.13-1-ARCH

  7. Scott Wells repo owner

    Thanks for the confirmation, James. I'll plan to post an update with the fix today since this seems to be affecting an increasing number of users.

  8. Log in to comment