This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ERROR [LogInterceptor] RuntimeException  RSS feed

Viet Jav
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am beginner with Jboss, I using BMP to test EJB on JBoss When I run, on Jboss Server output:
setEntityContext call..,
ejbCreate call..,
and then it throw exception as below. I dont know what exceptions are? My program does nothing, just make database connection (in method setEntityContext) Please help me.
public void setEntityContext(EntityContext context) {
System.out.println("setEntityContext call...");
this.context = context;
try {
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " + ex.getMessage());
public void ejbCreate()
private void makeConnection() throws NamingException, SQLException { InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup(dbName);
con = ds.getConnection();
16:26:47,120 ERROR [LogInterceptor] RuntimeException:
java.lang.IllegalArgumentException: Attempt to get a lock for a null object
at org.jboss.ejb.BeanLockManager.getLock(
at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreation
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke( 2)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor. java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke(
at org.jboss.ejb.EntityContainer.invoke(
at org.jboss.ejb.Container.invoke( at org.jboss.ejb.EntityContainer.invoke(
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke( 382)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke( at sun.rmi.server.UnicastServerRef.dispatch(
at sun.rmi.transport.Transport$
at Method) at sun.rmi.transport.Transport.serviceCall(
at sun.rmi.transport.tcp.TCPTransport.handleMessages( 60)
at sun.rmi.transport.tcp.TCPTransport$ .java:701)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!