Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 52642 invoked from network); 10 Feb 2006 08:08:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Feb 2006 08:08:23 -0000 Received: (qmail 41996 invoked by uid 500); 10 Feb 2006 08:08:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41729 invoked by uid 500); 10 Feb 2006 08:08:20 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 41710 invoked by uid 99); 10 Feb 2006 08:08:20 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2006 00:08:19 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 9A32F126 for ; Fri, 10 Feb 2006 09:07:58 +0100 (CET) Message-ID: <874170950.1139558878626.JavaMail.jira@ajax.apache.org> Date: Fri, 10 Feb 2006 09:07:58 +0100 (CET) From: "Satheesh Bandaram (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-635) Client socket connection doesn't report real socket exception In-Reply-To: <1393084038.1129841329893.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-635?page=all ] Satheesh Bandaram reassigned DERBY-635: --------------------------------------- Assign To: Satheesh Bandaram > Client socket connection doesn't report real socket exception > ------------------------------------------------------------- > > Key: DERBY-635 > URL: http://issues.apache.org/jira/browse/DERBY-635 > Project: Derby > Type: Improvement > Components: Network Client > Versions: 10.1.1.0 > Reporter: John C. Landers > Assignee: Satheesh Bandaram > Priority: Minor > > When opening a connection with a network url: jdbc:derby://localhost:4000/data > The netagent catchs the PrivilegedActionException but doesn't report the checked exception in it. > Changing these lines > try { > 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()); > } > To This returns the check exception information: > try { > socket_ = (java.net.Socket) java.security.AccessController.doPrivileged(new OpenSocketAction(server, port)); > } catch (java.security.PrivilegedActionException e) { > throw new DisconnectException(this, > e.getException().getClass().getName() + " : Error opening socket to server " + server + " on port " + port + " with message : " + e.getException().getMessage()); > } > It currently reports messages like this: > Caused by: java.sql.SQLException: org.apache.derby.client.am.SqlException: java.security.PrivilegedActionException : Error opening socket to server localhost on port 1527 with message : null > With this fix it reports: > org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error opening socket to server localhost on port 1527 with message : Connection refused: connect -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira