-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Validator problem with List<Object[]> method
PostPosted: Fri Oct 19, 2007 5:14 pm 
Newbie

Joined: Fri Oct 29, 2004 10:29 am
Posts: 4
Using Hibernate 3.2.x and either Annotations 3.2.x or 3.3.0GA I get the following exception upon configuration. I grabbed the source and discovered it's due to a method in my entity with a return type of
ArrayList<Object[]>, which commons-annotations seems to choke on. FWIW, it's not a getter of a mapped property (it's a synthetic getter.)

Is this a known issue? If not, I'll trim it down to a test case and create a bug report.

Thanks,
-Clint

java.lang.IllegalArgumentException: No PropertyTypeExtractor available for type void
at org.hibernate.annotations.common.reflection.java.JavaReflectionManager.toXType(JavaReflectionManager.java:164)^M
at org.hibernate.annotations.common.reflection.java.JavaXMethod.create(JavaXMethod.java:18)
at org.hibernate.annotations.common.reflection.java.JavaReflectionManager.getXMethod(JavaReflectionManager.java:128)
at org.hibernate.annotations.common.reflection.java.JavaXClass.getDeclaredMethods(JavaXClass.java:114)
at org.hibernate.validator.ClassValidator.initValidator(ClassValidator.java:214)
at org.hibernate.validator.ClassValidator.<init>(ClassValidator.java:133)
at org.hibernate.validator.event.ValidateEventListener.initialize(ValidateEventListener.java:91)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:356)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1304)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.jav
a


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 20, 2007 11:44 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't think it's a known issue, I would appreciate a test case in a JIRA issue.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Jira issue created
PostPosted: Mon Oct 22, 2007 7:25 pm 
Newbie

Joined: Fri Oct 29, 2004 10:29 am
Posts: 4
emmanuel wrote:
I don't think it's a known issue, I would appreciate a test case in a JIRA issue.


This is now ANN-668.

http://opensource.atlassian.com/project ... se/ANN-668

It seems to be specific to having a method that returns ArrayList<Object[]> rather than the almost-always-more-correct List<Object[]>. The latter doesn't trigger the exception.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 2:53 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Thanks

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.