• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

How do I show complete java exception trace, not "... 5 more"

I'm debugging a java class (from SourceForge) from the command line.  With some input files, it throws an exception and prints a bunch of trace information -- but not all it has.  It terminates with "... 5 more".

this addresses the issue
http://forum.java.sun.com/thread.jspa?threadID=657351&messageID=3862741

But is there a way to get the java runtime to print the entire trace rather than truncating it?

Thanks!
0
Daniel Wilson
Asked:
Daniel Wilson
  • 2
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
Try calling getStackTrace () and print it yourself:

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html#getStackTrace()

Otherwise try printStackTrace ( out ) ; and write it to a file, see if it helps.
0
 
SamsonChungCommented:
do the following in console

java classname >exception.txt
less exception.txt
0
 
SamsonChungCommented:
Or if you are in Windows,

java clasname >exception.txt
notepad exception.txt
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now