Bug 1120654

Summary: NullPointerException when an empty switchyard.xml is deployed
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: lvaskova
Component: SwitchYardAssignee: Rob Cernich <rcernich>
Status: NEW --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lvaskova 2014-07-17 11:11:49 UTC
This is a User Experience Issue.

When an empty switchyard.xml is deployed, for example because of this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1041319 , 

an exception is thrown. The bad thing is that the exception says nothing relevant about the problem. It is just NPE.

Thrown exception:

Caused by: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"DozerTransformationTest.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"DozerTransformationTest.jar\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"DozerTransformationTest.jar\"
    Caused by: java.lang.NullPointerException"}}
	at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
	at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
	at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85)
	at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42)
	at org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.deploy(ServerDeploymentHelper.java:50)
	at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:77)
	... 96 more