]
jaikiran pai commented on AS7-1551:
-----------------------------------
Can you please attach the war which reproduces this?
NullPointerException thrown by BusinessViewAnnotationProcessor when
deploying a Grails application
--------------------------------------------------------------------------------------------------
Key: AS7-1551
URL:
https://issues.jboss.org/browse/AS7-1551
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.0.0.Final
Environment: Mac OS X 10.7, Java 1.6.0_26
Reporter: John Paul Alcala
Assignee: jaikiran pai
Labels: deployment, grails
I have a Grails 1.3.7 application running fine on JBoss AS 5.1.0 and JBoss AS 6. However,
when I attempted to deploy the same application on AS7 in standalone mode, I got the
following error:
{code}
23:46:46,560 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting
deployment of "example.war"
23:46:50,740 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread
1-2) Encountered invalid class name
"org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer" for service
type "org.xmlpull.v1.XmlPullParserFactory"
23:46:50,814 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed
to start service jboss.deployment.unit."example.war".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."example.war".POST_MODULE: Failed to process phase
POST_MODULE of deployment "example.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
Caused by: java.lang.NullPointerException
at
org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:72)
at
org.jboss.as.server.deployment.example.warDeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
23:46:50,818 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployment of "example.war" was rolled back with failure message {"Failed
services" =>
{"jboss.deployment.unit.\"example.war\".POST_MODULE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"example.war\".POST_MODULE: Failed to process phase
POST_MODULE of deployment \"example.war\""}}
23:46:50,819 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service
status report
Services which failed to start:
service jboss.deployment.unit."example.war".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."example.war".POST_MODULE: Failed to process phase
POST_MODULE of deployment "example.war"
23:46:50,827 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1)
{"Composite operation failed and was rolled back. Steps that failed:" =>
{"Operation step-2" => {"Failed services" =>
{"jboss.deployment.unit.\"example.war\".POST_MODULE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"example.war\".POST_MODULE: Failed to process phase
POST_MODULE of deployment \"example.war\""}}}}
23:46:51,015 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped
deployment example.war in 193ms
{code}
Seeing that the deployer was complaining about not being able to see
org.xmlpull.mxp1.MXParser and org.xmlpull.mxp1_serializer.MXSerializer, I excluded the
xpp3 jar included in the WAR and performed another deployment. Here is the resulting log:
{code}
23:50:51,009 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting
deployment of "example.war"
23:50:54,506 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service jboss.deployment.unit."example.war".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."example.war".POST_MODULE: Failed to process phase
POST_MODULE of deployment "example.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
Caused by: java.lang.NullPointerException
at
org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:72)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
23:50:54,508 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1)
Deployment of "example.war" was rolled back with failure message {"Failed
services" =>
{"jboss.deployment.unit.\"example.war\".POST_MODULE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"example.war\".POST_MODULE: Failed to process phase
POST_MODULE of deployment \"example.war\""}}
23:50:54,658 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped
deployment example.war in 150ms
23:50:54,660 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2)
{"Composite operation failed and was rolled back. Steps that failed:" =>
{"Operation step-2" => {"Failed services" =>
{"jboss.deployment.unit.\"example.war\".POST_MODULE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"example.war\".POST_MODULE: Failed to process phase
POST_MODULE of deployment \"example.war\""}}}}
{code}
As seen from the two error logs, a NullPointerException is being thrown by
BusinessViewAnnotationProcessor at the same line number (72).
I have tried excluding other jars, to no avail. I even tried deleting all the jars inside
WEB-INF/lib in the hope of getting a different error (and to get a clue as to what's
going on), but I still get the same result.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: