Message:
The following issue has been closed.
Resolver: Gavin King
Date: Sat, 2 Aug 2003 8:22 PM
Yeah, thanks .... I thought about doing this myself.
In CVS (with a slight adjustment)
---------------------------------------------------------------------
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: Closed
Priority: Minor
Resolution: FIXED
Project: Hibernate2
Components:
core
Fix Fors:
2.0.3
Versions:
2.1
Assignee: Gavin King
Reporter: Max Rydahl Andersen
Created: Sat, 2 Aug 2003 7:42 PM
Updated: Sat, 2 Aug 2003 8:22 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
|