-->
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.  [ 3 posts ] 
Author Message
 Post subject: MalformedParameterizedTypeException moving to beta9 & 3.
PostPosted: Fri Apr 14, 2006 4:20 am 
Newbie

Joined: Thu Oct 06, 2005 5:36 am
Posts: 8
We are moving to Hibernate 3.2CR1 and Annotations 3.1 beta 9.

Somebody already experienced the following exception :

"
[ main] bernate.cfg.annotations.CollectionBinder [ INFO] (10:12:48.852) Mapping collection: ch.iris.tungsten.model.attributeranges.RatingSystem.possibleRatings -> RATING

java.lang.reflect.MalformedParameterizedTypeException
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:42)
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:35)
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:77)
at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:86)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:122)
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:67)
at java.lang.reflect.Field.getGenericType(Field.java:222)
at org.hibernate.reflection.java.JavaXClass.getDeclaredFieldProperties(JavaXClass.java:66)
at org.hibernate.reflection.java.JavaXClass.getDeclaredProperties(JavaXClass.java:85)
at org.hibernate.validator.ClassValidator.initValidator(ClassValidator.java:173)
at org.hibernate.validator.ClassValidator.<init>(ClassValidator.java:103)
at org.hibernate.validator.ClassValidator.<init>(ClassValidator.java:91)
at org.hibernate.validator.ClassValidator.<init>(ClassValidator.java:85)
at org.hibernate.validator.ClassValidator.<init>(ClassValidator.java:77)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:267)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1172)
at ch.iris.tungsten.common.hibernate.HibernateUtilities.configure(HibernateUtilities.java:149)
at
...
"

@Entity
@Table(name = "RATING_SYSTEM")
public class RatingSystem implements Comparable
{

....
@OneToMany(mappedBy = "ratingSystem", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private Set<Rating> possibleRatings = null;

}


Cheers in advance


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 9:11 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Can you provide a minimal runnable testcase that reproduce the problem and post it to JIRA?
Thanks.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 1:16 pm 
Newbie

Joined: Thu Oct 06, 2005 5:36 am
Posts: 8
Sorry for not answering. I've tried with a subset of the classes and the error is not there. It's actually not the classes I pasted. I can't send you the whole set of classes (@ issues), I'll try next week but we're a bit overloaded.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.