Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6112

SSL Test (and network server ) can hang if serverSocket.accept() fails for something other than an IOException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Normal

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            myrna Myrna van Lunteren
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment