db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1079761 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java
Date Wed, 09 Mar 2011 11:52:20 GMT
Author: kahatlen
Date: Wed Mar  9 11:52:19 2011
New Revision: 1079761

URL: http://svn.apache.org/viewvc?rev=1079761&view=rev
Log:
DERBY-5113: Intermittent failure in BlobSetMethodsTest on Java 7: Unable to set stream: 'Reached
EOF prematurely; expected 1,024, got 0.'

Made Util.setStreamFailure() preserve the stack trace of the underlying exception to help
debugging the problem.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java?rev=1079761&r1=1079760&r2=1079761&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java Wed Mar  9 11:52:19
2011
@@ -325,9 +325,7 @@ public abstract class Util  {
 		msg = e.getMessage();
 		if (msg == null) 
 			msg = e.getClass().getName();
-		return newEmbedSQLException(SQLState.SET_STREAM_FAILURE,
-			new Object[] {msg},
-                StandardException.getSeverityFromIdentifier(SQLState.SET_STREAM_FAILURE));
+        return generateCsSQLException(SQLState.SET_STREAM_FAILURE, msg, e);
 	}
 
 	static SQLException typeMisMatch(int targetSQLType) {



Mime
View raw message