-->
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: Hibernate Tools
PostPosted: Thu May 05, 2005 7:02 pm 
Newbie

Joined: Thu May 05, 2005 6:58 pm
Posts: 3
I have the latest htools and my eclipse is updated with latest updates.
I'm getting a method not found, seems to be Eclipse related.
What I try to do ? I try to run the Artifact Generator...

Hibernate version:3.0.2

Full stack trace of any exception that occurs:
!ENTRY org.eclipse.ui 4 0 May 05, 2005 17:55:42.165
!MESSAGE org.eclipse.core.runtime.IPath.toPortableString()Ljava/lang/String;
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.core.runtime.IPath.toPortableString()Ljava/lang/String;
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.performFinish(ArtifactGeneratorWizard.java:79)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2773)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2432)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2773)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2432)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)


Name and version of the database you are using:Oracle 8

The generated SQL (show_sql=true):
N/A


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 7:13 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you have worng version eclipse (probably)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 11:55 pm 
Newbie

Joined: Thu May 05, 2005 6:58 pm
Posts: 3
I have the latest Elipse (3.0.2) anyone else faces this problem ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 2:50 am 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
The IPath.toPortableString():String was added in the 3.1 series.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 5:18 am 
Newbie

Joined: Fri May 06, 2005 4:57 am
Posts: 1
I use eclipse 3.1 ,hibernate 3.0.2 and hibernatetool .
When I try to generate mapping files it displays

Error under Artifact Generation

Reason:
org.hibernate.HibernateException:problem parsing
configurationc:\java\workspace4\myproj\hibernate.cfg.xml

I have .jar files from /lib of hibernate and JDBC Driver in my class path.

Please give me some suggestions.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 9:58 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you have wrong hibernate.cfg.xml


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 10:33 am 
Newbie

Joined: Thu May 05, 2005 6:58 pm
Posts: 3
alexandrupopescu wrote:
The IPath.toPortableString():String was added in the 3.1 series.


Hm... Seems that hibernate calls *directly* that method...

java.lang.NoSuchMethodError: org.eclipse.core.runtime.IPath.toPortableString()Ljava/lang/String;
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.performFinish(ArtifactGeneratorWizard.java:79)


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.