1 Reply Latest reply on Aug 25, 2007 1:21 PM by dramakr

    org.hibernate.ObjectNotFoundException: No row with the given

    dramakr Newbie

      Hello,

      I am encountering this exception on an intermittent basis and could not figure why its so infrequent. It seems this happens on Session.load() and not able to query the object.

      I read a few forums on this on changing the primary key's datatype, but not convinced is thats the core issue.

      If any of you have encountered this, kindly help.

      Regards,
      Dinesh

        • 1. Re: org.hibernate.ObjectNotFoundException: No row with the g
          dramakr Newbie

          Here's the exception log

          11:20:54,884 INFO [DefaultLoadEventListener] Error performing load command
          org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.lightspeed.hibernate.informix.housekeeping.HKpackage.LsHkPkgSvc#[LsHkPkgSvcId: lsHkPkg: BLK2 lsHkSvc: 24]]
          at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
          at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:118)
          at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:167)
          at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:79)
          at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:641)
          at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:257)
          at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:160)
          at org.hibernate.collection.PersistentSet.initializeFromCache(PersistentSet.java:96)
          at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35)
          at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:126)
          at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48)
          at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1412)
          at org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:271)
          at org.hibernate.engine.PersistenceContext.initializeNonLazyCollections(PersistenceContext.java:796)
          at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:215)
          at org.hibernate.loader.Loader.doList(Loader.java:1561)
          at org.hibernate.loader.Loader.list(Loader.java:1544)
          at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
          at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
          at org.hibernate.impl.SessionImpl.list(SessionImpl.java:830)
          at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
          at com.lightspeed.hibernate.common.HibernateUtil.getList(HibernateUtil.java:183)
          at com.lightspeed.hibernate.informix.housekeeping.HKpackage.HKPackageHelper.getPackageByHotelandCode(HKPackageHelper.java:53)
          at com.lightspeed.logic.housekeeping.HousekeepingAdminHandler._saveHKService(HousekeepingAdminHandler.java:655)
          at com.lightspeed.ejb.housekeeping.HousekeepingAdminBean.saveHKService(HousekeepingAdminBean.java:270)
          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:585)
          at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
          at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
          at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
          at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
          at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
          at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
          at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
          at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
          at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
          at org.jboss.ejb.Container.invoke(Container.java:873)
          at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:413)
          at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
          at $Proxy352.saveHKService(Unknown Source)
          at com.lightspeed.gooey.helper.HousekeepingHelper.saveHKServices(HousekeepingHelper.java:215)
          at com.lightspeed.gooey.command.HKPackagesCommand.saveHKServices(HKPackagesCommand.java:405)
          at com.lightspeed.gooey.command.HKPackagesCommand.execute(HKPackagesCommand.java:96)
          at com.lightspeed.gooey.FrontController.processRequest(FrontController.java:115)
          at com.lightspeed.gooey.FrontController.service(FrontController.java:142)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
          at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Thread.java:595)