Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

"Unknown source code"

Thread view: 
418928@cepsz.unizar.es - 27 Jan 2007 12:39 GMT
Hi everybody,

I'm not sure under which conditions, when printing a stack trace, the
"unknown source code" is shown instead of the line in the source code
where the exception was thrown. Not knowing the line make debugging
more difficult... I thought it was only with code developed by third
parties, but in one example I have developed on my own it also
happens. Maybe because I'm using jars to package the .class files? Or
because I'm doing tests with networking? Thanks in advance for any
clarification,

Sergio
Thomas Kellerer - 27 Jan 2007 12:43 GMT
418928@cepsz.unizar.es wrote on 27.01.2007 13:39:
> Hi everybody,
>
[quoted text clipped - 6 lines]
> because I'm doing tests with networking? Thanks in advance for any
> clarification,

This happens when you compile your code without the -g switch (or with -g:none)

Third party libraries are often compiled in this way because it makes the
generated class files smaller.

Thomas


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.