[ 
https://issues.apache.org/jira/browse/SYNCOPE-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13530017#comment-13530017
 ] 

Andrei Shakirin edited comment on SYNCOPE-247 at 12/12/12 3:14 PM:
-------------------------------------------------------------------

Digging into problem and found the following:
1. Problem is caused by adding icon attribute. If this code is commented, 
problem disappears.
2. The reason of the problem is trying to insert RAttr object with existing id:
<openjpa-2.2.1-r422266:1396819 fatal store error> 
org.apache.openjpa.persistence.EntityExistsException: The transaction has been 
rolled back.  See the nested exceptions for details on the errors that occurred.
FailedObject: org.apache.syncope.core.persistence.beans.role.RAttr@1d1da252
3. I see that RAttr id is automatically generated using TableGenerator 
strategy. But I do not see any problems in orm.xml related to sequence 
generator.
4. If I just change initial-value for SEQ_MAttr from 1000 to 1100, all tests 
reruns are green.
It seems that there are some collisions in embedded H2 DB regarding 
TableGenerator. But still not found exact reason.
Has anybody any clue? The issue makes me really confused.
                
      was (Author: ashakirin):
    Digging into problem and found the following:
1. Problem is caused by adding icon attribute. If it commented this code, 
problem disappears.
2. The reason of the problem is trying to insert RAttr object with existing id:
<openjpa-2.2.1-r422266:1396819 fatal store error> 
org.apache.openjpa.persistence.EntityExistsException: The transaction has been 
rolled back.  See the nested exceptions for details on the errors that occurred.
FailedObject: org.apache.syncope.core.persistence.beans.role.RAttr@1d1da252
3. I see that RAttr id is automatically generated using TableGenerator 
strategy. But I do not see any problems in orm.xml related to sequence 
generator.
4. If I just change initial-value for SEQ_MAttr from 1000 to 1100, all tests 
reruns are green.
It seems that there are some collisions in embedded H2 DB regarding 
TableGenerator. But still not found exact reason.
Has anybody any clue? The issue makes me really confused.
                  
> Resolve problems by Role test rerun for crud() and issue228() tests
> -------------------------------------------------------------------
>
>                 Key: SYNCOPE-247
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-247
>             Project: Syncope
>          Issue Type: Sub-task
>         Environment: CXF branch
>            Reporter: Andrei Shakirin
>            Assignee: Jan Bernhardt
>         Attachments: AbstractRoleTestITCase.java.patch
>
>
> Actually some of Role integration tests (issue 228, crud) cannot be rerun.
> Reason: only 8 first characters from UUID is used as role name, that causes 
> name collisions.
> Patch for the CXF branch is attached.
> Regards,
> Andrei.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to