I am trying jBPM BPEL extension hello example. I successfully deployed BPEL extension with jBPM, generated database schema, asembled the example and deployed it both in the database and to the application server.
However, the unit test fails (ant run-test). The test generates time out exception and JBoss log file gets the following entry:
2005-12-16 17:09:21,734 DEBUG [org.jbpm.bpel.service.messager.PortHandler] retrieved port info: caller 2005-12-16 17:09:27,843 DEBUG [org.jbpm.bpel.service.messager.PortHandler] sent request: id=ID:10-11347709678121, destination=QUEUE.testQueue, replyTo=QUEUE.JMS_TQ1, correlationId=null, _$partnerLinkId=20, _$operationName=sayHello 2005-12-16 17:09:27,843 DEBUG [org.jbpm.bpel.service.messager.PortHandler] listening for response: JMS_TQ1 2005-12-16 17:09:27,843 DEBUG [org.jbpm.bpel.service.messager.StartListener] received request: id=ID:10-11347709678121, destination=QUEUE.testQueue, replyTo=QUEUE.JMS_TQ1, correlationId=null, _$partnerLinkId=20, _$operationName=sayHello 2005-12-16 17:09:28,062 ERROR [org.jbpm.bpel.service.messager.StartListener] could not deliver request java.lang.NullPointerException at org.jbpm.bpel.service.messager.OutstandingRequest$Key.hashCode(OutstandingRequest.java:96) at java.util.Hashtable.put(Hashtable.java:401) at org.jbpm.bpel.service.messager.MessagerSession.registerRequest(MessagerSession.java:79) at org.jbpm.bpel.service.messager.StartListener.onMessage(StartListener.java:99) at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:707) at java.lang.Thread.run(Thread.java:595)
I have the following environment:
JBoss 4.0.3 SP1
jBPM starters kit 3.0.2
jBPM BPEL Extension 1.0 alpha 3
Oracle RDBMS 9i
I tried to investigate the problem and came to the messageExchange attribute of the receive message which is null in my case but the OutstandingRequest.hashCode() expects it to be not null. I tried to define messageExchange attribute for receive and reply elements in hello.bpel but it does not compile (in accordance with XSD it should) claiming that this attribute is not allowed here. Since some people got through this hellow example I would guess that the problem may relate to Oracle as a back end database.
Thank you for your assistance,