glassfish
  1. glassfish
  2. GLASSFISH-6279

Unable to start cluster instances with 64 Bits JDK1.5.0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 9.1.1
    • Fix Version/s: 9.1.1
    • Component/s: lifecycle_modules
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: Sun

    • Issuezilla Id:
      6,279

      Description

      Build: GlassFish V2.1 B51
      JDK Used: 1.5.0_16 B02

      ./java -version
      java version "1.5.0_16"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)

      Steps Done
      **********
      1) Installed 64 bit JDK 1.5.0_16 B02 on Solaris 10 Sparc
      2) Installed GlassFish V2.1 B51 Cluster Profile
      3) Created new domain, nodeagents, and 3 instance cluster. Stopped domain.
      4) Added -d64 and changed $AS_JAVA/bin/java to $AS_JAVA/bin/sparcv9/java in
      asadmin script of /export/home/appserver/bin on all the instance hosting machines.
      5) Added -d64 jvm-option in domain.xml of domain and cluster.
      <jvm-options>-d64</jvm-options>
      6) Changed the following line of startserv scripts of domain and all instances
      to the following:
      JAVA="$JAVA_HOME"/bin/sparcv9/java

      The steps #4 to #6 were taken from Sailfin issue # 1131 which is also the same
      issue seen in sailfin.

      The domain and nodeagents were able to start successfully. But I was unable to
      start the cluster instances. The following "StackOverFlow" error was seen in the
      server logs of all 3 instances.

      Sep 23, 2008 6:00:32 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher build
      Command
      INFO:
      /export/home/jdk/jdk150_16_64bit/bin/java
      -Dcom.sun.aas.instanceRoot=/export/home/appserver/nodeagents/agent1/instance1
      -DHTTP_LISTENER_PORT=38080
      -DHTTP_SSL_LISTENER_PORT=38181
      -DIIOP_LISTENER_PORT=33700
      -DIIOP_SSL_LISTENER_PORT=33820
      -DIIOP_SSL_MUTUALAUTH_PORT=33920
      -DJMS_PROVIDER_PORT=37676
      -DJMX_SYSTEM_CONNECTOR_PORT=38686
      -Dcom.sun.aas.ClassPathPrefix=
      -Dcom.sun.aas.ClassPathSuffix=
      -Dcom.sun.aas.ServerClassPath=
      -Dcom.sun.aas.classloader.appserverChainJars.ee=
      -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-sv
      c.jar
      -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appser
      v-ant.jar
      -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
      Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices
      tools.jar
      -Dcom.sun.aas.classloader.serverClassPath.ee=Does not exist/lib/hadbjdbc4.jar,/expo
      rt/home/appserver/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,Does not exist/lib/dbstate.jar,Do
      es not exist/lib/hadbm.jar,Does not exist/lib/hadbmgt.jar,/opt/SUNWmfwk/lib/mfwk_in
      strum_tk.jar
      -Dcom.sun.aas.classloader.serverClassPath=/export/home/appserver/lib/install/applic
      ations/jmsra/imqjmsra.jar,/export/home/appserver/imq/lib/jaxm-api.jar,/export/home/
      appserver/imq/lib/fscontext.jar,/export/home/appserver/imq/lib/imqbroker.jar,/expor
      t/home/appserver/imq/lib/imqjmx.jar,/export/home/appserver/lib/ant/lib/ant.jar,/exp
      ort/home/appserver/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
      -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-pl
      ugin.jar,Does not exist/lib/dbstate.jar,Does not exist/lib/hadbjdbc4.jar,jgroups-al
      l.jar,/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar
      -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/export/home/jdk/jdk150_16_64b
      it/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.j
      ar,com-sun-commons-logging.jar,/export/home/appserver/imq/lib/jaxm-api.jar,/export/
      home/appserver/imq/lib/fscontext.jar,/export/home/appserver/imq/lib/imqbroker.jar,/
      export/home/appserver/imq/lib/imqjmx.jar,/export/home/appserver/imq/lib/imqxm.jar,w
      ebservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optiona
      l.jar,/export/home/appserver/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv
      -rt.jar,appserv-admin.jar,appserv-cmp.jar,/export/home/appserver/updatecenter/lib/u
      pdatecenter.jar,/export/home/appserver/jbi/lib/jbi.jar,/export/home/appserver/imq/l
      ib/imqjmx.jar,/export/home/appserver/lib/ant/lib/ant.jar,dbschema.jar
      -Dcom.sun.aas.configName=richaccess-sparc-cluster-config
      -Dcom.sun.aas.configRoot=/export/home/appserver/config
      -Dcom.sun.aas.defaultLogFile=/export/home/appserver/nodeagents/agent1/instance1/log
      s/server.log
      -Dcom.sun.aas.domainName=sqe-domain
      -Dcom.sun.aas.installRoot=/export/home/appserver
      -Dcom.sun.aas.instanceName=instance1
      -Dcom.sun.aas.processLauncher=SE
      -Dcom.sun.aas.promptForIdentity=true
      -Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPlugg
      ableFeatureImpl
      -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.con
      fig.serverbeans.AppserverConfigEnvironmentFactory
      -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
      -Dcom.sun.enterprise.server.ss.ASQuickStartup=false
      -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
      -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
      -Dcom.sun.updatecenter.home=/export/home/appserver/updatecenter
      -Ddomain.name=sqe-domain
      -Djava.endorsed.dirs=/export/home/appserver/lib/endorsed
      -Djava.ext.dirs=/export/home/jdk/jdk150_16_64bit/lib/ext:/export/home/jdk/jdk150_16
      _64bit/jre/lib/ext:/export/home/appserver/nodeagents/agent1/instance1/lib/ext:/expo
      rt/home/appserver/javadb/lib:/export/home/appserver/lib/jdbcdrivers
      -Djava.library.path=/export/home/appserver/lib/sparcv9/sparcv9:/export/home/appserv
      er/lib/sparcv9:/export/home/appserver/imq/lib/sparcv9::/export/home/appserver/lib/s
      parcv9:/export/home/appserver/lib:/export/home/appserver/lib
      -Djava.security.auth.login.config=/export/home/appserver/nodeagents/agent1/instance
      1/config/login.conf
      -Djava.security.policy=/export/home/appserver/nodeagents/agent1/instance1/config/se
      rver.policy
      -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
      -Djavax.management.builder.initial=com.sun.enterprise.ee.admin.AppServerMBeanServer
      Builder
      -Djavax.net.ssl.keyStore=/export/home/appserver/nodeagents/agent1/instance1/config/
      keystore.jks
      -Djavax.net.ssl.trustStore=/export/home/appserver/nodeagents/agent1/instance1/confi
      g/cacerts.jks
      -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
      -Djmx.invoke.getters=true
      -server
      -XX:+UnlockDiagnosticVMOptions
      -XX:MaxPermSize=192m
      -XX:NewRatio=2
      -d64
      -Xss128k
      -Xmx768m
      -Xloggc:/export/home/appserver/nodeagents/agent1/instance1/logs/gc.log
      -XX:+DisableExplicitGC
      -XX:+LogVMOutput
      -XX:LogFile=/export/home/appserver/nodeagents/agent1/instance1/logs/jvm.log
      -cp
      /export/home/appserver/lib/jhall.jar:/export/home/appserver/lib/appserv-launch.jar
      com.sun.enterprise.server.PELaunch
      start
      Exception in thread "main" java.lang.StackOverflowError
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
      at sun.misc.URLClassPath.getResource(URLClassPath.java:160)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.
      java:144)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.
      java:144)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.
      java:144)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.
      java:144)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
      at java.lang.Class.getConstructor0(Class.java:2671)
      at java.lang.Class.newInstance0(Class.java:321)
      at java.lang.Class.newInstance(Class.java:303)
      at java.util.logging.LogManager$1.run(LogManager.java:167)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.util.logging.LogManager.<clinit>(LogManager.java:156)
      at java.util.logging.Logger.getLogger(Logger.java:295)
      at com.sun.logging.LogDomains.getLogger(LogDomains.java:240)
      at com.sun.enterprise.util.i18n.StringManagerBase.<clinit>(StringManagerBas
      e.java:101)
      at com.sun.enterprise.server.PEMain.<clinit>(PEMain.java:191)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
      a:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
      Impl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.enterprise.server.PELaunch.main(PELaunch.java:413)

        Activity

        Hide
        meenap added a comment -

        Issue 6279 is also seen in sailfin, issue 1131

        Show
        meenap added a comment - Issue 6279 is also seen in sailfin, issue 1131
        Hide
        meenap added a comment -

        Removing GlassFish issue 1131 dependency from this issue.

        This issue 6279 is similar to SailFin issue 1131
        https://sailfin.dev.java.net/issues/show_bug.cgi?id=1131

        Show
        meenap added a comment - Removing GlassFish issue 1131 dependency from this issue. This issue 6279 is similar to SailFin issue 1131 https://sailfin.dev.java.net/issues/show_bug.cgi?id=1131
        Hide
        meenap added a comment -

        The following flag "-Xss128k" is explicity set in the cluster-config for stress
        testing.

        After removing this flag, I was able to start the cluster successfully. Also
        tried increasing it to "-Xss256k" which also started the cluster successfully.

        Show
        meenap added a comment - The following flag "-Xss128k" is explicity set in the cluster-config for stress testing. After removing this flag, I was able to start the cluster successfully. Also tried increasing it to "-Xss256k" which also started the cluster successfully.
        Hide
        harpreet added a comment -

        Please scrub issue and see if it is critical to v2.1.

        Show
        harpreet added a comment - Please scrub issue and see if it is critical to v2.1.
        Hide
        meenap added a comment -

        Did the test on B52 on Solaris 10 Sparc with 64 Bit JDK1.5.0_16 B02 after
        removing the flag "-Xss128k". The Richaccess application successfully completed
        24X7. Marking bug as resolved.

        Show
        meenap added a comment - Did the test on B52 on Solaris 10 Sparc with 64 Bit JDK1.5.0_16 B02 after removing the flag "-Xss128k". The Richaccess application successfully completed 24X7. Marking bug as resolved.
        Hide
        meenap added a comment -

        Closing Bug

        Show
        meenap added a comment - Closing Bug

          People

          • Assignee:
            Hong Zhang
            Reporter:
            meenap
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: