File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Stack Trace Link / line number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Stack Trace Link / line number" Watch "Stack Trace Link / line number" New topic

Stack Trace Link / line number

Mark Binau
Ranch Hand

Joined: Mar 04, 2004
Posts: 37
I am using WSAD 5.1. When my code prints a stack trace to the console, most the lines are hot links and display the line number. The lines that display (Unknown Source) are the ones that pertain to the code I have written. There must be a way to make it recoginize my code, but I have not been able to find it yet. Can someone point me in the right direction? What keyword should I search for in the help.

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30076

Debugging and stack traces use the same paths. It's a bit easier to setup using debugging though. Try to debug into your class. When WSAD says it can't find the source, there is a button to add the jar.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30076

Alternatively, you can go the the project's build path and set the source path for a jar.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
You should also check that in your compiler settings you have debug informations enabled.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: Stack Trace Link / line number
Similar Threads
false NullPointerException when reading Blob from database?
JApplet not connecting to SQL database
Jtable and database results
Problem in updating data to Oracle database in servlets
Ant Unknown Source?????