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 193741

Summary: NumberFormatException: For input string: "I 2560"
Product: cnd Reporter: Alexander Pepin <apepin>
Component: DebuggerAssignee: Egor Ushakov <gorrus>
Status: RESOLVED FIXED    
Severity: normal Keywords: REGRESSION
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 174769
Attachments: stacktrace

Description Alexander Pepin 2010-12-22 15:29:24 UTC
Build: NetBeans IDE Dev (Build 201012220001)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
GUEST: Attach Debugger...

apepin: Steps to reproduce:
- create Quote sample
- run it
- call Attach Debugger
- select the process (PID of some processes contains 'I' symbol)
- press OK
Result: Exception occurs.




Stacktrace: 
java.lang.NumberFormatException: For input string: "I    2560"
   at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
   at java.lang.Long.parseLong(Long.java:410)
   at java.lang.Long.parseLong(Long.java:468)
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.AttachPanel.doAttach(AttachPanel.java:636)
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.AttachPanel.access$1900(AttachPanel.java:121)
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.AttachPanel$AttachController$1.run(AttachPanel.java:1050)
Comment 1 Alexander Pepin 2010-12-22 15:29:28 UTC
Created attachment 104401 [details]
stacktrace
Comment 2 Alexander Pepin 2010-12-22 15:50:19 UTC
This happens on Windows with cygwin.
Comment 3 Egor Ushakov 2010-12-22 20:59:59 UTC
we need to skip optional status column, fixed in:
http://hg.netbeans.org/cnd-main/rev/952805fd29b8
Comment 4 Quality Engineering 2010-12-29 07:11:17 UTC
Integrated into 'main-golden', will be available in build *201012290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/952805fd29b8
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #193741 (NumberFormatException: For input string: "I 2560")