glassfish
  1. glassfish
  2. GLASSFISH-20832

Removing Metro Results in Exceptions on First Server Load

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: None
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Windows 7 Enterprise, SP1. 64-bit.

      Description

      1) Installed a new copy of 3.1.2.2 of Glassfish under my C drive.
      2) Ran the updatetool to remove the component Metro Web Services Stack 2.2-13.1. This also removed glassfish-full-profile.
      3) Attempted to start the server. The server start fails with the exception below. Attempted to start the server again and this time it starts.

      EXECUTION TRACE

      c:\glassfish-3.1\bin>asadmin start-domain --user admin das-local
      Waiting for das-local to start ...Error starting domain das-local.
      The server exited prematurely with exit code 1.
      Before it died, it produced the following output:

      Launching GlassFish on Felix platform
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 275 installed from /C:/glassfish-3.1/glassfish/modules/jaxrpc-api-osgi.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 274 installed from /C:/glassfish-3.1/glassfish/modules/jaxr-api-osgi.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 278 installed from /C:/glassfish-3.1/glassfish/modules/soap-tcp.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 270 installed from /C:/glassfish-3.1/glassfish/modules/endorsed/jaxb-api-osgi.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 282 installed from /C:/glassfish-3.1/glassfish/modules/webservices-osgi.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 281 installed from /C:/glassfish-3.1/glassfish/modules/webservices-extra-jdk-packages.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 284 installed from /C:/glassfish-3.1/glassfish/modules/woodstox-core-asl.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 279 installed from /C:/glassfish-3.1/glassfish/modules/stax2-api.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 277 installed from /C:/glassfish-3.1/glassfish/modules/metro-glue.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 276 installed from /C:/glassfish-3.1/glassfish/modules/jsr109-impl.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 273 installed from /C:/glassfish-3.1/glassfish/modules/jaxb-osgi.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 272 installed from /C:/glassfish-3.1/glassfish/modules/ant.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 280 installed from /C:/glassfish-3.1/glassfish/modules/webservices-connector.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 283 installed from /C:/glassfish-3.1/glassfish/modules/webservices.security.jar
      Sep 30, 2013 3:04:15 PM BundleProvisioner uninstall
      INFO: Uninstalled bundle 271 installed from /C:/glassfish-3.1/glassfish/modules/endorsed/webservices-api-osgi.jar
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      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)
      Caused by: org.glassfish.embeddable.GlassFishException: java.lang.IllegalStateException: Invalid Bund
      leContext.
      at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFis
      hRuntimeBuilder.java:164)
      at org.glassfish.embeddable.GlassFishRuntime._bootstrap(GlassFishRuntime.java:157)
      at org.glassfish.embeddable.GlassFishRuntime.bootstrap(GlassFishRuntime.java:110)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:11
      2)
      ... 6 more
      Caused by: java.lang.IllegalStateException: Invalid BundleContext.
      at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
      at org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:173)
      at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.getBundle(BundleProvisioner.
      java:397)
      at com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.startBundles(BundleProvision
      er.java:221)
      at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder.build(OSGiGlassFis
      hRuntimeBuilder.java:153)
      ... 9 more
      Error stopping framework: java.lang.NullPointerException
      java.lang.NullPointerException
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher$1.run(GlassFishMain.java:203
      )

      Command start-domain failed.

      c:\glassfish-3.1\bin>c:\startGlassfish.bat

      c:\glassfish-3.1\bin>c:

      c:\glassfish-3.1\bin>cd c:\glassf
      ish-3.1\bin

      c:\glassfish-3.1\bin>asadmin start-domain --user admin das-local
      Waiting for das-local to start .......................
      Successfully started the domain : das-local
      domain Location: C:\glassfish-3.1\glassfish\domains\das-local
      Log File: C:\glassfish-3.1\glassfish\domains\das-local\logs\server.
      log
      Admin Port: 4848
      Command start-domain executed successfully.

      If applications are installed, the removal of Metro results in null pointer exception thrown when listing applications through the Admin GUI:

      [#|2013-09-30T15:17:18.937-0500|SEVERE|glassfish3.1.2|org.glassfish.admingui|_ThreadID=31;_ThreadName=Thread-2;|RestResponse.getResponse() gives FAILURE. endpoint = 'http://localhost:4848/management/domain/applications/application/list-components.json'; attrs = '

      {target=domain}'|#]

      [#|2013-09-30T15:17:19.957-0500|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=32;_ThreadName=Thread-2;|Exception in command execution : java.lang.NullPointerException
      java.lang.NullPointerException
      at org.glassfish.deployment.admin.ListComponentsCommand.displaySnifferEngine(ListComponentsCommand.java:300)
      at org.glassfish.deployment.admin.ListComponentsCommand.getSniffers(ListComponentsCommand.java:254)
      at org.glassfish.deployment.admin.ListComponentsCommand.getAppSnifferEngines(ListComponentsCommand.java:236)
      at org.glassfish.deployment.admin.ListComponentsCommand.execute(ListComponentsCommand.java:135)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1066)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
      at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
      at org.glassfish.admin.rest.resources.TemplateExecCommand.executeCommand(TemplateExecCommand.java:127)
      at org.glassfish.admin.rest.resources.TemplateCommandGetResource.processGet(TemplateCommandGetResource.java:78)
      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.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
      at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
      at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
      at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:662)
      |#]

      [#|2013-09-30T15:17:19.961-0500|SEVERE|glassfish3.1.2|org.glassfish.admingui|_ThreadID=28;_ThreadName=Thread-2;|RestResponse.getResponse() gives FAILURE. endpoint = 'http://localhost:4848/management/domain/applications/application/list-components.json'; attrs = '{target=domain}

      '|#]

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Martin Grebac
            Reporter:
            mikevoxcap
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: