Bugs item #1047373, was opened at 2004-10-14 21:45 Message generated for change (Settings changed) made by ejort You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1047373&group_id=22866
Category: Hibernate Group: v4.0 Status: Open Resolution: None Priority: 5 Submitted By: Tor-Einar Skog (treinar) >Assigned to: Steve Ebersole (steveebersole) Summary: PropertyNotFoundException on runtime HAR deployment Initial Comment: OS: Linux 2.4.22-36mdkenterprise (i386) JVM: 1.4.2_06-b03 I have a HAR archive, with one class: Pesticide.class and its hibernate mapping file. Pesticide class has to properties: id and name (with getter/setter methods). A META-INF/hibernate-service.xml is also provided. When deploying a HAR archive when JBoss runs, the deployment fails. The following Exception is thrown: net.sf.hibernate.PropertyNotFoundException: Could not find a setter for property name in class no.planteforsk.pvmdb.persistent.Pesticide However, when JBoss is restarted, the HAR deploys fine. The Exception is thrown in net.sf.hibernate.property.BasicPropertyAccessor, in the method getSetter. The cause of the exception is that no match between set method (setName) and property (name) is found in method setterMethod. I inserted a few debug outputs in BasicPropertyAccessor, and it turns out that when the HAR is deployed at runtime, the method setName in Pesticide is wrongly assumed to take no parameters, (methods[i].getParameterTypes().length returns 0). When jboss is restarted, and the deployment takes place on the same HAR file, setName is assumed to take 1 parameter, which of course is correct. I'm not sure if this is a Java error or a JBoss error, or even a Hibernate error, but maybe you do. It does concern JBoss, however. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1047373&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
