glassfish
  1. glassfish
  2. GLASSFISH-6981

web container not accessible after updating definitions of a blocking listener

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.1.1
    • Fix Version/s: 9.1.1_dev
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      6,981

      Description

      When enabling "blocking" for a HTTP listener (followed by a restart), and then
      changing another setting on the HTTP Listener, for example the Redirect port,
      the following error message is logged and content on this listener becomes
      inaccessible.

      [#|2008-12-31T15:18:33.278+1100|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=RMI
      TCP
      Connection(16)-137.172.75.145;_RequestID=e62ed451-137c-47f1-8aef-01f48ca951c4;|WEB0701:
      Error initializing endpoint
      java.net.BindException: Address already in use: JVM_Bind: 8080
      at
      com.sun.enterprise.web.connector.grizzly.blocking.SelectorBlockingThread.initEndpoint(SelectorBlockingThread.java:112)
      at
      com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.init(GrizzlyHttpProtocol.java:225)
      at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1627)
      at
      com.sun.enterprise.web.connector.coyote.PECoyoteConnector.initialize(PECoyoteConnector.java:791)
      at org.apache.catalina.core.StandardService.addConnector(StandardService.java:330)

      The problem seems to be that the socket of a blocked listener is not closed
      properly, so when it tries to reopen it with the new settings, it fails to rebind.

        Activity

        Hide
        Dies Koper added a comment -

        sorry, wrong subcomponent. Changing to web container.

        Show
        Dies Koper added a comment - sorry, wrong subcomponent. Changing to web container.
        Hide
        Dies Koper added a comment -

        Created an attachment (id=2175)
        proposed patch (based on current GFv2.1 source)

        Show
        Dies Koper added a comment - Created an attachment (id=2175) proposed patch (based on current GFv2.1 source)
        Hide
        jfarcand added a comment -

        ...

        Show
        jfarcand added a comment - ...
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."
        Hide
        jfarcand added a comment -

        The patch contains HTML...can you re-attach it? Reading it I agree with the
        proposed fix. Will be applied to the next GF v2 patch release.

        Show
        jfarcand added a comment - The patch contains HTML...can you re-attach it? Reading it I agree with the proposed fix. Will be applied to the next GF v2 patch release.
        Hide
        Dies Koper added a comment -

        Created an attachment (id=2275)
        proposed patch (ignore previous one, the file was corrupted)

        Show
        Dies Koper added a comment - Created an attachment (id=2275) proposed patch (ignore previous one, the file was corrupted)
        Hide
        Dies Koper added a comment -

        Fixed in SJSAS91_FCS_BRANCH for "GFv2.1-next".

        Checking in appserv-http-
        engine/src/java/com/sun/enterprise/web/connector/grizzly/blocking/SelectorB
        lockingThread.java;
        /cvs/glassfish/appserv-http-
        engine/src/java/com/sun/enterprise/web/connector/grizzly/blocking/Select
        orBlockingThread.java,v <-- SelectorBlockingThread.java
        new revision: 1.10.6.2; previous revision: 1.10.6.1
        done

        Show
        Dies Koper added a comment - Fixed in SJSAS91_FCS_BRANCH for "GFv2.1-next". Checking in appserv-http- engine/src/java/com/sun/enterprise/web/connector/grizzly/blocking/SelectorB lockingThread.java; /cvs/glassfish/appserv-http- engine/src/java/com/sun/enterprise/web/connector/grizzly/blocking/Select orBlockingThread.java,v <-- SelectorBlockingThread.java new revision: 1.10.6.2; previous revision: 1.10.6.1 done

          People

          • Assignee:
            jfarcand
            Reporter:
            Dies Koper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: