?
Solved

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

Posted on 2007-03-26
3
Medium Priority
?
363 Views
Last Modified: 2013-11-23
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
Comment
Question by:Daniel Wilson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 1000 total points
ID: 18794750
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
 
LVL 6

Expert Comment

by:SamsonChung
ID: 18794757
do the following in console

java classname >exception.txt
less exception.txt
0
 
LVL 6

Expert Comment

by:SamsonChung
ID: 18794759
Or if you are in Windows,

java clasname >exception.txt
notepad exception.txt
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question