[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3264) Error in two phase loading will not reveal entity name or key

Paul Benedict (JIRA) noreply at atlassian.com
Sun May 4 23:12:33 EDT 2008


Error in two phase loading will not reveal entity name or key
-------------------------------------------------------------

                 Key: HHH-3264
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3264
             Project: Hibernate3
          Issue Type: Patch
          Components: core
    Affects Versions: 3.2.6
            Reporter: Paul Benedict
         Attachments: TwoPaseLoad.patch

I had a method getter that was throwing an exception during query execution. I couldn't figure out which entity -- either name or identifier -- that was failing. The best I got was:

org.hibernate.PropertyAccessException: Exception occurred inside getter of org....myproperty
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:148)

So I created a patch for TwoPhaseLoad which will wrap any nested exception and print out the entity name and identifier.


-- 
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