Email BC and BPEL Persistence

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Email BC and BPEL Persistence

OpenESB Community Forum mailing list

A Happy New Year to all!

I have enabled persistence in the BPEL SE, and all initially seemed well - tasks showed up, long tasks showed as RUNNING and execution recovered nicely after a restart. 

I then deployed a process that contained an email read - this process works perfectly well if persistence is not enabled, but throws the following exception when it is:-


2019-01-08T13:12:51.208+0000 WARNING [com.sun.jbi.engine.bpel.BPELSEInOutThread] (sun-bpel-engine-thread-0) BPJBI-6010: Failed to process In Only Message M Ex 131743182527539-8807-137662459711870180

java.lang.RuntimeException: BPCOR-6019: CRMP failed, there is no start activity for this request: 192.168.2.192:350a117c:16828a998b4:-7ffbReceiveEmailLinkReceiveEmails

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.handleCRMPRequest(BPELProcessManagerImpl.java:1320)

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.handleRequest(BPELProcessManagerImpl.java:1210)

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.handleEvent(BPELProcessManagerImpl.java:367)

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1331)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThread.java:604)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:300)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:193)

 

2019-01-08T13:12:51.210+0000 WARNING [com.sun.jbi.engine.bpel.BPELSEHelper] (sun-bpel-engine-thread-0) BPJBI-6001: Sending ERROR status (Service Name = {http://enterprise.netbeans.org/bpel/Testing/testing}PartnerLink1, Endpoint Name = ReadEmailPortTypeRole_myRole, Operation Name = ReceiveEmails, Message Exchange Id = 131743182527539-8807-137662459711870180)

Error properties

  com.sun.jbi.crl.faultcode = Server

  com.sun.jbi.crl.faultstring = BPCOR-6019: CRMP failed, there is no start activity for this request: 192.168.2.192:350a117c:16828a998b4:-7ffbReceiveEmailLinkReceiveEmails

  com.sun.jbi.crl.faultactor = sun-bpel-engine

  com.sun.jbi.crl.faultdetail =

   BPCOR-6019: CRMP failed, there is no start activity for this request: 192.168.2.192:350a117c:16828a998b4:-7ffbReceiveEmailLinkReceiveEmails

 

Am I missing something? Perhaps this is not a supported activity under persisted BPEL?

Not to be outdone, I thought I'd try using the new cache as an alternative for a long-running task, but I cannot seem to find an example of how to use the cache. Does such an example exist?

Many thanks,

Dave.

Reply | Threaded
Open this post in threaded view
|

Re: Email BC and BPEL Persistence

OpenESB Community Forum mailing list

OK, so I can make caching work – but would like to know if it is safe to use the return Get BP ID as a unique identifier.

 

If it is, I’ll make a simple caching example available to the community.

 

Cheers,

                Dave

 

From: dave <[hidden email]>
Sent: 08 January 2019 13:23
To: [hidden email]
Subject: Email BC and BPEL Persistence

 

A Happy New Year to all!

I have enabled persistence in the BPEL SE, and all initially seemed well - tasks showed up, long tasks showed as RUNNING and execution recovered nicely after a restart. 

I then deployed a process that contained an email read - this process works perfectly well if persistence is not enabled, but throws the following exception when it is:-

 

2019-01-08T13:12:51.208+0000 WARNING [com.sun.jbi.engine.bpel.BPELSEInOutThread] (sun-bpel-engine-thread-0) BPJBI-6010: Failed to process In Only Message M Ex 131743182527539-8807-137662459711870180

java.lang.RuntimeException: BPCOR-6019: CRMP failed, there is no start activity for this request: 192.168.2.192:350a117c:16828a998b4:-7ffbReceiveEmailLinkReceiveEmails

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.handleCRMPRequest(BPELProcessManagerImpl.java:1320)

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.handleRequest(BPELProcessManagerImpl.java:1210)

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.handleEvent(BPELProcessManagerImpl.java:367)

at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1331)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThread.java:604)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:300)

at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:193)

 

