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 193352 - NumberFormatException: For input string: ""
Summary: NumberFormatException: For input string: ""
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
: 193811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-14 08:06 UTC by jocke
Modified: 2011-01-31 16:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174886


Attachments
stacktrace (2.31 KB, text/plain)
2010-12-14 08:07 UTC, jocke
Details
Debugger console (4.63 KB, text/plain)
2010-12-14 11:47 UTC, jocke
Details
what I can find (3.36 KB, text/plain)
2010-12-15 08:05 UTC, jocke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jocke 2010-12-14 08:06:53 UTC
Build: NetBeans IDE Dev (Build 201012140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
jocke: debug main project, c++

jocke: debug c++ project

jocke: ...




Stacktrace: 
java.lang.NumberFormatException: For input string: ""
   at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
   at java.lang.Integer.parseInt(Integer.java:470)
   at java.lang.Integer.parseInt(Integer.java:499)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.extractPid1(GdbDebuggerImpl.java:913)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.access$900(GdbDebuggerImpl.java:129)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$InfoProcMICmd.onDone(GdbDebuggerImpl.java:1027)
Comment 1 jocke 2010-12-14 08:07:02 UTC
Created attachment 104044 [details]
stacktrace
Comment 2 Egor Ushakov 2010-12-14 10:27:40 UTC
could you please attach gdb log?
(main menu/windows/debugging/debugger console)
Comment 3 jocke 2010-12-14 11:47:37 UTC
Created attachment 104055 [details]
Debugger console
Comment 4 Egor Ushakov 2010-12-14 14:48:19 UTC
I'm unable to reproduce it, adding more logging:
http://hg.netbeans.org/cnd-main/rev/b7657807421d
please attach a new exception from the new build
Comment 5 Quality Engineering 2010-12-15 06:18:41 UTC
Integrated into 'main-golden', will be available in build *201012150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b7657807421d
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixing #193352 (NumberFormatException: For input string: "")
Comment 6 jocke 2010-12-15 08:05:03 UTC
Created attachment 104103 [details]
what I can find

Now debugging ends directly and debugger console is cleared so I have no time se what's in it.
Comment 7 Egor Ushakov 2010-12-15 09:53:10 UTC
thanks! Now I see what the problem is, extra "\n" in output is the issue.
Comment 8 Egor Ushakov 2010-12-15 10:17:47 UTC
well, real problem is that:
"[Thread debugging using libthread_db enabled]"
console output is mixed into wrong command.

Fixed in:
http://hg.netbeans.org/cnd-main/rev/fe7188c1a9a4

please verify
Comment 9 Quality Engineering 2010-12-16 06:40:16 UTC
Integrated into 'main-golden', will be available in build *201012160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fe7188c1a9a4
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #193352 (NumberFormatException: For input string: "")
Comment 10 jocke 2010-12-21 13:14:53 UTC
Works with NetBeans-dev-nbms-and-javadoc-6360-on-101221-full.zip
Comment 11 Egor Ushakov 2011-01-31 16:41:51 UTC
*** Bug 193811 has been marked as a duplicate of this bug. ***