-->
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: @TypeDefs & ArrayStoreException
PostPosted: Tue Sep 05, 2006 3:33 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
Hibernate version:3.2CR2, Annotations 3.2CD1

Hi all

i have an error if i use the @TypeDefs Annotation.

Code:
@TypeDefs( {
      @TypeDef(name = "UnterrichtsDauerExtended", typeClass = GenericEnumUserType.class, parameters = {
            @Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.UnterrichtsDauerExtended"),
            @Parameter(name = "identifierMethod", value = "getValue"),
            @Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
      @TypeDef(name = "GruppenGroesse", typeClass = GenericEnumUserType.class, parameters = {
            @Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.GruppenGroesse"),
            @Parameter(name = "identifierMethod", value = "getValue"),
            @Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
      @TypeDef(name = "TrainingsTypeExtended", typeClass = GenericEnumUserType.class, parameters = {
            @Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.TrainingsTypeExtended"),
            @Parameter(name = "identifierMethod", value = "getValue"),
            @Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
      @TypeDef(name = "WettkampfKategorie", typeClass = GenericEnumUserType.class, parameters = {
            @Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.WettkampfKategorie"),
            @Parameter(name = "identifierMethod", value = "getValue"),
            @Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
      @TypeDef(name = "KursArt", typeClass = GenericEnumUserType.class, parameters = {
            @Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.KursArt"),
            @Parameter(name = "identifierMethod", value = "getValue"),
            @Parameter(name = "valueOfMethod", value = "getInstanceByValue") }) })
@Entity
@DiscriminatorValue("1")
@Table(name = "TKURS")
public class KursNutzergruppe1 extends najsre7.model.Kurs implements java.io.Serializable {



The strange thing is, that it works locally, but if i deploy the application on WAS 6.1 the following error occurs:

Code:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSessionFactory' defined in class path resource [applicationContext-sessionFactory_re7.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException
Caused by: java.lang.ArrayStoreException
        at com.ibm.oti.reflect.AnnotationHelper.getReturnValueFromEntry(Native Method)
        at com.ibm.oti.reflect.AnnotationHelper.access$000(AnnotationHelper.java:14)
        at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.invoke(AnnotationHelper.java:104)
        at $Proxy261.value(Unknown Source)
        at org.hibernate.cfg.AnnotationBinder.bindTypeDefs(AnnotationBinder.java:872)
        at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:405)



Could somebody help me?
Angela


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 10:15 am 
Beginner
Beginner

Joined: Mon Jan 09, 2006 3:05 pm
Posts: 24
I believe this is a bug in IBM's jvm. See: http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13802952&cat=10&thread=112543&treeDisplayType=threadmode1&forum=367#13802952


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 10:25 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
keenan wrote:


yes I already found this this page ;-) thanks


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.