Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2_b18
    • Fix Version/s: future release
    • Component/s: naming
    • Labels:
      None
    • Environment:

      Server: Fedora 16
      OpenJDK Runtime Environment (IcedTea6 1.10.4) (fedora-61.1.10.4.fc16-i386)
      OpenJDK Server VM (build 20.0-b11, mixed mode)

      Client:
      Windows 7

      Description

      I have deployed an EAR in Glassfish with an app client end when running ir from a remote host it hangs on jndi lookup... after a while i stop glassfish and the client application returns this exception:

      java.util.NoSuchElementException
      at java.util.LinkedList.remove(Unknown Source)
      at java.util.LinkedList.removeLast(Unknown Source)
      at com.sun.corba.ee.impl.orbutil.ORBUtility.popEncVersionFromThreadLocalState(ORBUtility.java:145)
      at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.endRequest(CorbaClientRequestDispatcherImpl.java:896)
      at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:294)
      at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:414)
      at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
      at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
      at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNameService(SerialContext.java:1239)
      at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:410)
      at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:346)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at com.habitar.habitarclient.util.CachingServiceLocator.lookup(CachingServiceLocator.java:55)
      at com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL.initEJB(ConfiguracionPremiosCTL.java:43)
      at com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL.<init>(ConfiguracionPremiosCTL.java:38)
      at com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL.<clinit>(ConfiguracionPremiosCTL.java:30)
      at com.habitar.habitarclient.controller.MainCTL.showConfiguracionPremiosUI(MainCTL.java:60)
      at com.habitar.habitarclient.view.MainUI$8.run(MainUI.java:208)
      24/01/2012 10:33:30 com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL initEJB
      GRAVE: null
      javax.naming.NamingException: Lookup failed for 'java:global/HabitarEE-ear/HabitarEE-ejb/PremiosEmpleadosCRUD!com.habitar.service.PremiosEmpleadosCRUDRemote' in SerialContext[myEnv=

      {org.omg.CORBA.ORBInitialPort=3700, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=10.1.0.115, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=3700, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=10.1.0.115, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}

      [Root exception is java.util.NoSuchElementException]]
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at com.habitar.habitarclient.util.CachingServiceLocator.lookup(CachingServiceLocator.java:55)
      at com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL.initEJB(ConfiguracionPremiosCTL.java:43)
      at com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL.<init>(ConfiguracionPremiosCTL.java:38)
      at com.habitar.habitarclient.controller.comisiones.ConfiguracionPremiosCTL.<clinit>(ConfiguracionPremiosCTL.java:30)
      at com.habitar.habitarclient.controller.MainCTL.showConfiguracionPremiosUI(MainCTL.java:60)
      at com.habitar.habitarclient.view.MainUI$8.run(MainUI.java:208)
      Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv=

      {org.omg.CORBA.ORBInitialPort=3700, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=10.1.0.115, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}

      [Root exception is java.util.NoSuchElementException]
      at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:351)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504)
      ... 8 more
      Caused by: java.util.NoSuchElementException
      at java.util.LinkedList.remove(Unknown Source)
      at java.util.LinkedList.removeLast(Unknown Source)
      at com.sun.corba.ee.impl.orbutil.ORBUtility.popEncVersionFromThreadLocalState(ORBUtility.java:145)
      at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.endRequest(CorbaClientRequestDispatcherImpl.java:896)
      at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:294)
      at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:414)
      at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
      at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
      at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNameService(SerialContext.java:1239)
      at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:410)
      at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:346)
      ... 9 more

      I have attached my proyect created with NetBeans 7.1

        Activity

        Hide
        Cheng Fang added a comment -

        The stacktrace in your last comment is related to loading key store. Is the keystore corrupted, or does the user have read permission to the key store file?

        Show
        Cheng Fang added a comment - The stacktrace in your last comment is related to loading key store. Is the keystore corrupted, or does the user have read permission to the key store file?
        Hide
        rotatomel added a comment -

        Here's what I did:
        Reinstalled and reconfigured the entire centos server with OpenJDK and Oracle GlassFish.
        Reinstalled and reconfigured the CentOS client.

        Now when I deploy the application and I run with javaws command It starts downloading and remote application runs fine. Even the JNDI LookUps.

        This all works with Oracle GalssFish, not with the community version. Both same version.

        I'm very confused about that.

        Show
        rotatomel added a comment - Here's what I did: Reinstalled and reconfigured the entire centos server with OpenJDK and Oracle GlassFish. Reinstalled and reconfigured the CentOS client. Now when I deploy the application and I run with javaws command It starts downloading and remote application runs fine. Even the JNDI LookUps. This all works with Oracle GalssFish, not with the community version. Both same version. I'm very confused about that.
        Hide
        Cheng Fang added a comment -

        I don't think there is any substantial difference between the two distributions. I also asked around but nobody can identity any.

        Show
        Cheng Fang added a comment - I don't think there is any substantial difference between the two distributions. I also asked around but nobody can identity any.
        Hide
        Tom Mueller added a comment -

        Reassigning to component lead as the assignee is no longer with the project.

        Show
        Tom Mueller added a comment - Reassigning to component lead as the assignee is no longer with the project.
        Hide
        nico75 added a comment -

        Somehow, the client still tries to perform connections to 127.0.0.1 despite the org.omg.CORBA.ORBInitialHost property.

        This is definitely a bug in glassfish, still present in the 4.0 version.

        It can be circumvented by creating a local port forward of 127.0.0.1:3700 to the server:3700.
        for example (if ssh is installed):
        ssh -L 3700:glassfishserver:3700 user@localhost

        Show
        nico75 added a comment - Somehow, the client still tries to perform connections to 127.0.0.1 despite the org.omg.CORBA.ORBInitialHost property. This is definitely a bug in glassfish, still present in the 4.0 version. It can be circumvented by creating a local port forward of 127.0.0.1:3700 to the server:3700. for example (if ssh is installed): ssh -L 3700:glassfishserver:3700 user@localhost

          People

          • Assignee:
            guojun.shan
            Reporter:
            rotatomel
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: