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.

Bug 152322 - starting debugger got IOException in ide log
Summary: starting debugger got IOException in ide log
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: jymen
URL:
Keywords:
: 152590 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-04 17:25 UTC by Peter Lam
Modified: 2009-01-15 01:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (22.58 KB, text/plain)
2008-11-08 05:09 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-11-04 17:25:27 UTC
Product Version: NetBeans IDE 6.5 RC2 (Build 20081104041628)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Got a project created from previous build. Upon starting ide, right clicked on the project and selected Debug. Debugger
was started but a red flashing round-icon is on the lower-right corner of the ide window. Looked at the ide log file and
found the following exception. The debugger still works as expected.

SEVERE [global]
java.io.IOException: The system cannot find the path specified
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:883)
[catch] at org.netbeans.modules.python.api.PythonOptions.createJythonBatFile(PythonOptions.java:309)
	at org.netbeans.modules.python.api.PythonOptions.<init>(PythonOptions.java:82)
	at org.netbeans.modules.python.api.PythonOptions.getInstance(PythonOptions.java:65)
	at org.netbeans.modules.python.debugger.config.NbPythonDebuggerSettings.initGlobals(NbPythonDebuggerSettings.java:27)
	at org.netbeans.modules.python.debugger.config.NetBeansFrontend.initCheck(NetBeansFrontend.java:269)
	at org.netbeans.modules.python.debugger.DebugPythonSource.init(DebugPythonSource.java:56)
	at org.netbeans.modules.python.debugger.DebugPythonSource.<init>(DebugPythonSource.java:47)
	at org.netbeans.modules.python.project.ui.actions.DebugCommand.invokeAction(DebugCommand.java:66)
	at org.netbeans.modules.python.project.PythonActionProvider$1.run(PythonActionProvider.java:70)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 jymen 2008-11-06 10:51:48 UTC
unable to reproduce using a previously created project on my side using build #156
Comment 2 Peter Lam 2008-11-06 22:58:20 UTC
still exists in build 157 (20081106). See attached for the ide log file.
Here's the reproducible scenario:
- start ide from fresh userdir
- create a new python project with the default python platform
- right click on the python project and select Debug. the debugger is started but the red flashing round-icon is right
at the lower-right corner. clicking on it brings up the exception.
Comment 3 jymen 2008-11-07 16:57:56 UTC
OK got it ; here is what's going on :

- If you start from a fresh clean and lean userdir => Your previously defined python platform bound with your existing
projects may have go away.
- If you work full jython based on the default jython bound platform this will happen seldom but this will happen
specially when the default jython version is upgraded (which has been the case recently).

The unfair thing is that both the debugger and the launcher as well are blowing up when this happens.
==> If the project platform is undefined an error now pop up for standard launch and debugger launch 

Initial idea was to silently switch back to the default platform ... but this is rather confusing if your project is a
Python project and the default platform is jython  I'll bet that the execution will fail ...

So if something different from this error is wanted then describe and open an enhancement.

Jean-Yves  

availability build #164
Comment 4 jymen 2008-11-07 17:00:28 UTC
*** Issue 152590 has been marked as a duplicate of this issue. ***
Comment 5 Peter Lam 2008-11-08 05:08:30 UTC
Verified in build 164 (20081107). The same exception still occurred for the same scenario. See attached ide log file.
Comment 6 Peter Lam 2008-11-08 05:09:19 UTC
Created attachment 73530 [details]
ide log file
Comment 7 jymen 2008-11-09 16:30:17 UTC
the problem is a windows specific problem raised when creating the jython.bat in an inexisting directory (since I do not
run windows I was not able to see it ) ; this problem is raised when using a project where the bound jython platform has
been deleted.

The fix consist in testing that the directory exists before creating jython.bat and silently give up if not

fix available in #168 build and above 
Comment 8 Peter Lam 2008-11-21 17:20:16 UTC
verified