glassfish
  1. glassfish
  2. GLASSFISH-19829

SEVERE, exception logged in server.log when deploy an app.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b79
    • Fix Version/s: 4.0_b80_EE7MS6
    • Component/s: web_container
    • Labels:
      None

      Description

      The following exception is logged when using CLI or GUI to deploy the application clusterjsp.ear. I can't attache it here, but have sent that to deployment and web container team.

      Based on the following email discussion, i am assigning this to web container.

      On 3/6/13 12:30 PM, Hong Zhang wrote:
      > Hi, Anissa
      > Yes, I can reproduce this also. I did a search in the code:
      >
      > public void setDefaultHelper(DefaultHelper value)
      > ./web-glue/src/main/java/org/glassfish/web/deployment/runtime/Cache.java
      > WebPropertyNode.class, "setDefaultHelper");
      > ./web-glue/src/main/java/org/glassfish/web/deployment/node/runtime/gf/CacheNode.java
      >
      >
      > So when adding WebPropertyNide to the CacheNode during xml processing, it uses method name to reflectively invoke the method setDefaultHelper on Cache.java which is ok.
      >
      > The search does show a setDefaultHelper method on the Cache.java, so I am not sure what's happening here. I will let Shingwai investigate further as it's web container code.
      >
      > Thanks,
      >
      > - Hong
      >
      > -------- Original Message --------
      > Subject: deployment error
      >
      > Hi Hong,
      > I was testing something else and notice that if i deploy the attached
      > clusterjsp.ear, the following error will be logged in server.log.
      > However, even if giving this error, it return SUCCESS status, console
      > can display it and launch the app. without any issue.
      >
      > The following error is shown when i use CLI to deloy the attached
      > clusterjsp.ear.
      > However, i don't know if there is issue with the ear itself.
      >
      > Take a look to see if this is expected or should i file issue.
      >
      > [#|2013-03-06T11:51:01.103-0800|SEVERE|glassfish
      > 4.0|javax.enterprise.system.tools.deployment.dol|_ThreadID=97;_ThreadName=admin-listener(5);_TimeMillis=1362599461103;_LevelValue=1000;|enterprise.deployment.backend.addDescriptorFailure|#]
      >
      > [#|2013-03-06T11:51:01.104-0800|SEVERE|glassfish
      > 4.0|javax.enterprise.system.tools.deployment.dol|_ThreadID=97;_ThreadName=admin-listener(5);_TimeMillis=1362599461104;_LevelValue=1000;|enterprise.deployment.backend.addDescriptorFailure|#]
      >
      > [#|2013-03-06T11:51:01.104-0800|WARNING|glassfish
      > 4.0|javax.enterprise.system.tools.deployment.dol|_ThreadID=97;_ThreadName=admin-listener(5);_TimeMillis=1362599461104;_LevelValue=900;|Error
      > occurred
      > java.lang.NoSuchMethodException:
      > org.glassfish.web.deployment.runtime.Cache.setDefaultHelper(org.glassfish.web.deployment.runtime.WebProperty)
      > at java.lang.Class.getMethod(Class.java:1622)
      > at
      > com.sun.enterprise.deployment.node.DeploymentDescriptorNode.addNodeDescriptor(DeploymentDescriptorNode.java:184)
      > at
      > com.sun.enterprise.deployment.node.DeploymentDescriptorNode.endElement(DeploymentDescriptorNode.java:378)
      > at
      > com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:622)
      > at
      > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)
      > at
      > com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
      > at
      > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:766)
      > at
      > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)
      > at
      > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2717)
      > at
      > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
      > at
      > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
      > at
      > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
      > at
      > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
      > at
      > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      > at
      > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
      > at
      > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
      > at
      > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
      > at
      > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302)
      > at
      > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:318)
      > at
      > com.sun.enterprise.deployment.util.DOLUtils.readRuntimeDeploymentDescriptor(DOLUtils.java:492)
      > at
      > com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:719)
      > at
      > com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:695)
      > at
      > com.sun.enterprise.deployment.archivist.ApplicationArchivist.readRuntimeDeploymentDescriptor(ApplicationArchivist.java:680)
      > at
      > com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:236)
      > at
      > com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:232)
      > at
      > org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:188)
      > at
      > org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:222)
      > at
      > org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:96)
      > at
      > com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:878)
      > at
      > com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:818)
      > at
      > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:374)
      > at
      > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      > at
      > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
      > at java.security.AccessController.doPrivileged(Native Method)
      > at javax.security.auth.Subject.doAs(Subject.java:356)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
      > at
      > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
      > at
      > org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:395)
      > at
      > org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:235)
      > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      > at
      > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      > at
      > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      > at java.lang.reflect.Method.invoke(Method.java:601)
      > at
      > org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
      > at
      > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)
      > at
      > org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
      > at
      > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)
      > at
      > org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:350)
      > at
      > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:345)
      > at
      > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
      > at
      > org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:207)
      > at
      > org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
      > at
      > org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:183)
      > at
      > org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:852)
      > at
      > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321)
      > at
      > org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:161)
      > at
      > org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:181)
      > at
      > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
      > at
      > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
      > at
      > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
      > at
      > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      > at
      > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
      > at
      > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
      > at
      > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
      > at
      > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      > at
      > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      > at
      > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:820)
      > at
      > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      > at
      > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      > at
      > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      > at
      > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      > at
      > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      > at
      > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      > at java.lang.Thread.run(Thread.java:722)
      > |#]
      >
      > [#|2013-03-06T11:51:01.180-0800|INFO|glassfish
      > 4.0|javax.enterprise.web|_ThreadID=97;_ThreadName=admin-listener(5);_TimeMillis=1362599461180;_LevelValue=800;_MessageID=AS-WEB-GLUE-00172;|Loading
      > application clusterjsp#clusterjsp.war at [/clusterjsp]|#]
      >
      > [#|2013-03-06T11:51:01.197-0800|INFO|glassfish
      > 4.0|javax.enterprise.system.core|_ThreadID=97;_ThreadName=admin-listener(5);_TimeMillis=1362599461197;_LevelValue=800;|clusterjsp
      > was successfully deployed in 252 milliseconds.|#]
      >
      >
      >

        Activity

        Hide
        Amy Roh added a comment -

        Fixed in 60445.

        Show
        Amy Roh added a comment - Fixed in 60445.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: