Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NO Line Numbers in Exception!!!

 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We are using Weblogic 7.0 as app server. When we get some exception, we are seeing that weblogic is not giving the line numbers for the applicatin code but giving for Java and Weblogic code. Sample exception is below. Please let me know how we can make weblogic display the line numbers.

thanks in advance,
Santhosh
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the BEA/WebLogic forum.
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Weblogic compiled their code with the -g:none option then you may not be able to display the line numbers. Someone else may no better than me.

Barry
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand. I see line numbers for all weblogic code in your stack trace. The things without line numbers are "com.lbx.*" which I don't recognize.
Java prints stack traces, and uses whatever information is in the class files. Older versions of hotspot and JITs were not able to preserve line numbers on runtime-optimized code, so you'd loose line numbers there, but that rarely happens with JDK >= 1.3.
Another possibility is that "lbx" striped the line number tables from the class files (-g:none or something) when they compilee (or in a post-compile obsfucator or whatever). In that case, java has no information to print line numbers in stack traces so it doesn't.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic