db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davi...@apache.org
Subject svn commit: r411944 - /db/derby/code/branches/10.1/java/client/org/apache/derby/client/net/NetAgent.java
Date Mon, 05 Jun 2006 23:07:29 GMT
Author: davidvc
Date: Mon Jun  5 16:07:28 2006
New Revision: 411944

URL: http://svn.apache.org/viewvc?rev=411944&view=rev
Log:
DERBY-1069: Client should unwrap exceptions thrown in privilege blocks
rather than throwing the java.security.PrivilegedActionException

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

Modified: db/derby/code/branches/10.1/java/client/org/apache/derby/client/net/NetAgent.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.1/java/client/org/apache/derby/client/net/NetAgent.java?rev=411944&r1=411943&r2=411944&view=diff
==============================================================================
--- db/derby/code/branches/10.1/java/client/org/apache/derby/client/net/NetAgent.java (original)
+++ db/derby/code/branches/10.1/java/client/org/apache/derby/client/net/NetAgent.java Mon
Jun  5 16:07:28 2006
@@ -111,7 +111,9 @@
             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.getException().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