tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlaskow...@apache.org
Subject svn commit: r592550 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java
Date Tue, 06 Nov 2007 20:47:47 GMT
Author: jlaskowski
Date: Tue Nov  6 12:47:46 2007
New Revision: 592550

URL: http://svn.apache.org/viewvc?rev=592550&view=rev
Log:
OPENEJB-713 java.lang.IllegalStateException: Can't overwrite cause

Submitted by: Jarek Gawor

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java?rev=592550&r1=592549&r2=592550&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java
Tue Nov  6 12:47:46 2007
@@ -226,7 +226,7 @@
                     if (interfaceType.isLocal()) {
                         throw (AccessLocalException)new AccessLocalException(exc.getMessage()).initCause(exc);
                     } else {
-                        throw (AccessException)new AccessException(exc.getMessage()).initCause(exc);
+                        throw new AccessException(exc.getMessage(), (Exception)exc);
                     }
                 }
 



Mime
View raw message