[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!
Hi, balteo. I'm having the problem too. Can you explain in more details how do u fix it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948037#3948037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948037 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!
Hi, i've this problem: [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)] Started in 52s:411ms 14:49:34,381 INFO [STDOUT] No se encontró servlet asociado al evento: listar_usuarios Error: No such entity! 14:49:34,383 INFO [STDOUT] javax.ejb.ObjectNotFoundException: No such entity! 14:49:34,385 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:50) 14:49:34,386 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:589) 14:49:34,387 INFO [STDOUT] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:300) 14:49:34,387 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:298) 14:49:34,388 INFO [STDOUT] at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1086) 14:49:34,389 INFO [STDOUT] at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:663) 14:49:34,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 14:49:34,391 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 14:49:34,391 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 14:49:34,392 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) 14:49:34,392 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192) 14:49:34,392 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:113) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) 14:49:34,392 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41) 14:49:34,393 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109) 14:49:34,394 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:129) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:106) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:876) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:342) 14:49:34,395 INFO [STDOUT] at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118) 14:49:34,395 INFO [STDOUT] at $Proxy60.findByPrimaryKey(Unknown Source) 14:49:34,396 INFO [STDOUT] at cl.eftbanca.portaleft.ejb.PortalControlSessionBean.getServletByEvento(PortalControlSessionBean.java:189) Need helñp pliz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884235#3884235 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884235 --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!
Hello Loubyansky, First of all thanks for taking the time to respond. I tried the following test as you suggested: 1. I try to access the record through a ejbhome findByPrimaryKey 2. I try to access the record through plain jdbc Here is the code: | <%@ page import ="javax.ejb.*" %> | <%@ page import ="javax.naming.*" %> | <%@ page import ="java.util.*" %> | <%@ page import ="java.rmi.*" %> | <%@ page import ="com.softwareag.test_guide.establishmentEJB.*" %> | | | <%@ page import ="javax.sql.*" %> | <%@ page import ="java.sql.*" %> | | | <% | | try{ | Properties p = new Properties(); | p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); | p.put(Context.PROVIDER_URL,"127.0.0.1:1099"); | p.put(Context.SECURITY_PRINCIPAL,"sa"); | p.put(Context.SECURITY_CREDENTIALS,""); | Context context = new InitialContext(p); | PGEstablishmentLocalHome home = (PGEstablishmentLocalHome) context.lookup("PGEstablishmentHome_L"); | PGEstablishmentLocal establishment = home.findByPrimaryKey(new Integer(12)); | out.println(establishment.getId()); | } | catch(FinderException e){ | e.printStackTrace(); | } | | %> | | <% System.out.println("---");%> | | <% | try{ | Properties p = new Properties(); | p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); | p.put(Context.PROVIDER_URL,"127.0.0.1:1099"); | Context context = new InitialContext(p); | DataSource ds = (DataSource) context.lookup("java:/test_guia"); | Connection con = ds.getConnection(); | Statement st = con.createStatement(); | ResultSet rs = st.executeQuery("select db_establishment_id from establishments where db_establishment_id = 12"); | rs.next(); | out.println(rs.getInt(1)); | con.close(); | } | catch(SQLException e){ | e.printStackTrace(); | } | %> | The first section (access record from ejb home) throws the same exception ie: | 1:30:46,937 INFO [EARDeployer] Started J2EE application: file:/D:/system/jboss-4.0.0/server/default/deploy/test_guide.ear | 1:31:46,703 INFO [STDOUT] javax.ejb.ObjectNotFoundException: No such entity! | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.execute(JDBCFindByPrimaryKeyQuery.java:133) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:43) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:582) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:310) | 1:31:46,703 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:300) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1084) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:674) | 1:31:46,703 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 1:31:46,703 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 1:31:46,703 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 1:31:46,703 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) | 1:31:46,703 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:194) | 1:31:46,703 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:113) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41) | 1:31:46,703 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109) | 1:31:46,703 INFO
[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!
Can you try to write a simple JDBC test that executes the same statement using the same DataSource inside the JBoss and see if it sees the row? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845464#3845464 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845464 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!
You want to say the row is in the db? JDBC says it's not. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845288#3845288 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845288 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!
ResultSet contained was empty. You can enable TRACE logging for org.jboss.ejb.plugins.cmp to see the SQL and parameters. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839771#3839771 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839771 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user