2 Replies Latest reply on Jul 2, 2008 7:22 AM by Dev Adhikary

    javax.ejb.ObjectNotFoundException: No such entity! and table

    Dev Adhikary Newbie

      Hi! All,
      I have created a small enterprise application .I have used j2ee, Mysql, Jboss
      4.2.2 and netbean6.1. I am getting error like org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.MyappBean] Table 'MYAPPBEAN' already exists
      2008-06-23 14:01:29,078 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.MyappBean] Indices for table MYAPPBEANnot created as table existed

      And
      javax.ejb.ObjectNotFoundException: No such entity!
      2008-06-23 14:01:43,203 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:64)
      2008-06-23 14:01:43,203 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:604)
      2008-06-23 14:01:43,203 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:315)
      2008-06-23 14:01:43,203 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
      2008-06-23 14:01:43,203 ERROR [STDERR] at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1099)
      2008-06-23 14:01:43,203 ERROR [STDERR] at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:676)
      2008-06-23 14:01:43,203 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-06-23 14:01:43,203 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-06-23 14:01:43,203 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-06-23 14:01:43,218 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1126)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:136)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:45)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:521)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:981)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
      2008-06-23 14:01:43,218 ERROR [STDERR] at $Proxy124.findByPrimaryKey(Unknown Source)
      2008-06-23 14:01:43,218 ERROR [STDERR] at ejb.mySessBean.valid(mySessBean.java:84)
      2008-06-23 14:01:43,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-06-23 14:01:43,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-06-23 14:01:43,218 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-06-23 14:01:43,218 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:960)
      2008-06-23 14:01:43,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-06-23 14:01:43,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-06-23 14:01:43,218 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-06-23 14:01:43,218 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      2008-06-23 14:01:43,218 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      2008-06-23 14:01:43,718 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      2008-06-23 14:01:43,718 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      2008-06-23 14:01:43,718 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      2008-06-23 14:01:43,718 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      2008-06-23 14:01:43,718 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      2008-06-23 14:01:44,218 ERROR [STDERR] at $Proxy127.valid(Unknown Source)
      2008-06-23 14:01:44,218 ERROR [STDERR] at web.Newapp.processRequest(Newapp.java:50)
      2008-06-23 14:01:44,218 ERROR [STDERR] at web.Newapp.doPost(Newapp.java:91)
      2008-06-23 14:01:44,218 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      2008-06-23 14:01:44,218 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      2008-06-23 14:01:44,218 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      2008-06-23 14:01:44,718 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      2008-06-23 14:01:44,718 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)


      Please help me .I need some help.
      thanks & regards
      Raj.