glassfish
  1. glassfish
  2. GLASSFISH-17897

[Regression] After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2_b12
    • Fix Version/s: 3.1.2_b16
    • Component/s: admin
    • Labels:
      None
    • Environment:

      Description

      This Update test scenario is part of the Update 3.1.1 SQE suite. From a high level, the scenario is
      1. Install GF 3.0.1 (all default values - no password, default ports, local JDK)
      2. Start GF 3.0.1 and deploy hello.war app (http://localhost:8080/hello)
      3. Stop GF 3.0.1
      4. Configure Update Center repository to point to our internal repository (http://bat-s10-1.us.oracle.com/sun_v3_release_test)
      5. Perform an "image update"
      6. Complete the Update through the --upgrade option (asadmin start-domain --upgrade domain1)
      7. Start the domain (asadmin start-domain) and check the previously deployed app is working (http://localhost:8080/hello)
      8. Shutdown the server (asadmin stop-domain domain1)
      9. Start the domain
      10. Create a standalone instance (asadmin create-local-instance st1)

      Up to this point everything works, but when I try to start the standalone instance, I see the issue as follows:

      asadmin start-local-instance st1
      Waiting for st1 to start .......Error starting instance st1.
      The server exited prematurely with exit code 0.
      Before it died, it produced the following output:

      Launching GlassFish on Felix platform
      [#|2011-12-05T09:58:52.761-0800|INFO|glassfish3.1.2|com.sun.enterprise.server.logging.GFFileHandler|_ThreadID=1;_ThreadName=main;|Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2-b12 (build 12)|#]

      [#|2011-12-05T09:58:52.927-0800|INFO|glassfish3.1.2|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=main;|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

      [#|2011-12-05T09:58:53.259-0800|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=10;_ThreadName=main;|Unable to start v3. Closing all ports
      java.lang.NullPointerException
      at com.sun.grizzly.config.GrizzlyEmbeddedHttp.configureProtocol(GrizzlyEmbeddedHttp.java:312)
      at com.sun.grizzly.config.GrizzlyEmbeddedHttp.configure(GrizzlyEmbeddedHttp.java:279)
      at com.sun.grizzly.config.GrizzlyServiceListener.initializeListener(GrizzlyServiceListener.java:104)
      at com.sun.grizzly.config.GrizzlyServiceListener.configure(GrizzlyServiceListener.java:89)
      at com.sun.enterprise.v3.services.impl.GrizzlyListener.configure(GrizzlyListener.java:84)
      at com.sun.enterprise.v3.services.impl.GrizzlyProxy.configureGrizzly(GrizzlyProxy.java:150)
      at com.sun.enterprise.v3.services.impl.GrizzlyProxy.<init>(GrizzlyProxy.java:121)
      at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:445)
      at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:353)
      at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
      at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
      at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
      at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
      at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)

      #]

      [#|2011-12-05T09:58:53.259-0800|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=main;|Startup service failed to start : com.sun.enterprise.v3.services.impl.GrizzlyService|#]

      [#|2011-12-05T09:58:53.464-0800|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=13;_ThreadName=FelixStartLevel;|/export/sqe/workspace/glassfishv3/glassfish/nodes/localhost-domain1/st1/autodeploy/bundles does not exist, please create it.|#]

      [#|2011-12-05T09:58:53.431-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.41 started in: 179ms - bound to [0.0.0.0:28080]|#]

      [#|2011-12-05T09:58:53.399-0800|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin.cluster|_ThreadID=11;_ThreadName=Thread-6;|Server shutdown initiated|#]

      [#|2011-12-05T09:58:54.104-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=11;_ThreadName=Thread-6;|Already stopped, so just returning|#]

      Command start-local-instance failed.

      I can make the system available for debbugging if needed.

      1. diffs.txt
        9 kB
        Jennifer Chou
      2. domain.xml
        40 kB
        Tom Mueller

        Activity

        Hide
        Jennifer Chou added a comment -

        Fixed in 3.1.2 branch.

        ==[IDE]== Dec 20, 2011 9:52:12 PM Committing...
        commit -m "GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance...." /Users/jenchou/scratch/gf/3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java
        Sending /Users/jenchou/scratch/gf/3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java
        Transmitting file data ...
        Committed revision 51686.
        Revision: 51686
        Author : jc129909
        Date : Dec 20, 2011 9:52:31 PM
        GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance.

        Fixed problem in parsing the network-config section of the domain.xml template which resulted in incorrect default-config in domain.xml.
        Two new attributes were added: in http and ssl.

        Reviewed by: Tom Mueller

        ==[IDE]== Dec 20, 2011 9:52:37 PM Committing... finished.

        Show
        Jennifer Chou added a comment - Fixed in 3.1.2 branch. == [IDE] == Dec 20, 2011 9:52:12 PM Committing... commit -m " GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance...." /Users/jenchou/scratch/gf/3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java Sending /Users/jenchou/scratch/gf/3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java Transmitting file data ... Committed revision 51686. Revision: 51686 Author : jc129909 Date : Dec 20, 2011 9:52:31 PM GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance. Fixed problem in parsing the network-config section of the domain.xml template which resulted in incorrect default-config in domain.xml. Two new attributes were added: in http and ssl. Reviewed by: Tom Mueller == [IDE] == Dec 20, 2011 9:52:37 PM Committing... finished.
        Hide
        Jennifer Chou added a comment -

        Fixed in trunk.

        ==[IDE]== Dec 22, 2011 3:57:03 PM Committing...
        commit -m "GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance...." /Users/jenchou/scratch/bg-fresh/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java
        Sending /Users/jenchou/scratch/bg-fresh/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java
        Transmitting file data ...
        Committed revision 51740.
        Revision: 51740
        Author : jc129909
        Date : Dec 22, 2011 3:57:46 PM
        GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance.

        Fixed problem in parsing the network-config section of the domain.xml template which resulted in incorrect default-config in domain.xml.
        Two new attributes were added: in http and ssl.

        Reviewed by: Tom Mueller

        ==[IDE]== Dec 22, 2011 3:57:49 PM Committing... finished.

        Show
        Jennifer Chou added a comment - Fixed in trunk. == [IDE] == Dec 22, 2011 3:57:03 PM Committing... commit -m " GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance...." /Users/jenchou/scratch/bg-fresh/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java Sending /Users/jenchou/scratch/bg-fresh/all/main/nucleus/admin/config-api/src/main/java/org/glassfish/config/support/DefaultConfigUpgrade.java Transmitting file data ... Committed revision 51740. Revision: 51740 Author : jc129909 Date : Dec 22, 2011 3:57:46 PM GLASSFISH-17897 After Updating system from GF3.0.1 to GF 3.1.2, unable to start newly created standalone instance. Fixed problem in parsing the network-config section of the domain.xml template which resulted in incorrect default-config in domain.xml. Two new attributes were added: in http and ssl. Reviewed by: Tom Mueller == [IDE] == Dec 22, 2011 3:57:49 PM Committing... finished.
        Hide
        Alex Pineda added a comment -

        Verified the fix in promoted build 16 on Solaris and Linux systems. The local instance is able to start now, however, I'm seeing the same failure on Windows XP, but with different errors. Will file a separate bug for that.

        Show
        Alex Pineda added a comment - Verified the fix in promoted build 16 on Solaris and Linux systems. The local instance is able to start now, however, I'm seeing the same failure on Windows XP, but with different errors. Will file a separate bug for that.
        Hide
        Alex Pineda added a comment -

        Correction. The Windows XP failure is seen on build15 not build16. Apologies for the confusion.

        Show
        Alex Pineda added a comment - Correction. The Windows XP failure is seen on build15 not build16. Apologies for the confusion.
        Hide
        Byron Nevins added a comment -

        run this:

        asadmin start-local-instance --verbose your-instance

        (1) What does it say?

        Show
        Byron Nevins added a comment - run this: asadmin start-local-instance --verbose your-instance (1) What does it say?

          People

          • Assignee:
            Jennifer Chou
            Reporter:
            Alex Pineda
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: