-->
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.  [ 8 posts ] 
Author Message
 Post subject: Eclipse Hibernate IDE... Blocked
PostPosted: Tue Jan 25, 2005 5:35 pm 
Newbie

Joined: Mon Aug 16, 2004 3:36 pm
Posts: 5
Hello List,

I recently installed Hibernate IDE tools for Eclipse. I setup JDBC connection and it was fine.

But while creating Hibernate Configuration File, after I click Next in the wizard, I am getting an exception.

I appreciate if someone could give some instructions to rectify it.

Thanks
Booshan.

Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]
java.lang.NoSuchMethodError: org.eclipse.core.runtime.IPath.toPortableString()Ljava/lang/String;
at org.hibernate.eclipse.console.wizards.NewConfigurationWizardPage.setVisible(NewConfigurationWizardPage.java:370)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:937)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:920)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:911)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:909)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:680)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:300)
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:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
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.ui.commands.ActionHandler.execute(ActionHandler.java:141)
at org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:889)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:930)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:548)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:496)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:261)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:740)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
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:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]
Unhandled event loop exception


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 5:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The Eclipse Plugins require Eclipse 3.1. M4 or greater


Top
 Profile  
 
 Post subject: Artifact Generation Error from Eclipse IDE
PostPosted: Wed Jan 26, 2005 1:58 pm 
Newbie

Joined: Mon Aug 16, 2004 3:36 pm
Posts: 5
Michel, Thanks for your reply. It helped a lot.

Hello List,

Now I am getting error while doing Hibernate Artifact Generation. Even though I have oracle driver in the classpath I am getting this error. The document asks to add the classpath while doing Console Configuration. But when I click add, there is no way I can select the Oracle jar. Appreiciate your help.

Thanks
Booshan

org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (oracle.jdbc.driver.OracleDriver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:195)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:155)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:205)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:187)
... 6 more


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 3:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
As per the docs your drivers need to be in some project managed by eclipse. External files is not yet supported - it will be in the future.

If your drivers are inside a project and you still can't select them then i would like to hear in more details on what and where they are since you can't select them - you should.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Error under artifact generation
PostPosted: Wed Jan 26, 2005 3:13 pm 
Newbie

Joined: Mon Aug 16, 2004 3:36 pm
Posts: 5
Thanks Max. That helped a bit.

While generating the Artifact, I got the following Out of Memory Error. I didn't find the trace though. I have 1GB of memory.

Thanks
Booshan

Error Jan 26, 2005 13:59:30.544 Error under artifact generation
java.lang.OutOfMemoryError

eclipse.buildId=I20041216-2000


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 3:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - haven't run into that my self either. (outofmemory errors doesn't normally provide stack traces - there isn't memory free ;)

What amount of memory have you told eclipse to use ?

Could it be that you are reverse engineering a complete database with *alot* of tables/columns ? You can limit that by setting the default schema/catagory in your hibernate.cfg.xml.

otherwise i would like to know if you could more into it and see what is causing you outofmemory.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: error loading driverClass
PostPosted: Wed Jan 26, 2005 10:30 pm 
Newbie

Joined: Wed Jan 26, 2005 10:17 pm
Posts: 8
When I had the JAR from postgres imported in he project , the console gave me this error
- error loading driverclass

In the console configuration it was not possible to select the jar, allthough it looked like it found something ( it automaticly had selected the org folder ).

Then I just copied the jar into one of the folders and selected that jar in the console configuration.

That seems to have solved this problem

Bastiaan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 27, 2005 3:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what was the difference between "having imported it" and "copying it into a folder" ?

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