Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User »

Re: [JBoss-user] Exception "Attempt to get lock ref with a null
 object" with self-referential CMR

Adrian Brock

2003-07-06

Replies:

On Sun, 2003-07-06 at 20:55, Brian Topping wrote:

> 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

This normally happens when your primary key isn't mapped correctly.
The container creates the local interface implementation (a smart proxy)
and embeds the primary key in it. In this case it is null. When you
try to use the proxy it fails with this error.

--
xxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user


©2008 junlu.com - Jax Systems, LLC, U.S.A.