History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: HSEARCH-196
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Christian Wiedmann
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hibernate Search

ObjectNotFoundException not caught in FullTextSession

Created: 07/May/08 04:24 PM   Updated: 03/Jun/08 03:10 PM
Component/s: engine
Affects Version/s: 3.0.1.GA
Fix Version/s: 3.1.0.Beta1

Time Tracking:
Not Specified

Environment: Hibernate core 3.2.4.sp1, MySQL 5


 Description  « Hide
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)

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Bernard - 03/Jun/08 03:10 PM
Thanks for the report.