db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: r376777 - /db/derby/code/trunk/java/client/org/apache/derby/client/net/NetAgent.java
Date Fri, 10 Feb 2006 18:07:20 GMT
Author: bandaram
Date: Fri Feb 10 10:07:18 2006
New Revision: 376777

URL: http://svn.apache.org/viewcvs?rev=376777&view=rev
Log:
DERBY-635: Get exception message from PrivilegedActionException after getting real exception.

Submitted by John C Landers (jcl@pc-intouch.com)

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/net/NetAgent.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/net/NetAgent.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/client/org/apache/derby/client/net/NetAgent.java?rev=376777&r1=376776&r2=376777&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/net/NetAgent.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/net/NetAgent.java Fri Feb 10 10:07:18
2006
@@ -111,7 +111,7 @@
             socket_ = (java.net.Socket) java.security.AccessController.doPrivileged(new OpenSocketAction(server,
port));
         } catch (java.security.PrivilegedActionException e) {
             throw new DisconnectException(this,
-                    e.getClass().getName() + " : Error opening socket to server " + server
+ " on port " + port + " with message : " + e.getMessage());
+                    e.getClass().getName() + " : Error opening socket to server " + server
+ " on port " + port + " with message : " + e.getException().getMessage());
         }
 
         // Set TCP/IP Socket Properties



Mime
View raw message