[jboss-user] [EJB/JBoss] - Get TransactionRolledbackException when calling home.findByP

marksbennett do-not-reply at jboss.com
Mon Jul 13 14:29:35 EDT 2009


I'm running JBoss 4.0.4 with MySQL 5.1.

I have an EJB2 solution that uses a facade-like design pattern: a message driven bean instantiates a stateless session bean which in turn instantiates CMP Entity beans. The session bean calls findByPrimaryKey() to instantiate a particular entity bean. Under normal operation, everything appears to work fine under heavy loads -- except if the server goes down and is then restarted. If messages are piled up in the JMS queue, then findByPrimaryKey() fails on the first message invocation:

2009-07-13 09:25:39,115 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException in method: public abstract com.adobe.liaisonEJB.AccountRemoteEB com.adobe.liaisonEJB.AccountHomeEB.findByPrimaryKey(java.lang.String) throws java.rmi.RemoteException,javax.ejb.FinderException, causedBy:
java.lang.IllegalStateException: createBeanClassInstanceCommand == null
	at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBCStoreManager.java:575)
	at org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:139)
	at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:238)
	at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:183)
	at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:113)


Any ideas as to why this is happening? Is it something to do with the MySQL configuration? Or the CMP configuration?

Thanks in advance,

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243367#4243367

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243367

More information about the jboss-user mailing list