You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Sean Ahn (JIRA)" <ji...@apache.org> on 2009/02/07 01:51:02 UTC

[jira] Commented: (ODE-511) Hibernate DAO + OnEvent + Correlation error

    [ https://issues.apache.org/jira/browse/ODE-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671385#action_12671385 ] 

Sean Ahn commented on ODE-511:
------------------------------

Rafal,

Are you using the same correlation id for the two requests?

A partner link, an operation and a correlation id determines a process instance uniquely. So, you cannot have multiple process instances with the same correlation id within the same process. 

To a certain degree, ODE supports multiple instances with the same correlation id. But, inherently, there's limit on how far it can go. Furthermore, there's no guarantee that all requests will be idempotent when a process becomes a complex chain of web service calls.

By using the 'unique' attribute, you can make sure that you always get an error on the client when you have multiple process instances with the same correlation id.

https://issues.apache.org/jira/browse/ODE-262?focusedCommentId=12658182#action_12658182

Let me know if your problem is different from what I explained about and if you have more questions.

Thanks

> Hibernate DAO + OnEvent + Correlation error
> -------------------------------------------
>
>                 Key: ODE-511
>                 URL: https://issues.apache.org/jira/browse/ODE-511
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3
>         Environment: axis2, jbi
>            Reporter: Rafal Rusin
>            Assignee: Sean Ahn
>             Fix For: 1.3
>
>         Attachments: axis.zip, error-hib.txt, jbi-sa.zip, OnEventCorrelation-soapui-project.xml, testRequest.soap
>
>
> I run ode1x with hibernate DAO, created a process with receive,
> onevent, receive, all correlated.
> I sent testRequest.soap from attachment twice.
> I had an error
> ERROR 23505: The statement was aborted because it would have caused a
> duplicate key value in a unique or primary key constraint or unique
> index identified by 'SQL090129030544101' defined on 'BPEL_SELECTORS'.
> Note that I didn't have this on OpenJPA DB.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.