glassfish
  1. glassfish
  2. GLASSFISH-15261

cannot launch Admin Console: javax.servlet.ServletException: thrown in browser.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1_b33
    • Fix Version/s: 3.1_b34
    • Component/s: rest-interface
    • Labels:
      None
    • Environment:

      OS: Solaris Sparc
      Browser : firefox 3.6

      Description

      Build Used : latest GF nightly dated b34_12/17.

      Installed the latest GF nightly using the latest-ogs.zip bundle, and started the domain. Launched the Admin Console, using http://hostname:4848.
      The below Exception is shown in the browser:

      HTTP Status 500 -
      type Exception report
      message

      descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'treeForm'.

      root cause

      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'treeForm'.

      root cause

      java.lang.reflect.InvocationTargetException

      root cause

      java.lang.NullPointerException

      note The full stack traces of the exception and its root causes are available in the Oracle GlassFish Server 3.1 logs.

      Oracle GlassFish Server 3.1

      server.log has the below Exception:

      [#|2010-12-17T15:20:39.931-0800|SEVERE|oracle-glassfish3.1|com.sun.jersey.spi.co
      ntainer.ContainerResponse|_ThreadID=15;_ThreadName=Thread-1;|The RuntimeExceptio
      n could not be mapped to a response, re-throwing to the HTTP container
      java.lang.NullPointerException
      at org.glassfish.admin.rest.ResourceUtil.getParamMetaData(ResourceUtil.j
      ava:441)
      at org.glassfish.admin.rest.ResourceUtil.getMethodMetaData(ResourceUtil.
      java:256)
      at org.glassfish.admin.rest.ResourceUtil.getMethodMetaData(ResourceUtil.
      java:236)
      at org.glassfish.admin.rest.resources.TemplateListOfResource.getMethodMe
      taData(TemplateListOfResource.java:360)
      at org.glassfish.admin.rest.resources.TemplateListOfResource.buildAction
      ReportResult(TemplateListOfResource.java:286)
      at org.glassfish.admin.rest.resources.TemplateListOfResource.get(Templat
      eListOfResource.java:100)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth
      odDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchPr
      ovider.java:186)
      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDi
      spatcher.dispatch(ResourceJavaMethodDispatcher.java:70)
      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethod
      Rule.java:279)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocator
      Rule.java:121)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa
      ndPathRule.java:136)
      at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocator
      Rule.java:121)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa
      ndPathRule.java:136)
      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resourc
      eClassRule.java:86)
      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa
      ndPathRule.java:136)
      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(R
      ootResourceClassesRule.java:74)
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ
      est(WebApplicationImpl.java:1347)
      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ
      est(WebApplicationImpl.java:1279)
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque
      st(WebApplicationImpl.java:1229)
      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque
      st(WebApplicationImpl.java:1219)
      at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._servic
      e(GrizzlyContainer.java:180)
      at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service
      (GrizzlyContainer.java:145)
      at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java
      :180)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :168)

      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java
      :117)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(Container
      Mapper.java:234)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:8
      17)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:718)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1007)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
      ter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
      tocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
      :79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
      ask.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(AbstractThreadP
      ool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
      .java:513)
      at java.lang.Thread.run(Thread.java:662)

      #]

      [#|2010-12-17T15:20:39.950-0800|SEVERE|oracle-glassfish3.1|org.glassfish.admingu
      i|_ThreadID=15;_ThreadName=Thread-1;|RestResponse.getResponse() failed. endpoin
      t = 'http://localhost:4848/management/domain/configs/config.json'; attrs = '{}'|
      #]

        Activity

        shaline created issue -
        Nazrul made changes -
        Field Original Value New Value
        Priority Critical [ 2 ] Blocker [ 1 ]
        Anissa Lam made changes -
        Assignee Anissa Lam [ anilam ] Jason Lee [ jdlee ]
        Component/s rest-interface [ 10635 ]
        Component/s admin_gui [ 10588 ]
        shaline made changes -
        Attachment server.log [ 23957 ]
        Anissa Lam made changes -
        Tags 3_1-blocking 3-1_review 3_1-blocking
        Anissa Lam made changes -
        Tags 3-1_review 3_1-blocking 3_1-blocking
        Anissa Lam made changes -
        Tags 3_1-blocking
        Anissa Lam made changes -
        Tags 3_1-approved
        Anissa Lam made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Jason Lee [ jdlee ] Anissa Lam [ anilam ]
        Fix Version/s 3.1_b34 [ 11236 ]
        Fix Version/s 3.1 [ 10968 ]
        Resolution Fixed [ 1 ]
        shaline made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        shaline made changes -
        Tags 3_1-approved 3_1-approved 3_1-verified

          People

          • Assignee:
            Anissa Lam
            Reporter:
            shaline
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: