9.0.2 run tests command hangs

I just upgraded to 9.0.2 yesterday and executing the "Run tests in XXX" command now hangs when I'm connected to my VPN.  I right click on a package node in my project browser and select run tests in "some.package" and the test suite eventually times out and there is a background task labelled "Searching for Tests" that never goes away.  If I click the red stop button next to the process, the whole app hangs and I have to force quit.  

This is the exception I see when the timeout occurrs:

EMMA: collecting runtime coverage data ...
java.net.ConnectException: Operation timed out
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
 at java.net.Socket.connect(Socket.java:525)
 at java.net.Socket.connect(Socket.java:475)
 at java.net.Socket.<init>(Socket.java:372)
 at java.net.Socket.<init>(Socket.java:215)
 at com.intellij.rt.execution.junit.JUnitStarter.processParameters(JUnitStarter.java:100)
 at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:51)
0 test class found in package 'null'



Here's a little about my setup.

-) Snow Leopard (10.6.3)
-) Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
-) Using Maven with configuration files stored in the .idea directory structure

Any suggestions on how to get around this?
5 comments

Hello Daniel,

What do you mean that "test suite eventually times out"? Defenetely that
caused the problem though ...

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I just upgraded to 9.0.2 yesterday and executing the "Run tests in
XXX" command now hangs when I'm connected to my VPN.  I right click on
a package node in my project browser and select run tests in
"some.package" and the test suite eventually times out and there is a
background task labelled "Searching for Tests" that never goes away.
If I click the red stop button next to the process, the whole app
hangs and I have to force quit.

This is the exception I see when the timeout occurrs:

EMMA: collecting runtime coverage data ...
java.net.ConnectException: Operation timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.<init>(Socket.java:372)
at java.net.Socket.<init>(Socket.java:215)
at
com.intellij.rt.execution.junit.JUnitStarter.processParameters(JUnitSt
arter.java:100)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:51
)
0 test class found in package 'null'
Here's a little about my setup.

-) Snow Leopard (10.6.3)
-) Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
-) Using Maven with configuration files stored in the .idea directory
structure
Any suggestions on how to get around this?

---
Original message URL:
http://www.jetbrains.net/devnet/message/5262682#5262682



0

I apologize for being unclear.  I meant that the internal idea setup process appears to time out.  It never actually runs any tests.  You can see the exception on my first post, and also as mentioned earlier the "Searching for Tests" background task never completes.

Also, just to reiterate, it only happens when I am connected to my VPN.  Something isn't resolving correctly in that mode.  Maybe some firewall issue or something, I don't know... I do know, that I never had this problem prior to 9.0.2 though.

Daniel

0

Hello Daniel,

Do you see the problem without VPN? Seems that it is indeed connected with
net settings ...

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I apologize for being unclear.  I meant that the internal idea setup
process appears to time out.  It never actually runs any tests.  You
can see the exception on my first post, and also as mentioned earlier
the "Searching for Tests" background task never completes.

Also, just to reiterate, it only happens when I am connected to my
VPN.  Something isn't resolving correctly in that mode.  Maybe some
firewall issue or something, I don't know... I do know, that I never
had this problem prior to 9.0.2 though.

Daniel

---
Original message URL:
http://www.jetbrains.net/devnet/message/5262756#5262756



0

No, I don't see the problem when my VPN is off.  Do you have any clue why this just now happened with the update?  I've been using IDEA with my VPN on for well over a year now without any problems.  Also, it's not a problem with my test suite, I can run them via the command line with maven just fine.  In fact, that's my only option at the moment unless I roll back to the previous build.

0

Hello Daniel,

We've changed the protocol to run tests in package so search for tests is
performed in background. Afterwards sync should be performed between IDEA
VM and tests's VM. Sockets are used. Seems that InetAddress.getLocalHost()
is wrong with VPN enabled.

So there is no possible workarounds other than - use test suites instead
of all in package tests

Sorry for the inconvenience

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

No, I don't see the problem when my VPN is off.  Do you have any clue
why this just now happened with the update?  I've been using IDEA with
my VPN on for well over a year now without any problems.  Also, it's
not a problem with my test suite, I can run them via the command line
with maven just fine.  In fact, that's my only option at the moment
unless I roll back to the previous build.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5262898#5262898



0

Please sign in to leave a comment.