Problem with CMP
vaisberg Oct 13, 2003 1:45 PMHi,
I have a Problem with CMP-Bean from book EJB "Mastering Enterprise Beans". Can you help mi?
21:09:59,464 INFO [EJBDeployer] looking for nested deployments in : file:/C:/Java/jboss-3.2.0/server/default/deploy/product.jar
21:10:00,120 INFO [EjbModule] Creating
21:10:00,136 INFO [EjbModule] Deploying Product
21:10:00,198 INFO [EntityContainer] Creating
21:10:00,230 INFO [EntityInstancePool] Creating
21:10:00,230 INFO [EntityInstancePool] Created
21:10:00,230 INFO [EntityContainer] Created
21:10:00,230 INFO [EjbModule] Created
21:10:00,230 INFO [EjbModule] Starting
21:10:00,245 INFO [EntityContainer] Starting
21:10:00,667 INFO [Product] Table 'PRODUCT' already exists
21:10:00,714 INFO [EntityInstancePool] Starting
21:10:00,714 INFO [EntityInstancePool] Started
21:10:00,730 INFO [EntityContainer] Started
21:10:00,730 INFO [EjbModule] Started
21:10:00,761 INFO [MainDeployer] Deployed package: file:/C:/Java/jboss-3.2.0/server/default/deploy/product.jar
21:10:10,011 INFO [ProductBean] ProductBean.setEntityContext() - start
21:10:10,089 INFO [ProductBean] ProductBean.setEntityContext() - start
21:10:10,105 INFO [ProductBean] ProductBean.ejbCreate() - start
21:10:10,105 INFO [ProductBean] ProductBean.ejbCreate() - end
21:10:40,136 INFO [ProductBean] ProductBean.setEntityContext() - start
21:10:40,198 INFO [ProductBean] ProductBean.setEntityContext() - start
21:10:40,198 INFO [ProductBean] ProductBean.ejbCreate() - start
21:10:40,198 INFO [ProductBean] ProductBean.ejbCreate() - end
21:10:40,292 INFO [ProductBean] ProductBean.ejbPostCrete() - called
21:10:40,292 INFO [ProductBean] ProductBean.ejbStore() - called
21:10:40,323 INFO [ProductBean] ProductBean.setEntityContext() - start
21:10:40,355 INFO [ProductBean] ProductBean.setEntityContext() - start
21:10:40,355 INFO [ProductBean] ProductBean.ejbActivate() - called
21:10:40,401 INFO [ProductBean] ProductBean.ejbLoad() - called
21:10:40,417 ERROR [BeanLock] removing bean lock and it has tx set! QPL bean=Product id=123-456-0001 tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=ALEX//31, BranchQual=] synched=null timeout=5000 queue=[]
21:10:40,448 ERROR [LogInterceptor] RuntimeException:
java.lang.IllegalStateException: removing bean lock and it has tx set!
at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:430)
at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:107)
at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:106)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
21:24:08,228 WARN [AbstractInstanceCache] failed to passivate, id=123-456-0003
javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field accessor, or ejbSelect method: methodName=ejbPassivate
at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:111)
at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)
at ejb.examples.products.ProductBean$Proxy.ejbPassivate()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.plugins.CMPPersistenceManager.passivateEntity(CMPPersistenceManager.java:446)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.passivateEntity(CachedConnectionInterceptor.java:414)
at org.jboss.ejb.plugins.EntityInstanceCache.passivate(EntityInstanceCache.java:91)
at org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:156)
at org.jboss.ejb.plugins.AbstractInstanceCache.release(AbstractInstanceCache.java:192)
at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy.ageOut(LRUEnterpriseContextCachePolicy.java:274)
at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.kickOut(LRUEnterpriseContextCachePolicy.java:446)
at org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.run(LRUEnterpriseContextCachePolicy.java:405)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)