From: <leg...@at...> - 2003-11-18 04:52:45
|
The following comment has been added to this issue: Author: Alexey Kaigorodov Created: Mon, 17 Nov 2003 10:52 PM Body: Very strange what you don't reproduce bug. I have it also in 2.1 beta 6. The exception appears while loading mapping i.e. does not depend on database. ERROR net.sf.hibernate.cfg.Configuration - Could not compile the mapping document net.sf.hibernate.MappingException: Problem trying to set property type by reflection at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:102) at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:956) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:949) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:312) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1146) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:243) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:266) at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:307) at Foo.main(Foo.java:16) Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bars in class Foo at net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:186) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:57) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:91) ... 8 more net.sf.hibernate.MappingException: Error reading resource: Foo.hbm.xml at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:310) at Foo.main(Foo.java:16) Caused by: net.sf.hibernate.MappingException: Problem trying to set property type by reflection at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:102) at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:956) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:949) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:312) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1146) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:243) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:266) at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:307) ... 1 more Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for bars in class Foo at net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:186) at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:57) at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:91) ... 8 more --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-440 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-440 Summary: Direct collection property access Type: Bug Status: Closed Priority: Major Resolution: CANNOT REPRODUCE Project: Hibernate2 Components: core Fix Fors: 2.1 rc1 Versions: 2.1 beta 5 Assignee: Max Rydahl Andersen Reporter: Alexey Kaigorodov Created: Fri, 31 Oct 2003 3:26 AM Updated: Fri, 14 Nov 2003 5:23 PM Description: <bag name="..." access="field"> ... </bag> causes exception unless exists getter net.sf.hibernate.MappingException: Problem trying to set property type by reflection at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:103) at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:953) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:946) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:313) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1143) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:243) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:266) at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:349) at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:320) ... Caused by: net.sf.hibernate.PropertyNotFoundException: Could not find a getter for ... in class ... -- With best regards, Alexey --------------------------------------------------------------------- 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 |