views:

878

answers:

1

Problem in running Junit tests in eclipse 3.4.1 on Mac OS

I am getting this error: 'Lanuching AllTests' has encountered a problem. Cannot connect to VM.

!ENTRY org.eclipse.core.net 1 0 2009-01-29 10:07:44.047
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.25
4/16|*.169.254/16 by an external source. This value will be overwritten using th
e values from the preferences

!ENTRY org.eclipse.jdt.launching 4 120 2009-01-29 10:42:59.295
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at org.eclipse.jdi.internal.connect.SocketTransportService.accept(Socket
TransportService.java:95)
        at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTra
nsportImpl.java:56)
        at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(
SocketListeningConnectorImpl.java:135)
        at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable
.run(StandardVMDebugger.java:107)
        at java.lang.Thread.run(Thread.java:613)


A: 

Eclipse and JUnit communicate via IPC (Inter Process Communication). Here, you're using android with a specific virtual machine.

The message System property http.nonProxyHosts has been set to local|*.local|169.25 4/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences makes me wonder. There are preferences in your Eclipse and they are probably wrong. Try to remove these nonproxy settings in your Eclipse.

Good luck!

furtelwart