Using Glassfish V2 B31, I am regularly getting the following exception
when I redeploy my web app. When the error occurs, it is always from
attempting redeployment. Has anyone else encountered this problem?
Unfortunately, the exception is not thrown consistently, so I'm not sure
what is causing the error. I am deploying using NetBeans 5.5.1. I'm
not sure if this is enough information to say that it is a result of bug
6509016 [1].
Tim
[1]
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6509016
java.lang.NullPointerException
at
com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(Config
BeansFactory.java:85)
at
com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(S
erverBeansFactory.java:100)
at
com.sun.enterprise.config.serverbeans.ServerBeansFactory.getVirtualServe
rsByAppName(ServerBeansFactory.java:1341)
at
com.sun.enterprise.server.WebModuleDeployEventListener.loadWebModuleConf
ig(WebModuleDeployEventListener.java:137)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(We
bModuleDeployEventListener.java:170)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(We
bModuleDeployEventListener.java:275)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployE
ventListener(AdminEventMulticaster.java:949)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployE
vent(AdminEventMulticaster.java:936)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminE
ventMulticaster.java:448)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(Admi
nEventMulticaster.java:160)
at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multic
astEvent(DeploymentNotificationHelper.java:295)
at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEv
ent(DeploymentServiceUtils.java:206)
at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEv
ent(ServerDeploymentTarget.java:285)
at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(App
licationStartPhase.java:119)
at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deplo
ymentPhase.java:95)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(
PEDeploymentService.java:892)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploy
mentService.java:564)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploy
mentService.java:608)
at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(Applicatio
nsConfigMBean.java:728)
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:597)
at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.j
ava:353)
at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.j
ava:336)
at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.j
ava:448)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea
nServerInterceptor.java:836)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77
)
at $Proxy1.invoke(Unknown Source)
at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(Sunone
Interceptor.java:297)
at
com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(Inv
okeCaller.java:56)
at
com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.han
dle(MBeanServerRequestHandler.java:142)
at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorSer
vlet.processRequest(RemoteJmxConnectorServlet.java:109)
at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorSer
vlet.doPost(RemoteJmxConnectorServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.apache.catalina.core.ApplicationFilterChain.servletService(Applicati
onFilterChain.java:398)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:277)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:255)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:188)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:586)
at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:186)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:586)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
56)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:137)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:586)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
56)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:252)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdap
ter(DefaultProcessorTask.java:618)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(
DefaultProcessorTask.java:549)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(De
faultProcessorTask.java:790)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcesso
rTask(DefaultReadTask.java:326)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultR
eadTask.java:248)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultR
eadTask.java:199)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThre
adImpl.java:103)
ADM5603:Event listener error [null]
_____________________________________
Tim Romanowski
Lockheed Martin Integrated Systems & Solutions
Geospatial - Intelligence Solutions
Valley Forge, PA
Mail Stop: Bldg 10/1929
Phone: 610.354.7589