PHPUnit on server results in an exception

Hi!

I try to run PHPUnit tests on our development server using the "PHPUnit on Server" feature.

After I added a new configuration, I tried to run the tests on the server but nothing happened.

So I opened the log and found the following exception:

2012-01-19 11:16:00,699 [7995428]  ERROR - com.intellij.ide.IdeEventQueue - JetBrains PhpStorm 3.0  Build #PS-111.19 2012-01-19 11:16:00,699 [7995428]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_29 2012-01-19 11:16:00,699 [7995428]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM 2012-01-19 11:16:00,699 [7995428]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc. 2012-01-19 11:16:00,699 [7995428]  ERROR - com.intellij.ide.IdeEventQueue - OS: Windows 7 2012-01-19 11:16:00,699 [7995428]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: Run 2012-01-19 11:16:01,877 [7996606]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(483,70),absolute(2155,62),button=1,modifiers=Button1,clickCount=1] on frame0 java.lang.IllegalArgumentException: Argument 1 for @NotNull parameter of com/jetbrains/php/phpunit/PhpUnitQualifiedNameLocationProvider.create must not be null      at com.jetbrains.php.phpunit.PhpUnitQualifiedNameLocationProvider.create(PhpUnitQualifiedNameLocationProvider.java)      at com.jetbrains.php.run.deploymentAware.phpunit.PhpUnitRemoteRunConfiguration$1.execute(PhpUnitRemoteRunConfiguration.java:407)      at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.java:35)      at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)      at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:156)      at com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:133)      at com.intellij.execution.impl.ExecutionManagerImpl.startRunProfile(ExecutionManagerImpl.java:186)      at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:78)      at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:62)      at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:80)      at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:89)      at com.intellij.execution.ExecutorRegistryImpl$ExecutorAction.actionPerformed(ExecutorRegistryImpl.java:233)      at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:162)      at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:132)      at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:303)      at java.awt.Component.processEvent(Component.java:6053)      at java.awt.Container.processEvent(Container.java:2041)      at java.awt.Component.dispatchEventImpl(Component.java:4651)      at java.awt.Container.dispatchEventImpl(Container.java:2099)      at java.awt.Component.dispatchEvent(Component.java:4481)      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)      at java.awt.Container.dispatchEventImpl(Container.java:2085)      at java.awt.Window.dispatchEventImpl(Window.java:2478)      at java.awt.Component.dispatchEvent(Component.java:4481)      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)      at java.awt.EventQueue.access$000(EventQueue.java:84)      at java.awt.EventQueue$1.run(EventQueue.java:602)      at java.awt.EventQueue$1.run(EventQueue.java:600)      at java.security.AccessController.doPrivileged(Native Method)      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)      at java.awt.EventQueue$2.run(EventQueue.java:616)      at java.awt.EventQueue$2.run(EventQueue.java:614)      at java.security.AccessController.doPrivileged(Native Method)      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)      at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)      at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:686)      at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:530)      at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:416)      at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)      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)


Is it a configuration error or a bug in PHPStorm?


Regards,
Marco

2 comments
Comment actions Permalink

Hi Marco,

From what I understand it is a bug in PhpStorm (as it's a Java exception).

I think it's already fixed in v3.0.1. If you are brave enough you can try latest EAP build yourself to verify that (please note: current EAP build has other issues).

If the issue still persists in EAP build -- please submit new ticket to Issue Tracker: http://youtrack.jetbrains.net/issues/WI

0
Comment actions Permalink

Hi Andriy,

I installed v3.0.1 and I can run my unit tests on the server now.

Thanks.

0

Please sign in to leave a comment.