Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Stack trace refuses to show line numbers, just says bci=nnn
Stack trace refuses to show line numbers, just says bci=nnn [message #555137] Wed, 25 August 2010 14:37 Go to next message
Alex Kerr is currently offline Alex KerrFriend
Messages: 18
Registered: October 2009
Junior Member
Would LOVE a clue how to solve this please.

Stack trace in console in Eclipse if I get a runtime error just shows "bci = nnn" where nnn is some number I don't understand.

In NetBeans I get the line number which I click on and the editor takes me right to the relevant line.

E.g. in Eclipse it's:

TRACE: <at java.lang.StringIndexOutOfBoundsException>, Exception caught in Display class
java.lang.StringIndexOutOfBoundsException
- javax.microedition.lcdui.Font.substringWidth(), bci=0
- AlphaCanvas.WriteText(), bci=900

In Netbeans it's:
TRACE: <at java.lang.StringIndexOutOfBoundsException>, Exception caught in Display class
java.lang.StringIndexOutOfBoundsException
at javax.microedition.lcdui.Font.substringWidth(), bci=0
at AlphaCanvas.WriteText(AlphaMain.java:1841)

The thing is, I have "Preferences->Java->Compiler->Add line number attributes to generated class files (used by the debugger)" checked (ticked) - both for general prefs and project specific prefs. And I've also unticked and applied and then reticked and applied with full rebuild each time.

I would MUCH appreciate a solution. Currently I'm having to copy my source into NetBeans (which I really don't want to use for other reasons) and debug in there, then copy source back each time.

Many thanks in advance!
Re: Stack trace refuses to show line numbers, just says bci=nnn [message #555163 is a reply to message #555137] Wed, 25 August 2010 15:52 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What JVM/JRE are you using? Sun? gcj?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Stack trace refuses to show line numbers, just says bci=nnn [message #555172 is a reply to message #555163] Wed, 25 August 2010 17:09 Go to previous message
Alex Kerr is currently offline Alex KerrFriend
Messages: 18
Registered: October 2009
Junior Member
I'm using the latest Sun JRE/JVM 6 that you can download off the website. Compiler compliance level is set to 1.3 not 1.6 because otherwise the runtime quits with Class format Error 56 (whatever that means) but 1.3 works fine apart from my problem.

I'm developing JavaME midlet and running in Sun's J2ME SDK 3.0 emulator, if that makes any difference. i.e. I'm using all the latest software, downloaded the other day.

Thanks.
Previous Topic:how to detect whether a plug-in was installed or not when installing new features by update site
Next Topic:Method View
Goto Forum:
  


Current Time: Fri Sep 20 00:29:33 GMT 2024

Powered by FUDForum. Page generated in 0.03744 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top