-->
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: console hibernate tools : NullpointerException
PostPosted: Mon Oct 16, 2006 10:03 am 
Newbie

Joined: Mon Oct 16, 2006 7:23 am
Posts: 4
when I want tu use an hibernate console i have the following message :
Error while fetching children
Motif : java.lang.NullPOinterException ("Motif" means "Reason" in French)

The path of build is in the ClassPath otherwise I have the following motif
MappingNotFoundExeception : ressource toto.hbm.xml is not found

Thks

I use eclipse 3.1
and
hibernatetools-3.1.0.beta5.zip


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 10:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please show the full stack trace.


and is toto.hbm.xml available at <some dir in classpath>/toto.hbm.xml ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 11:11 am 
Newbie

Joined: Mon Oct 16, 2006 7:23 am
Posts: 4
toto.hbm.xml is at the root of my eclipse project and I have added my eclipse project to the classpath of the console of Hibernate tools

detail trace is :
Erreur 2006-10-16 17:04:08.894 java.lang.NullPointerException
java.lang.NullPointerException
at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getRawLocationFile(ClassLoaderHelper.java:91)
at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getRawLocationURL(ClassLoaderHelper.java:83)
at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getRawLocationsURLForResources(ClassLoaderHelper.java:117)
at org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseConsoleConfigurationPreferences.java:81)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:126)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:115)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:19)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:69)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 11:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and this is with htools 3.2.b8 ?

please report it in our jira - the issue is that you have src and classes in the root directory (which is one of the defaults I don't like about eclipse)

the workaround is to use proper seperation of src and class files.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 12:22 pm 
Newbie

Joined: Mon Oct 16, 2006 7:23 am
Posts: 4
I have created a new Output for eclipse project (independant of sources) and referenced it in console configuration.
All is Ok

Thank you very much for yours very quickly and good solutions


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 12:23 pm 
Newbie

Joined: Mon Oct 16, 2006 7:23 am
Posts: 4
I forgot to ask you : what is jira ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 12:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
read the instructions on how to ask for help (in the text box when you start a new topic)

_________________
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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.