Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

NO Line Numbers in Exception!!!

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the BEA/WebLogic forum.
 
Ranch Hand
Posts: 529
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic