-->
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.  [ 7 posts ] 
Author Message
 Post subject: An internal error occurred during "fetching children of
PostPosted: Tue Jan 10, 2006 8:43 pm 
Newbie

Joined: Tue Jan 10, 2006 8:31 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1

Full stack trace of any exception that occurs:

!ENTRY org.eclipse.core.runtime 4 2 2006-01-10 19:32:45.418
!MESSAGE An internal error occurred during: "Fetching children of test".
!STACK 0
java.lang.NoClassDefFoundError
at org.hibernate.cfg.Configuration.createMappings(Configuration.java:393)
at org.hibernate.cfg.Configuration.add(Configuration.java:385)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:426)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:481)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1443)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1411)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1392)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1368)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1322)
at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:208)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:155)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:131)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:112)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:98)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:19)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:70)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)


Name and version of the database you are using: Oracle 9i 9.2.0.1


I'm trying to use the Hibernate tools plug-in (12/12 build) and am trying to use the console. I've created a HIbernate Configuration but get the fetching children error. I've pointed to my hibernate.cfg.xml file and have set up the classpath to point to:

1. jar file with POJO classes in them
2. directory with the hbm.xml files in them
3. jar file with db driver (ojdbc14.jar)

If I remove #2 above I get the error stating that it can't find the first hbm.xml file referenced in my cfg.xml file. So, when I put that back I get the fetching children error. So I'm unsure which class files it can't find.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 6:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
are you 100% sure you don't have some hibernate releated jars in that classpath of the console configuration ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: An internal error occurred during "fetching children of
PostPosted: Wed Jan 11, 2006 9:32 am 
Newbie

Joined: Tue Jan 10, 2006 8:31 pm
Posts: 3
Yes - 100% sure. I do have the hibernate3.jar in my Projects properties which has to be there for me to run unit tests with hibernate. Can you turn up logging on the hibernate tools plug-in to see which class its looking for?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 10:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
well it is a java vm error ;(

maybe enable classloading logs for the jdk to figure out what it is breaking on ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 10:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i meant to say java *classloader* error.

...and the only thing createMappings do is to create a Mappings object which must work if the hibernate.jar is correct and not "duplicated" in the classpath.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 12:24 pm 
Newbie

Joined: Tue Jan 10, 2006 8:31 pm
Posts: 3
So do you have any other suggestions? I did a fresh install of eclipse 3.1.1 because I had myeclipse installed and thought it might be conflicting with it. Same error. Does the jboss ide have better support? I had previously had the hibernate console running months ago with that.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 11, 2006 1:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no, this should just work.

Only way i can help is if you send me the mappings/classfiles that causes this behavior. And if you do, please minimize it to the smallest possible set ;)

_________________
Max
Don't forget to rate


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