From: <leg...@at...> - 2003-08-03 01:05:14
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Sat, 2 Aug 2003 8:05 PM Body: here is a patch that also include the warning for getters ;) Index: AbstractEntityPersister.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/persister/AbstractEntityPersister.java,v retrieving revision 1.33 diff -u -r1.33 AbstractEntityPersister.java --- AbstractEntityPersister.java 20 Jul 2003 03:18:49 -0000 1.33 +++ AbstractEntityPersister.java 3 Aug 2003 01:04:38 -0000 @@ -164,7 +164,7 @@ } } catch (Throwable t) { - throw new PropertyAccessException(t, "exception setting property value with CGLIB", true, mappedClass, "?"); + throw new PropertyAccessException(t, "exception setting property value with CGLIB. Disable CGLIB optimizer to get the related property name (-Dhibernate.cglib.use_reflection_optimizer=true).", true, mappedClass, "?"); } for (int j=0; j<hydrateSpan; j++) getSetters()[j].set(object, values[j]); @@ -180,7 +180,7 @@ } } catch (Throwable t) { - throw new PropertyAccessException(t, "exception getting property value with CGLIB", false, mappedClass, "?"); + throw new PropertyAccessException(t, "exception getting property value with CGLIB. Disable CGLIB optimizer to get the related property name (-Dhibernate.cglib.use_reflection_optimizer=true).", false, mappedClass, "?"); } Object[] result = new Object[hydrateSpan]; --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-225 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-225 Summary: Inform about disabling cglib to get better help in exception message Type: Patch Status: Assigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Gavin King Reporter: Max Rydahl Andersen Created: Sat, 2 Aug 2003 7:42 PM Updated: Sat, 2 Aug 2003 7:42 PM Description: Just letting the user know that he can be informed about which property that has the error if he disables the optimizer. Index: AbstractEntityPersister.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/persister/AbstractEntityPersister.java,v retrieving revision 1.33 diff -u -r1.33 AbstractEntityPersister.java --- AbstractEntityPersister.java 20 Jul 2003 03:18:49 -0000 1.33 +++ AbstractEntityPersister.java 3 Aug 2003 00:39:38 -0000 @@ -164,7 +164,7 @@ } } catch (Throwable t) { - throw new PropertyAccessException(t, "exception setting property value with CGLIB", true, mappedClass, "?"); + throw new PropertyAccessException(t, "exception setting property value with CGLIB. Disable CGLIB optimizer to get the related property name (-Dhibernate.cglib.use_reflection_optimizer=true) .", true, mappedClass, "?"); } for (int j=0; j<hydrateSpan; j++) getSetters()[j].set(object, values[j]); --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |