Display entire exception trace in Eclipse console

I am getting an exception in when running my program in eclipse. The entire trace is not shown. It displays some of the lines, but then is stays "and 12 more lines"
How do I get these lines to display?
LVL 1
allelopathAsked:
Who is Participating?
 
mkatmonkeyConnect With a Mentor Commented:
This issue was reported as a BUG to sun.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4775147

It's not something that they'll FIX, but they do list the customer's workaround which was to override the printstacktrace function.
0
 
mkatmonkeyCommented:
The javadoc on printStackTrace() contains an example of how the output should look:

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)
0
 
allelopathAuthor Commented:
So the exception class is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
I should create my own CommunicationsException?

package com.mycompany.exceptions;

public class CommunicationsException {

public void printStackTrace(PrintWriter s) {
  // what goes here?
}
 
}
0
 
allelopathAuthor Commented:
I thought this was an Eclipse issue, but it is a Java issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.