Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1059140

Summary: Deploying SwitchYard 1.1 project generated in the JBDS on FSW 6 Beta causes NullPointerException
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Anton Giertli <agiertli>
Component: SwitchYardAssignee: Keith Babo <kbabo>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Sedlacek <jsedlace>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: apodhrad, atangrin, oskutka, 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: 2014-01-29 14:48:57 UTC 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:
Attachments:
Description Flags
SwitchYard sample app none

Description Anton Giertli 2014-01-29 09:37:31 UTC
Description of problem:

When you generate SwitchYard 1.1 project using JBDS project wizard and using SwitchYard library version 1.1.0.M3-redhat (the one included in the FSW 6 Beta) it is unable to deploy this project onto the FSW 6 Beta.

The received error looks similar to :

Caused by: java.lang.NullPointerException
	at org.switchyard.deploy.internal.Deployment.getActivationTypes(Deployment.java:234)
	at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:96)
	at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73)
	... 5 more

The reason for this is that the generated switchyard.xml is cropped to the almost empty, because the current SwitchYard library is most likely not fully compatible with SwitchYard 1.1 projects.

Please note that the same project works when the switchyard.xml is generated for the SwitchYard 1.0 project.

Version-Release number of selected component (if applicable):

FSW 6 Beta
SwitchYard 1.1.0.M3-redhat

How reproducible:
always

Steps to Reproduce:
1. Download the attached project
2. build it (mvn clean install)
3. deploy to the running FSW 6.0 Beta instance
4. Exception can be observed in logs
5. Deploy the project again but use switchyard-1.0.xml now (e.g. - rename switchyard.xml to switchyard-1.1.xml and switchyard-1.0.xml to switchyard.xml)
6. The project is deployed successfully.

Actual results:
Deployment of the project fails with the NPE.

Expected results:
Project is deployed successfully.

Comment 1 Anton Giertli 2014-01-29 09:37:52 UTC
Created attachment 856967 [details]
SwitchYard sample app

Comment 4 Andrej Podhradsky 2014-01-29 14:39:22 UTC
I changed the version to 1.1.1-p5-redhat-1 and successfully deployed to FSW 6.0.0.CR4. Also a message was modified as expected.

So, this is fixed in CR4.