-->
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.  [ 15 posts ] 
Author Message
 Post subject: java.lang.InternalError: erroneous handlers
PostPosted: Thu Oct 13, 2005 3:48 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
[Content deleted on users request]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 3:54 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
where is the Error?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 4:02 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
I am using the following code to create a session factory

Code:
public static final SessionFactory sessionFactory;   
   /*
    *
    */
   static
   {
      try
      {
         //Create the session factory from hibernate.cfg.xml
         sessionFactory = new Configuration().configure().buildSessionFactory();
      }
      catch(Throwable e)
      {
         _trc.error("Initial SessionFactory creation failed!  " + e);
         throw new ExceptionInInitializerError(e);
      }
   }


So when hibernate is initializing and trying to buildSessionFactory it fails with the error

java.lang.InternalError: erroneous handlers.

I am not sure where to begin debugging and what properties I have not set in the hinernate.hbm.xml. Please advise.

thank you

Atul


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 4:06 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
you can call getMessage() on the Error but I guarantee this is not a problem w/ hibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 4:15 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
The getMessage() only has erroneous handlers. When hibernate initializes and reads in by default all the properties from hibernate.hbm.xml, and then use
Code:
sessionFactory = new Configuration().configure().buildSessionFactory();


Does the new Configuration object point to the object loaded during hibernate initialization?

This is definitely a hibernate issue, because it errors out on the code line above.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 4:49 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
there is a problem w/ the JVM. reinstall java.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 5:25 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
Reinstalling the JVM did not help! I am using JDK 1.4.2_09 for compiling and JDK 1.4.2.04 under BEA which is what WLS 8.1.3 comes with. Could that be a problem?

I was unable to find the _04 JDK.

thanks!

Atul


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 5:34 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
are you saying that you reinstalled the software used to compile you java ... and/or the software used to run the java? I don't think the first option will get you far.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 6:12 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
I am using Eclipse 3.1. I redirected Eclipse to use the new JDK install directory after uninstalling all JVM instances. At this point I am not sure what else I can try.

Thanks!

Atul


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 6:18 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
it's not going to make a difference if the problem is occurring in the JVM in which your program is running. Are you or are you not still running your program in the same JVM? for now, forget about what you are compiling the program w/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 6:21 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
and you better now quit on me!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 3:56 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
thank you Dennis. It did really help to exchange emails with you.

It was not the JVM, but a mssing JAR file.

Thanks again!

Atul


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 4:11 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
hold on now ;-) what jar was it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 11:39 am 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
It was antlr. Looks like the exception got lost. I would have expected a NoClassFound error


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 11:40 am 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
It was antlr. Looks like the exception got lost. I would have expected a NoClassFound error


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