-->
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: Using annotations on iSeries (possible bug?)
PostPosted: Tue Sep 19, 2006 11:01 am 
Newbie

Joined: Mon Mar 07, 2005 7:25 am
Posts: 10
We're having serious problems using Hibernate 3.2 plus Annotations 3.2CR2 on iSeries AS400.

When using annotated entities, the SessionFactory refuses to start up, with the following exception:
Code:
java.lang.NullPointerException                                                                                                     
at java.lang.ClassLoader.defineClass(ClassLoader.java:651)                                                                         
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:170)                                                         
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)                                     
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)                                             
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1231)                                             
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)                                             
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:350)                                                                   
at org.hibernate.cfg.AnnotationBinder.bindDefaults(AnnotationBinder.java:187)                                                     
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:251)                                   
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1205)


We've also noticed the following:
- The application does work on a Windows machine.
- When using xml mappings instead of annotations, it works on iSeries as well.
- Annotations in itself work on the iSeries, we've done a separate test on this (JVM 1.5.0_03-b07).

I cannot seem to correlate line number 187 with anything that makes sense in AnnotationBinder.java. I have no idea why the line numbers wouldn't match, but I guess that's a separate issue.

I'm seriously thinking we're onto a bug here, any help would be greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 19, 2006 12:38 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This definitively looks like a bug in the way the VM load things, I cannot call loadClassInternal myself, so it is triggered by the VM somehow.

Which VM are you using, Sun's? IBM's

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 9:06 am 
Newbie

Joined: Mon Mar 07, 2005 7:25 am
Posts: 10
JVM: IBM 1.5.0_03-b07 (this is an iSeries machine)

We're currently updating to a JVM that's a bit more recent, I will update here if it solves the problem.


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.