[JBoss jBPM] - ContextInstance of a non-null ProcessInstance is null
by coolex
Hello!
I have this method which I call from a jboss rule:
public void dosth(org.jbpm.graph.exe.ProcessInstance processInstance){
| System.out.println("The Id of the process is: "+ processInstance.getId() );
| System.out.println("The value of the variabel is: "+ processInstance.getContextInstance().getVariable("owner") );
| }The result is:
| The Id of the process is: 1
| The value of the variabel is: null
I am 100% sure that I have set the process variable before with this code:org.jboss.seam.bpm.ProcessInstance.instance().getContextInstance().setVariable("owner", "testowner");
I made some other tests, so I know very well that this variable has been set perfectly.
The rule is also working without any problems.
But why I can't get the ContextInstance out of my non-null ProcessInstance?
bye
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168034#4168034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168034
16 years, 4 months
[JBoss jBPM] - Re: jBPM on GlassFish - HTTP status 500
by crued
The particular lines that seem to be causing trouble are the "gd:filter" tags. It seems that the entryVar is used in some EL expression inside the "test" and "filterArgument" attributes of this tag. My current guess is that Glassfish sees these and tries to evaluate them, but since the entryVar is not known to the EL context, it throws an exception.
So here's an example:
<gd:filter source="#{piList}" target="#{piList}" entryVar="entry" test="#{filter_ended and entry != null and entry.end != null or entry != null and entry.end == null and (filter_suspended and and entry.suspended or filter_running and ! and entry.suspended)}"/>
When Glassfish sees the #{ ... } it tries to evaluate it. It sees entry.end, and then tries to find the end property of the object "entry" in the current context. This doesn't exist --> BOOM.
I still don't know what to do to fix it...is entry supposed to exist at this point? Is the test being evaluated too soon? For now, I'll just disable the filter tags...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168020#4168020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168020
16 years, 4 months
[JBoss jBPM] - Re: error while calling a bpel process
by OutOfBounds
Thanks. I've read somewhere that all variables have to be initialized.
That's probably the cause of this error message. But I still have a problem
while calling this process:
| 2008-07-31 19:29:20,209 DEBUG [org.jbpm.bpel.endpointref.SoapEndpointReference] found candidate port: name=whoisSoap, address=http://www.webservicex.net/whois.asmx, service={http://www.webservicex.net}whois, portType={http://www.webservicex.net}whoisSoap
| 2008-07-31 19:29:20,209 DEBUG [org.jbpm.bpel.endpointref.SoapEndpointReference] found candidate port: name=whoisSoap, address=http://www.webservicex.net/whois.asmx, service={http://www.webservicex.net}whois, portType={http://www.webservicex.net}whoisSoap
| 2008-07-31 19:29:20,209 DEBUG [org.jbpm.bpel.integration.jms.IntegrationControl] selected partner port: instance=org.jbpm.bpel.integration.exe.PartnerLinkInstance@15b73eb[name=whoisPL,partnerReference=org.jbpm.bpel.endpointref.wsa.WsaEndpointReference(a)dbd53e[address=<null>,portType={http://www.webservicex.net}whoisSoap]], port=whoisSoap
| 2008-07-31 19:29:20,239 DEBUG [org.jbpm.bpel.integration.client.SoapClient] calling endpoint at: http://www.webservicex.net/whois.asmx
| 2008-07-31 19:29:20,249 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Get locator for: http://www.webservicex.net/whois.asmx
| 2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@170bbcf connecting
| 2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@170bbcf connected
| 2008-07-31 19:29:20,279 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Remoting metadata: {HEADER={SOAPAction="http://www.webservicex.net/GetWhoIS", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true}
| 2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with SOAPAction : "http://www.webservicex.net/GetWhoIS"
| 2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with Content-Type : text/xml; charset=UTF-8
| 2008-07-31 19:29:20,509 DEBUG [org.jboss.ws.core.soap.SOAPMessageUnMarshaller] getMimeHeaders from: {Content-Length=[624], X-Powered-By=[ASP.NET], X-AspNet-Version=[1.1.4322], ResponseCodeMessage=Internal Server Error., Date=[Thu, 31 Jul 2008 17:29:16 GMT], Content-Type=[text/xml; charset=utf-8], Server=[Microsoft-IIS/6.0], HEADER={SOAPAction="http://www.webservicex.net/GetWhoIS", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true, Cache-Control=[private], ResponseCode=500}
| 2008-07-31 19:29:20,529 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8]
| 2008-07-31 19:29:20,539 DEBUG [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.http.HTTPClientInvoker@170bbcf from registry
| 2008-07-31 19:29:20,539 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
| 2008-07-31 19:29:20,539 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to DOM_VALID
| 2008-07-31 19:29:20,539 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
| 2008-07-31 19:29:20,539 ERROR [org.jbpm.bpel.integration.client.SoapClient] endpoint call failed: http://www.webservicex.net/whois.asmx
| javax.xml.soap.SOAPException: no wsdl fault matches the detail element content: org.jboss.ws.core.soap.DetailImpl@5cccd3[[detail: null]]
| at org.jbpm.bpel.integration.soap.SoapFormatter.readFault(SoapFormatter.java:698)
| at org.jbpm.bpel.integration.client.SoapClient.call(SoapClient.java:98)
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:182)
| at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:76)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
| at org.jbpm.graph.def.Node.execute(Node.java:339)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
| at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
| at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
| at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:99)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_93.deliverMessage(ReceiveAction_$$_javassist_93.java)
| at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:222)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:168)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
| at java.lang.Thread.run(Unknown Source)
| 2008-07-31 19:29:20,549 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: null
| java.lang.NullPointerException
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.replaceMessageType(JmsIntegrationService.java:217)
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:185)
| at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:76)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
| at org.jbpm.graph.def.Node.execute(Node.java:339)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
| at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
| at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
| at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:99)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_93.deliverMessage(ReceiveAction_$$_javassist_93.java)
| at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:222)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:168)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
| at java.lang.Thread.run(Unknown Source)
| 2008-07-31 19:29:20,569 DEBUG [org.jbpm.JbpmContext] closing jbpmContext org.jbpm.JbpmContext@1c2f20c
| 2008-07-31 19:29:20,569 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.bpel.persistence.db.DbPersistenceService@ed8b42
| 2008-07-31 19:29:20,569 DEBUG [org.jbpm.persistence.db.DbPersistenceService] rolling back hibernate transaction
| 2008-07-31 19:29:20,569 DEBUG [org.hibernate.transaction.JDBCTransaction] rollback
| 2008-07-31 19:29:20,569 DEBUG [org.hibernate.transaction.JDBCTransaction] re-enabling autocommit
| 2008-07-31 19:29:20,569 DEBUG [org.hibernate.transaction.JDBCTransaction] rolled back JDBC Connection
| 2008-07-31 19:29:20,569 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
| 2008-07-31 19:29:20,569 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 2008-07-31 19:29:20,569 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
| 2008-07-31 19:29:20,569 DEBUG [org.jbpm.svc.Services] closing service 'tx': org.jbpm.tx.TxService@1519d9b
| 2008-07-31 19:29:20,569 DEBUG [org.jbpm.svc.Services] closing service 'integration': org.jbpm.bpel.integration.jms.JmsIntegrationService@14256df
| 2008-07-31 19:29:20,569 ERROR [org.jbpm.bpel.integration.jms.StartListener] request delivery failed due to non-recoverable exception, giving up
| org.jbpm.graph.def.DelegationException
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:387)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.def.BpelProcessDefinition_$$_javassist_86.raiseException(BpelProcessDefinition_$$_javassist_86.java)
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.def.CompositeActivity_$$_javassist_161.raiseException(CompositeActivity_$$_javassist_161.java)
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
| at org.jbpm.graph.def.Node.execute(Node.java:339)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
| at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
| at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
| at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:99)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_93.deliverMessage(ReceiveAction_$$_javassist_93.java)
| at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:222)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:168)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.NullPointerException
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.replaceMessageType(JmsIntegrationService.java:217)
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:185)
| at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:76)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
| ... 28 more
|
|
There's also something strange with the registration of the partner service.
When JBoss is started within Eclipse the wsdl of the partner service is registered
correctly. But when I start JBoss using run.bat the wsdl can't be retrieved
- the target namespace entry states "wsdl read failure".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168002#4168002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168002
16 years, 4 months