You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2010/04/02 23:16:08 UTC
svn commit: r930390 -
/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java
Author: ivaynberg
Date: Fri Apr 2 21:16:08 2010
New Revision: 930390
URL: http://svn.apache.org/viewvc?rev=930390&view=rev
Log:
WICKET-2796 Improve error reporting on locked page maps
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java
Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java?rev=930390&r1=930389&r2=930390&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Session.java Fri Apr 2 21:16:08 2010
@@ -758,22 +758,9 @@ public abstract class Session implements
// if it is still not the right thread..
// This either points to long running code (a report
// page?) or a deadlock or such
- try
- {
- StackTraceElement[] stackTrace = t.getStackTrace();
- asb.append("\n\tBegin of stack trace of " + t);
- for (StackTraceElement stackTraceElement : stackTrace)
- {
- asb.append("\n\t");
- asb.append(stackTraceElement);
- }
- asb.append("\n\tEnd of stack trace of " + t);
- }
- catch (Exception e)
- {
- // ignore
- }
- throw new WicketRuntimeException(asb.toString());
+ WicketRuntimeException ex = new WicketRuntimeException(asb.toString());
+ ex.setStackTrace(t.getStackTrace());
+ throw ex;
}
}