Hi all I did some googling however to no avail, I found a reference to
faq, but I never found the faq. And the answer is talking about generated
db keys, which I believe is not the issue.
So I'm questioning again hoping no one takes offense.
Any way point is this:
I create in a session bean an instance of a cmp entity bean (using the
localhome interface) Which goes really well. I get back a Local interface,
and on this local interface I call setAnotherProperty(). At this point I
get  the error below. And no trace in the db of the created record,
However when I comment out the last (setAnotherProperty) all works well
again, obviously with a null value in the db?
What goes wrong or where am I wrong?

tia,
Jroen

2003-11-02 22:15:49,961 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException, causedBy:
java.lang.IllegalArgumentException: Attempt to get lock ref with a null
object
        at org.jboss.ejb.BeanLockManager.getLock(BeanLockManager.java:80)
        at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:81)
        at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53)
        at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
        at org.jboss.ejb.Container.invoke(Container.java:674)
        at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353)
        at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
        at $Proxy227.setInfo(Unknown Source)



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to