2 Replies Latest reply on Mar 4, 2002 11:31 PM by Ryan Hilario

    javax.ejb.ObjectNotFoundException in deploying cmp2-example

    Ryan Hilario Newbie

      Hi all,

      I’m a newbie user of Jboss, and I just downloaded docs and sample codes from flashline. However, after deploying cmp2-example, I encountered the javax.ejb.ObjectNotFoundException: No Such Entity!

      [19:52:38,967,ContainerFactory] Deployed application: file:/home/dann/jboss-3.0.0alpha/deploy/Default/cmp2-example.ear
      [19:52:38,968,J2eeDeployer#Default] J2EE application: file:/home/dann/jboss-3.0.0alpha/deploy/cmp2-example.ear is deployed.
      [19:53:03,772,Default] [OrderEJB:2, OrderEJB:1]
      [19:53:03,934,Default] [OrderEJB:2, OrderEJB:1]
      [19:53:05,404,Default] [CA, CA, MN]
      [19:53:05,410,Default] [CA, CA, MN]
      [19:53:06,647,Default] [OrderEJB:100, OrderEJB:110, OrderEJB:11]
      [19:53:06,659,Default] [OrderEJB:100, OrderEJB:110, OrderEJB:11]
      [19:53:07,489,Default] delete all users
      [19:53:07,924,Default] done delete all users
      [19:53:07,928,Default] In testDeclaredSql
      [19:53:07,929,Default] getUserLocalHome
      [19:53:07,930,Default] creatingUsers
      [19:53:08,272,Default] test it
      [19:53:08,284,Default] done testDeclaredSql
      [19:53:12,772,EntityContainer] invoke returned an exception
      javax.ejb.ObjectNotFoundException: No such entity!
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:61)
      at org.jboss.ejb.plugins.cmp.CMPStoreManager.findEntity(CMPStoreManager.java:177)
      at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:326)
      at org.jboss.ejb.EntityContainer.find(EntityContainer.java:631)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:926)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:74)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:74)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:234)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:151)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:104)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:100)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:156)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:56)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:106)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
      at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:441)
      at org.jboss.ejb.Container.invoke(Container.java:536)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:368)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      [20:01:54,705,NoTransDS] running gc for pool
      [20:01:54,705,JmsXA] running gc for pool
      [20:01:54,705,DefaultDS] running gc for pool
      [20:11:54,714,NoTransDS] running gc for pool
      [20:11:54,714,JmsXA] running gc for pool
      [20:11:54,714,DefaultDS] running gc for pool

      What’s wrong with this?