-
Create a sample project with a bean component and a JCA binding with just the defaults.
-
In the JCA binding screen, make the queue : queue/quickstart_helloworld_Request_gw (I've included a JMS descriptor you can use).
-
Don't touch anything else, leave message selector blank, save
It should create a jca.binding that looks like this :
<jca:binding.jca name="jca1"> <jca:inboundConnection> <jca:resourceAdapter name="hornetq-ra.rar"/> <jca:activationSpec> <jca:property name="destinationType" value="javax.jms.Queue"/> <jca:property name="destination" value="queue/"/> <jca:property name="messageSelector"/> <jca:property name="acknowledgeMode" value="Auto-acknowledge"/> </jca:activationSpec> </jca:inboundConnection> <jca:inboundInteraction> <jca:listener>javax.jms.MessageListener</jca:listener> <jca:endpoint type="org.switchyard.component.jca.endpoint.JMSEndpoint"/> <jca:transacted>true</jca:transacted> </jca:inboundInteraction> </jca:binding.jca>
If I deploy, I see a NullPointerException because the messageSelector property has no value:
0:42:40,355 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."helloworld-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."helloworld-0.0.1-SNAPSHOT.jar".SwitchYardService: java.lang.NullPointerException at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:89) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) [rt.jar:1.7.0_45] at org.switchyard.component.jca.config.model.v1.V1BasePropertyContainerModel.getProperties(V1BasePropertyContainerModel.java:72) at org.switchyard.component.jca.deploy.JCAActivator.handleServiceBinding(JCAActivator.java:143) at org.switchyard.component.jca.deploy.JCAActivator.activateBinding(JCAActivator.java:95) at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:628) at org.switchyard.deploy.internal.Deployment.start(Deployment.java:145) at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:121) at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:78) ... 5 more
|