openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sravan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2497) Unable to persist a new instance
Date Sat, 10 May 2014 22:06:49 GMT

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

sravan commented on OPENJPA-2497:
---------------------------------

Hi Rick, 

Please refer to similar exception in OPENJPA-755, Its comment shows as below. 
------------------------------
Catalina Wei added a comment - 14/Nov/08 00:11 
Fix applied to 1.2.x branch under r713858.
------------------------------

The comment shows fix applied to 1.2.x branch r713858. My application log shows r422266. Does
this mean, my application is using openjpa jar which does not have the fix for this issue?



----------- below is complete error from my application logs----------
[12/03/14 08:09:42:885 GMT] 00000038 BusinessExcep E   CNTR0020E: EJB threw an unexpected
(non-declared) exception d
uring invocation of method "create" on bean "BeanId(acstr01-acstr#acstr-ejb-1.0.jar#CRUDServiceBean,
null)". Excepti
on data: <openjpa-1.2.4-SNAPSHOT-r422266:1517039 nonfatal store error> org.apache.openjpa.persistence.EntityExistsEx
ception: Attempt to persist detached object "com.setmr.acstr.domain.Case@4aba4aba".  If this
is a new instance, m
ake sure any version and/or auto-generated primary key fields are null/default when persisting.
FailedObject: com.setmr.acstr.domain.Case@4aba4aba
-------------------------------


I am also seeing the similar bug # OPENJPA-1640 open 

https://issues.apache.org/jira/i#browse/OPENJPA-1640

------------------------------------

If you can confirm me if this is openjpa bug in this version openjpa-1.2.4-SNAPSHOT-r422266
and provide me stable version number of open jpa , then I will ask IBM to package the stable
version of open jpa in their websphere and provide it to us. 

Best regards
Sravan

> Unable to persist a new instance
> --------------------------------
>
>                 Key: OPENJPA-2497
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2497
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: sravan
>
> My application is working fine with Websphere 7.0.0.9 since last two years. Now Websphere
is upgraded to version 7.0.0.31. After this upgrade, application is throwing below error while
trying to persist a new instance. Please advise. 
> (Note: In another environment , where I use openjpa-1.2.2 jar with jboss application
server, application is working fine.)
> The below error shows the application is using openjpa-1.2.4-SNAPSHOT. So is there any
such issue in this release that does not exist in openjpa-1.2.2 ? How to remediate it in the
version openjpa-1.2.4-SNAPSHOT ? 
> Will be looking forward for your advise.  
> [12/03/14 08:09:42:885 GMT] 00000038 BusinessExcep E   CNTR0020E: EJB threw an unexpected
(non-declared) exception d
> uring invocation of method "create" on bean "BeanId(acstr01-acstr#acstr-ejb-1.0.jar#CRUDServiceBean,
null)". Excepti
> on data: <openjpa-1.2.4-SNAPSHOT-r422266:1517039 nonfatal store error> org.apache.openjpa.persistence.EntityExistsEx
> ception: Attempt to persist detached object "com.setmar.acstr.domain.Case@4aba4aba".
 If this is a new instance, m
> ake sure any version and/or auto-generated primary key fields are null/default when persisting.
> FailedObject: com.setmar.acstr.domain.Case@4aba4aba
>         at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2453)
>         at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2312)
>         at org.apache.openjpa.kernel.DelegatingBroker.persist(DelegatingBroker.java:1021)
>         at org.apache.openjpa.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:651)
>         at com.ibm.ws.jpa.management.JPAExEmInvocation.persist(JPAExEmInvocation.java:339)
>         at com.ibm.ws.jpa.management.JPAEntityManager.persist(JPAEntityManager.java:133)
>         at com.setmar.acstr.service.CRUDServiceBean.create(CRUDServiceBean.java:34)
>         at com.setmar.acstr.service.EJSLocal0SLCRUDServiceBean_a178a2d2.create(EJSLocal0SLCRUDServiceBean_a178a2d2
> .java)
>         at com.setmar.acstr.casemgmt.service.CaseServiceBean.save(CaseServiceBean.java:42)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at com.ibm.ejs.container.EJSContainer.invokeProceed(EJSContainer.java:5874)
>         at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:586)
>         at com.setmar.acstr.domain.audit.AuditServiceInterceptor.process(AuditServiceInterceptor.java:36)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterceptor(InterceptorProxy.java:227)
>         at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:566)
>         at com.ibm.ejs.container.interceptors.InvocationContextImpl.doAroundInvoke(InvocationContextImpl.java:217)
>         at com.ibm.ejs.container.EJSContainer.invoke(EJSContainer.java:5766)
>         at com.setmar.acstr.casemgmt.service.EJSLocal0SLCaseServiceBean_78acc083.save(EJSLocal0SLCaseServiceBean_7
> 8acc083.java)
>         at com.setmar.acstr.casemgmt.facade.CaseFacadeBean.submitCase(CaseFacadeBean.java:102)
>         at com.setmar.acstr.casemgmt.facade.EJSLocal0SLCaseFacadeBean_28e75513.submitCase(EJSLocal0SLCaseFacadeBea
> n_28e75513.java)
>         at com.setmar.acstr.managed.AbstractCaseBean.submitCase(AbstractCaseBean.java:232)
>         at com.setmar.acstr.managed.AbstractCaseBean.submitCase(AbstractCaseBean.java:150)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message