--- src-orig/org/jbpm/graph/log/ActionLog.java Thu Oct 15 18:01:54 2009 +++ src/org/jbpm/graph/log/ActionLog.java Tue Jul 27 11:59:49 2010 @@ -44,6 +44,7 @@ this.action = action; } + @Override public String toString() { StringBuffer buffer = new StringBuffer(); @@ -64,6 +65,12 @@ StringWriter stringWriter = new StringWriter(); throwable.printStackTrace(new PrintWriter(stringWriter)); exception = stringWriter.toString(); + if(exception.length() > 4000) + { + final String cutMessage = "\nStack trace cut (longer than 4000 chars)"; + exception = + exception.substring(0, 4000 - cutMessage.length()).concat(cutMessage); + } } public Action getAction() --- src-orig/org/jbpm/job/Job.java Thu Oct 15 18:01:56 2009 +++ src/org/jbpm/job/Job.java Tue Jul 27 13:02:46 2010 @@ -57,6 +57,7 @@ public abstract boolean execute(JbpmContext jbpmContext) throws Exception; + @Override public String toString() { return "Job("+id+')'; } @@ -105,6 +106,11 @@ return exception; } public void setException(String exception) { + if (exception.length() > 4000) { + final String cutMessage = "\nStack trace cut (longer than 4000 chars)"; + exception = exception.substring(0, 4000 - cutMessage.length()).concat( + cutMessage); + } this.exception = exception; } public boolean isExclusive() {