Hey Martin

> Hi,
> 
> I recently upgraded from JBoss 2.0 Final to Jboss 2.2.1. 
> Everything works as
> expected but now I get a IllegalStateException when creating 
> entity beans.
> If I wait some minutes after creation and try to create the next bean
> everything works. I searched the mailing list and found some 
> other postings
> regarding this issue, but I found no solution. As I have 
> understood there is
> a bug in JBoss` caching....

Not that I know ;)
Are you sure you return the correct pk from ejbCreate ?
The problem you have happens for example if ejbCreate always returns the
same pk, maybe a typo or a forgot-to-modify cut'n'paste ?

HTH,

Simon

> 
> Are there any solutions now to solve this prob?
> 
> I´m running JBoss 2.2.1/Tomcat on Linux (SUN JDK 1.3)
> --------------------------------------------------------------
> --------------
> --------
> 
> 
>  [BasketItemApp] TRANSACTION ROLLBACK EXCEPTION:null; nested 
> exception is:
>         javax.ejb.EJBException
> [BasketItemApp] java.lang.IllegalStateException: INSERTING AN ALREADY
> EXISTING BEAN, ID = de.lilienthal.ET.ejb.entity.BasketItemPK@19317757
> [BasketItemApp]         at
> org.jboss.ejb.plugins.AbstractInstanceCache.insert(AbstractIns
> tanceCache.jav
> a:207)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPe
> rsistenceManag
> er.java:165)
> [BasketItemApp]         at
> org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)
> [BasketItemApp]         at 
> java.lang.reflect.Method.invoke(Native Method)
> [BasketItemApp]         at
> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(
> EntityContaine
> r.java:639)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeH
> ome(EntitySync
> hronizationInterceptor.java:160)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(Ent
> ityInstanceInt
> erceptor.java:87)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercepto
> rCMT.java:135)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.
> java:263)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercepto
> rCMT.java:86)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityI
> nterceptor.jav
> a:164)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor
> .java:106)
> [BasketItemApp]         at
> org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeH
> ome(JRMPContai
> nerInvoker.java:436)
> [BasketItemApp]         at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomePro
> xy.java:212)
> [BasketItemApp]         at $Proxy27.create(Unknown Source)
> 
> 
> 
> 
> regards,
> 
> 
> Martin
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to