Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: 3.1
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Linux

    • Issuezilla Id:
      11,539

      Description

      When accessing a web service using basic authentication over HTTPS glassfish
      seems to leak sockets, which in turn leads to a crash because of too many open
      files. When running lsof -p [pid of the glassfish process] we see a lot of rows
      like this:

      java 18737 user 415u sock 0,4 1262098 can't identify protocol
      java 18737 user 416u sock 0,4 1262099 can't identify protocol
      java 18737 user 417u sock 0,4 1262100 can't identify protocol

      If we run the same web service using only HTTP then there is no socket leak.

      We have reproduced this with this web service:

      @Stateless
      @WebService(serviceName = "test")
      @RolesAllowed("customer")
      public class TestApi {
      @WebMethod(action="sayHello")
      public String sayHello(String str)

      { return "Hello " + str; }

      }

      This is the sun-ejb-jar.xml
      [...]
      <sun-ejb-jar>
      <security-role-mapping>
      <role-name>customer</role-name>
      <group-name>customer</group-name>
      </security-role-mapping>
      <enterprise-beans>
      <ejb>
      <ejb-name>TestApi</ejb-name>
      <webservice-endpoint>
      <port-component-name>TestApi</port-component-name>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      <login-config>
      <auth-method>BASIC</auth-method>
      <realm>file</realm>
      </login-config>
      </webservice-endpoint>
      </ejb>
      </enterprise-beans>
      </sun-ejb-jar>

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            kumarjayanti
            Reporter:
            pdervall
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: