This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Debugger fails to start with "No transports initialized" message | ||
---|---|---|---|
Product: | debugger | Reporter: | swpalmer <swpalmer> |
Component: | Code | Assignee: | issues@debugger <issues> |
Status: | CLOSED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
swpalmer
2009-07-27 18:58:58 UTC
Can you please set "Verbosity Level" option that you find at Tools -> Options -> Miscellaneous -> Ant pane to "Verbose"? Then IDE will print messages about how it executes the application and we'll hopefully see why it does not find the shared memory it tries to connect to. I just had a very similar failure happen again.. the stack trace is short so I'm including it below... I think the key to reproducing it is: 1. change the working directory for the project to a non-existing path 2. hit the debug button. It will fail because of the path problem 3. fix the woprking directory 4. hit debug. This time it fails because of this shared memory problem. I'm sure that the original report was also based on a first attempt to debugt that failed for some reason not directly related to the debugger. Then the following invocation failed because of the transport initialization problem. Here's the failure details from my last run... init: deps-jar: init: deps-jar: compile: Not copying the libraries. jar: compile: Listening failed with arguments: {timeout=timeout=, name=name=} java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists at org.netbeans.modules.debugger.jpda.ant.JPDAStart.execute(JPDAStart.java:244) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists at com.sun.tools.jdi.SharedMemoryTransportService.startListening0(Native Method) at com.sun.tools.jdi.SharedMemoryTransportService.startListening(SharedMemoryTransportService.java:100) at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96) at com.sun.tools.jdi.SharedMemoryListeningConnector.startListening(SharedMemoryListeningConnector.java:56) at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:284) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030) --- Nested Exception --- java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists at com.sun.tools.jdi.SharedMemoryTransportService.startListening0(Native Method) at com.sun.tools.jdi.SharedMemoryTransportService.startListening(SharedMemoryTransportService.java:100) at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96) at com.sun.tools.jdi.SharedMemoryListeningConnector.startListening(SharedMemoryListeningConnector.java:56) at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:284) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030) W:\TestProject\nbproject\build-impl.xml:524: The following error occurred while executing this line: W:\TestProject\nbproject\build-impl.xml:265: java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists BUILD FAILED (total time: 0 seconds) I tried setting the Verbosity Level and debugging again - it failed the same way (I suspect it will fail until I restart the IDE), but I didn't much additional info in the verbose output that looked helpful. The same exceptions were just printed several more times. I did notice this: -init-debug-args: Property "have-jdk-older-than-1.4" has not been set Property "debug.transport" has not been set -init-macrodef-nbjpda: Property "main.class" has not been set Trying to override old definition of task http://www.netbeans.org/ns/j2se-project/1:nbjpdastart creating macro http://www.netbeans.org/ns/j2se-project/1:nbjpdastart creating macro http://www.netbeans.org/ns/j2se-project/1:nbjpdareload ... -post-compile: compile: -debug-start-debugger: Listening failed with arguments: {timeout=timeout=, name=name=} java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists This is a duplicate of issue #148490. It was resolved recently in 6.8 dev builds. *** This issue has been marked as a duplicate of 148490 *** verified duplicate |