2019-01-08T13:12:51.210+0000 WARNING [com.sun.jbi.engine.bpel.BPELSEHelper] (sun-bpel-engine-thread-0) BPJBI-6001: Sending ERROR status (Service Name = {http://enterprise.netbeans.org/bpel/Testing/testing}PartnerLink1, Endpoint Name = ReadEmailPortTypeRole_myRole, Operation Name = ReceiveEmails, Message Exchange Id = 131743182527539-8807-137662459711870180)

Error properties

  com.sun.jbi.crl.faultcode = Server

  com.sun.jbi.crl.faultstring = BPCOR-6019: CRMP failed, there is no start activity for this request: 192.168.2.192:350a117c:16828a998b4:-7ffbReceiveEmailLinkReceiveEmails

  com.sun.jbi.crl.faultactor = sun-bpel-engine

  com.sun.jbi.crl.faultdetail =

   BPCOR-6019: CRMP failed, there is no start activity for this request: 192.168.2.192:350a117c:16828a998b4:-7ffbReceiveEmailLinkReceiveEmails

 

Am I missing something? Perhaps this is not a supported activity under persisted BPEL?

Not to be outdone, I thought I'd try using the new cache as an alternative for a long-running task, but I cannot seem to find an example of how to use the cache. Does such an example exist?

Many thanks,

Dave.

Reply | Threaded
Open this post in threaded view
|

Re: Email BC and BPEL Persistence

Paul Perez
Administrator
Hello Dave,

Don't use the Persistence it is not supported for years and is available for
backward compatibility only.

The question you have to ask is why do you need persistence.
The cache is mainly made to replace the correlation but you can use it to
store data but you will not Replace the persistence

Paul



-----
www.pymma.com
The best services on OpenESB
--
Sent from: http://openesb-community-forum.794670.n2.nabble.com/
www.pymma.com The best services on OpenESB
Reply | Threaded
Open this post in threaded view
|

Re: Email BC and BPEL Persistence

OpenESB Community Forum mailing list
H,

Correlation is what I intended to use persistence, and I have it working
nicely :-)

I am happy to share an example should it be of use to the community.

Dave.

On 09/01/2019 12:16, Paul Perez wrote:

> Hello Dave,
>
> Don't use the Persistence it is not supported for years and is
> available for
> backward compatibility only.
>
> The question you have to ask is why do you need persistence.
> The cache is mainly made to replace the correlation but you can use it
> to
> store data but you will not Replace the persistence
>
> Paul
>
>
>
> -----
> www.pymma.com
> The best services on OpenESB
> --
> Sent from: http://openesb-community-forum.794670.n2.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Email BC and BPEL Persistence

jinHo
Hi,

I'm absolutely stumped at using the cache, can you please provide the
example as stated? It will be greatly appreciated.

Jin Ho



--
Sent from: http://openesb-community-forum.794670.n2.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Email BC and BPEL Persistence

OpenESB Community Forum mailing list
Hi,

Here is an example of using the cache
https://www.dropbox.com/s/rkqc5mm71pmnzta/CacheDemo.zip?dl=0  - this example
will take REST requests to store, retrieve and delete a value from the
cache.

Here is a Postman collection to drive it:-
https://www.dropbox.com/s/551tl2de787ld6q/CacheDemo.postman_collection.json.
zip?dl=0 . Run the Set Value, Get Value and Delete Value in order. Once you
have run all three, rerun the Get Value again, and not that the original
value is no longer available.

The WSDL in the example is concrete, so just add it to a fresh Composite
Application, build and deploy.

I hope that you find this helpful,

Dave.


-----Original Message-----
From: User <[hidden email]> On Behalf Of jinHo
Sent: 15 April 2019 02:36
To: [hidden email]
Subject: Re: [User] Email BC and BPEL Persistence

Hi,

I'm absolutely stumped at using the cache, can you please provide the
example as stated? It will be greatly appreciated.

Jin Ho



--
Sent from: http://openesb-community-forum.794670.n2.nabble.com/