Menu

#823 Debug as JUnit Test stops working with PyDev Installed

open
nobody
None
5
2009-01-05
2009-01-05
James
No

When PyDev is installed I can no longer debug a Java file as a JUnit Test. Run as Java Application and Run as JUnit Test still work. Debug as Java Application works too. But Debug as JUnit Test gives "Cannot connect to VM".

Uninstalling PyDev returns Debug as JUnit Test functionality.

OS: OS X 10.5.6
Java Version tried: 1.5, 1.6
Eclipse information:
Version: 3.4.1
Build id: M20080911-1700

From the Error Log:
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(SocketTransportService.java:95)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.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)

From the Debug Process information:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:52560 -Dfile.encoding=MacRoman -classpath /Users/james/Documents/workspace/reading_in_context/classes:/Users/james/Applications/eclipse/plugins/org.junit4_4.3.1/junit.jar:/Users/james/Applications/eclipse/configuration/org.eclipse.osgi/bundles/165/1/.cp/:/Users/james/Applications/eclipse/configuration/org.eclipse.osgi/bundles/163/1/.cp/:/Users/james/Applications/eclipse/configuration/org.eclipse.osgi/bundles/164/1/.cp/ org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 52559 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames readingincontext.TestKnowledgeBaseQueries

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.