Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63654112BF for ; Tue, 16 Sep 2014 21:24:34 +0000 (UTC) Received: (qmail 24870 invoked by uid 500); 16 Sep 2014 21:24:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 24832 invoked by uid 500); 16 Sep 2014 21:24:34 -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 24821 invoked by uid 99); 16 Sep 2014 21:24:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2014 21:24:34 +0000 Date: Tue, 16 Sep 2014 21:24:34 +0000 (UTC) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6112) SSL Test (and network server ) can hang if serverSocket.accept() fails for something other than an IOException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren updated DERBY-6112: -------------------------------------- Attachment: DERBY-6112.diff Attaching a patch that makes the proposed change. > SSL Test (and network server ) can hang if serverSocket.accept() fails for something other than an IOException > --------------------------------------------------------------------------------------------------------------- > > Key: DERBY-6112 > URL: https://issues.apache.org/jira/browse/DERBY-6112 > Project: Derby > Issue Type: Bug > Components: Network Server, Test > Affects Versions: 10.8.3.0 > Reporter: Kathey Marsden > Labels: derby_triage10_11 > Attachments: DERBY-6112.diff > > > In starting a server with SSL as in SSLTest if serverSocket.accept() fails for some reason other than an IOException it may just print the error to console and hang. In this case it was: > java.security.AccessControlException: Access denied (java.util.PropertyPermission > I saw this when debugging a java issue in serverSocket.accept() but I think it could be simulated by adding an unwrapped System.getProperty() of some sort before serverSocket.accept() to force a permission error. e.g. > System.getProperty("derby.system.home"); > return serverSocket.accept(); > } catch (IOException acceptE) { > I have not verified that would work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)