[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-196) ObjectNotFoundException not caught in FullTextSession

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Jun 3 16:11:33 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard resolved HSEARCH-196.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0

Thanks for the report.

> ObjectNotFoundException not caught in FullTextSession
> -----------------------------------------------------
>
>                 Key: HSEARCH-196
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-196
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 3.0.1.GA
>         Environment: Hibernate core 3.2.4.sp1, MySQL 5
>            Reporter: Christian Wiedmann
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> I am getting an ObjectNotFoundException from FullTextSession when running a query with items in the index that have been deleted from the database.  It seems like the intent is not to let this exception be thrown, but the stack trace shows the exception is not being caught in ObjectLoader.load when it is thrown from session.get().
> ref: http://forum.hibernate.org/viewtopic.php?p=2384677
> org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
> [com.lawtrust.server.Document#ca533472193932230119394006b0004f]
>         at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377)
>         at org.hibernate.event.def.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:223)
>         at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:187)
>         at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
>         at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
>         at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
>         at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
>         at org.hibernate.search.engine.ObjectLoader.load(ObjectLoader.java:27)
>         at org.hibernate.search.engine.ProjectionLoader.load(ProjectionLoader.java:54)
>         at org.hibernate.search.query.FullTextQueryImpl.list(FullTextQueryImpl.java:244)
>         at com.lawtrust.server.bl.spring.service.impl.SearchServiceImpl.find(SearchServiceImpl.java:94)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list