-->
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: Hibernate Eclipse Tools 3.1.0a5: "internal error"
PostPosted: Sat Oct 01, 2005 7:49 pm 
Beginner
Beginner

Joined: Sun Jul 31, 2005 1:23 pm
Posts: 35
I'm trying to use the Hibernate Eclipse Tools 3.1.0a5 and I'm getting the following error:

An internal error occurred during: "Fetching children of <project>"

This occurs during basic activities such as during setup and when I try to click the plus sign on the project in the hibernate perspective.

I am guessing these Eclipse tools are simply unstable. Is there alternative that will let me test out HQL queries?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 01, 2005 10:04 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
There isn't alternative for visual hql - you can only write java code

Your error is probably because your *cfg.xml (or *.properties) or any *hbm.xml are incorrect

Hibernate tools are unstable yet, but it is cool


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 01, 2005 10:34 pm 
Beginner
Beginner

Joined: Sun Jul 31, 2005 1:23 pm
Posts: 35
snpesnpe wrote:
There isn't alternative for visual hql - you can only write java code

Your error is probably because your *cfg.xml (or *.properties) or any *hbm.xml are incorrect

Hibernate tools are unstable yet, but it is cool


Cool?!?! The damn thing has not done anything but give me a big headache!

I need tools that actually work to get my project done.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 3:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
take it easy.

An unstable tool would crash and exit the vm when it encounters an error. The tools doesn't!

The tool reports that an error has occurred when starting hibernate (as will also occur if you your self started hibernate with the same configuration that you have given the tools).

I know that I need to make the dialog more explicit stating which configuration exception occurred but for now the exception trace is only shown in its full glory in the Error Log.

It is probably because of wrong paths in your cfg.xml, missing classpaths for jdbc drivers or resource mappings or simply that the url are wrong.

I put pride in making the tools as stable and helpful as possible, but to do that positive input and feedback is needed from you guys for me to get info about which situations I possibly haven't covered yet. And showing the underlying exception message directly in the dialog is one of them which will be handled in the upcoming release.

Peace,
Max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 3:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
...and any input/ideas on how the tool can be better safeguarded against people configuring hibernate.cfg.xml, hibernate.properties wrongly is welcome etc.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 3:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
..and if people see crashes then please report them (I haven't had any crashes for weeks so....)

(and an message dialog about a missing or non-complete mapping is not a crash)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 4:23 am 
Beginner
Beginner

Joined: Sun Jul 31, 2005 1:23 pm
Posts: 35
max wrote:
take it easy.

An unstable tool would crash and exit the vm when it encounters an error. The tools doesn't!

The tool reports that an error has occurred when starting hibernate (as will also occur if you your self started hibernate with the same configuration that you have given the tools).


That's not true. My web app is using the exact same config files (.hbm.xml, .cfg.xml, and .properties) and it works and uses Hibernate without error. I'm just hoping that the Hibernate Eclipse tools will give me a platform to test out HQL queries quickly.

I'm sorry, Max. I'm not trying to bash the developers or the tools. I really do appreciate the genuine response on a Saturday and the helpful attitude.

Is there anything I can do to debug/diagnose further? I haven't any clues to go on.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 5:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
look in the Error Log view.

it should list the exception.

if your web app uses datasources then that might be the issues since that datasource obviously isnt installed in eclipse (would be nice if i somehow could that)

use a normal connection config for testing in the tools.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 11:40 am 
Beginner
Beginner

Joined: Sun Jul 31, 2005 1:23 pm
Posts: 35
max wrote:
look in the Error Log view..


Ah, that helps:

Quote:
org.hibernate.MappingException: Resource: com/kurt/auenrec/GenericUser.hbm.xml not found


I can't imagine why it can't find that. The file is there and Hibernate sure finds it when I run my application.

I reinstalled with Eclipse 3.1.1 and the Hibernate tools won't even load. I see the following cause in the error log:

Quote:
Unable to find feature.xml in directory: c:\Program Files\eclipse\features\org.hibernate.eclipse.feature_3.1.0.alpha5.jar


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 11:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
It cannot find the file because it is not on the classpath of the console configuration.

You need to add the build directory of you classes and mappings.

your eclipse error is because that file apparently has been deleted ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 12:11 pm 
Beginner
Beginner

Joined: Sun Jul 31, 2005 1:23 pm
Posts: 35
max wrote:
your eclipse error is because that file apparently has been deleted ?


Actually the feature.xml file is there. Have you tested at all against Eclipse 3.1.1? I suspect there is a simple incompatibility. Maybe there is a nighly build that works with 3.1.1?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 12:12 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
AFAIK i run on 3.1.1

but anyway - didnt it run fine before ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 12:28 pm 
Beginner
Beginner

Joined: Sun Jul 31, 2005 1:23 pm
Posts: 35
max wrote:
AFAIK i run on 3.1.1

but anyway - didnt it run fine before ?


Yes, it made it farther before. That was on Eclipse 3.1

Are you sure you are running 3.1.1? That just came out last Thursday 9/29. Do Help -> About


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 12:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm..surprise to me.

I'll upgrade to 3.1.1 (but cant belive if that should change stuff)

btw. I have just added an error dialog that shows the exceptions (so should be easier to figure why it complains)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 02, 2005 1:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
fyi - tools works fine on 3.1.1 when running on my machine ;)

_________________
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.  [ 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.