File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes ERROR [LogInterceptor] RuntimeException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ERROR [LogInterceptor] RuntimeException" Watch "ERROR [LogInterceptor] RuntimeException" New topic

ERROR [LogInterceptor] RuntimeException

Viet Jav
Ranch Hand

Joined: Dec 27, 2001
Posts: 55
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)
I agree. Here's the link:
subject: ERROR [LogInterceptor] RuntimeException
It's not a secret anymore!