glassfish
  1. glassfish
  2. GLASSFISH-16817

Editing IIOP Listener Bind Address Causes Listener to Fail to Start

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1_b43
    • Fix Version/s: 3.1.2_b07
    • Component/s: orb
    • Labels:
      None
    • Environment:

      RHEL 5.6 x86_64
      JDK 1.6.0_25

      Description

      Running:
      asadmin --port 6248 set server-config.iiop-service.iiop-listener.orb-listener-1.address=localhost

      Changed this snippet in my domain.xml:
      <iiop-listener port="6237" id="orb-listener-1" address="0.0.0.0" lazy-init="true"></iiop-listener>
      To this:
      <iiop-listener port="6237" id="orb-listener-1" address="localhost" lazy-init="true">
      <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname=""></ssl>
      </iiop-listener>

      0) This domain was created with port base = 6200, but different port bases don't seem to make a difference.
      1) There was no intention / action to make this a secure listener, and it doesn't add the security-enabled="true" attribute anyway.
      2) The same command worked fine with 3.0.
      3) This happens whether its localhost or a real host name (which we need to use to perform a workaround of our server being behind a NAT gateway as viewed by some clients).

      The end result is that the default IIOP listener doesn't start up, and the output below is printed to the server log. You'll see the "Lazy-init not supported for SSL iiop-listeners" message, which is the apparent result of the unintended side effect of adding the <ssl> child element.

      [#|2011-06-02T14:30:23.468-0400|WARNING|glassfish3.1|javax.enterprise.system.org.glassfish.enterprise.iiop.api|_ThreadID=30;_ThreadName=Thread-1;|ORB initialization failed in lazy init
      java.lang.RuntimeException: Orb initialization erorr
      at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:148)
      at org.glassfish.enterprise.iiop.api.ORBLazyServiceInitializer.initializeService(ORBLazyServiceInitializer.java:87)
      at com.sun.enterprise.v3.services.impl.ServiceInitializerHandler.onAcceptInterest(ServiceInitializerHandler.java:107)
      at com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:301)
      at com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:263)
      at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:200)
      at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:132)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Invalid iiop-listener orb-listener-1. Lazy-init not supported for SSL iiop-listeners
      at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:622)
      at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263)
      at org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93)
      at org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:120)
      ... 9 more
      Caused by: java.lang.IllegalStateException: Invalid iiop-listener orb-listener-1. Lazy-init not supported for SSL iiop-listeners
      at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.validateIiopListeners(GlassFishORBManager.java:758)
      at org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:504)
      ... 12 more

      #]

        Activity

        Hide
        Harshad Vilekar added a comment -

        Could not duplicate this with 3.1.2_b07 nightly.

        asadmin --port 6248 set server-config.iiop-service.iiop-listener.orb-listener-1.address=localhost

        ---------- server log --------------

        [#|2011-10-27T15:43:02.242-0700|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=14;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 102ms - bound to [0.0.0.0:6248]|#]

        [#|2011-10-27T15:43:02.241-0700|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 69ms - bound to [localhost:6237]|#]

        [#|2011-10-27T15:43:02.243-0700|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=15;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 172ms - bound to [0.0.0.0:6280]|#]

        :
        ---------- server log --------------

        domain.xml:

        <iiop-listener port="6237" id="orb-listener-1" address="localhost" lazy-init="true"></iiop-listener>
        <iiop-listener port="6238" id="SSL" address="0.0.0.0" security-enabled="true">
        <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"></ssl>
        </iiop-listener>

        Show
        Harshad Vilekar added a comment - Could not duplicate this with 3.1.2_b07 nightly. asadmin --port 6248 set server-config.iiop-service.iiop-listener.orb-listener-1.address=localhost ---------- server log -------------- [#|2011-10-27T15:43:02.242-0700|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=14;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 102ms - bound to [0.0.0.0:6248] |#] [#|2011-10-27T15:43:02.241-0700|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 69ms - bound to [localhost:6237] |#] [#|2011-10-27T15:43:02.243-0700|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=15;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 172ms - bound to [0.0.0.0:6280] |#] : ---------- server log -------------- domain.xml: <iiop-listener port="6237" id="orb-listener-1" address="localhost" lazy-init="true"></iiop-listener> <iiop-listener port="6238" id="SSL" address="0.0.0.0" security-enabled="true"> <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"></ssl> </iiop-listener>

          People

          • Assignee:
            Harshad Vilekar
            Reporter:
            charles904
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: