-->
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.  [ 54 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Unable to run tools 3.0
PostPosted: Mon Jan 31, 2005 11:54 am 
Regular
Regular

Joined: Wed Jan 19, 2005 4:52 pm
Posts: 61
Location: Kansas City, USA
Hibernate v 3.0 and hibernate tools v 3.0

I am unable to build a config file using the tool. It pulls up the wizard but when I click finish it just sits there, no error message, nothing. Any ideas on what I may be missing. I have JBoss ide 1.4 installed


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 8:01 am 
Newbie

Joined: Tue Feb 01, 2005 6:38 am
Posts: 3
i have the same problem.

I have installed Hibernate Tools and Eclipse 3.1 M4 (fresh install) - no need for JBoss IDE 1.4 as i've no mapping files to edit yet.

Hibernate just hangs when trying to generate the artifacts "Generating Articfacts for HTDB2 reading JDBC Metadata". Checking Windows Crash Manager reveals that its still running but not using up any process time.

I'm using Oracle DB2 universal Drivers (as standard). Everything works fine using middlegen and hibernate on Eclipse 3.0 though and i'm very happy with Hibernate thus far - good work ladies.

Cheers, Shaun.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 8:50 am 
Beginner
Beginner

Joined: Tue Feb 01, 2005 8:38 am
Posts: 38
I'm also having the same problem.

I'm running Eclipse version: 3.1.0 (Build id: 200408122000) with version 3.0alpha1 of Hibernate Tools. I get the same problem with the Hibernate Configuration File wizard whereby the application just does nothing after I click 'next' on the first screen.

Has anyone else had this problem and managed to resolve it?

On checking the Eclipse error log after trying to run the tool I see that there is the following entry...



!ENTRY org.eclipse.ui 4 0 Feb 01, 2005 12:30:50.417
!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.NewConfigurationWizardPage.setVisible(NewConfigurationWizardPage.java:370)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1024)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1007)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:997)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:995)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:338)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:537)
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:693)
at org.eclipse.jface.window.Window.open(Window.java:672)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:172)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:979)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:141)
at org.eclipse.ui.internal.commands.Command.execute(Command.java:135)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:476)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:899)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:940)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:554)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:501)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:267)
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.Tree.WM_CHAR(Tree.java:1372)
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:1435)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
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)


Cheers :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 11:58 am 
Newbie

Joined: Tue Feb 01, 2005 6:38 am
Posts: 3
Not sure its the same problem to be honest.

Just tried yet another fresh install of Eclipse 3.1 M4 plus Hibernate Tools 3.0 Alpha. Can generate hibernate.cfg.xml, can also create the console configuration. I added the schema name property to hibernate.cfg.xml (as i though that might help) and tweaked the Eclipse mem startup args (as I thought that might help also) but still encountering the exact same problem. I'd like to see whats happening in the console but Eclipse locks up and thus i have to terminate via Windows Crash Manager.

Here's my config,xml:

<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.username">db2admin</property>
<property name="hibernate.connection.password">db2admin</property>
<property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="hibernate.connection.url">jdbc:db2://db2server:50000/DEVEL</property>
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="hibernate.default_schema">MySchema</property>
</session-factory>
</hibernate-configuration>

I notice some of the posts are being answered but not mine unfortunately, go on lads...give me a clue at least ;-P

Cheers, shaun.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 12:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
java.lang.NoSuchMethodError: org.eclipse.core.runtime.IPath.toPortableString()Ljava/lang/String;

this error is definitly because you are not using Eclipse 3.1M4.

But you say this is not your error ?
What error does the error log contains in your case ?

Could it be that DB2 is insanely slow to report on jdbc meta data and it just takes a long time ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 12:43 pm 
Regular
Regular

Joined: Wed Jan 19, 2005 4:52 pm
Posts: 61
Location: Kansas City, USA
Is there any explanation on why when I try to create a cfg file it just hangs? Since it hangs I created the config file manually then attempted to create the Hibernate console, this gets created but when I attempt to create a session factory via the console I get this error: Problem while executing CreateSessionFactory(org.hibernate.MappingException: Resource:com/nationsholding/xops/common/domain/Address/Address.hbm.xml not found). This file is there and was added to the mapping files via the configuration console tool.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 12:45 pm 
Regular
Regular

Joined: Wed Jan 19, 2005 4:52 pm
Posts: 61
Location: Kansas City, USA
here is my error dump:

org.hibernate.MappingException: Resource: com/nationsholding/xOps/common/domain/Address/Address.hbm.xml not found
at org.hibernate.cfg.Configuration.addResource(Configuration.java:439)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1369)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1341)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1323)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1290)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1252)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:151)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:128)
at org.hibernate.eclipse.console.actions.BuildSessionFactoryAction.doRun(BuildSessionFactoryAction.java:50)
at org.hibernate.eclipse.console.actions.ConsoleConfigurationBasedAction.run(ConsoleConfigurationBasedAction.java:47)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:166)
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:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:186)
at org.eclipse.core.launcher.Main.run(Main.java:647)
at org.eclipse.core.launcher.Main.main(Main.java:631)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you don't need to add mapping files when you have them listed in your hibernate.cfg.xml.

And if you have them in hibernate.cfg.xml you need to add their root directory/jar to the classpath - otherwise I cant locate them.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 1:20 pm 
Beginner
Beginner

Joined: Tue Feb 01, 2005 8:38 am
Posts: 38
I installed 3.1M4 and JBoss IDE 1.4.1 and got a bit further. I managed to generate the config file and the POJO classes but when I try to create a SessionFactory using the Hibernate Console I get this error...

Problem while executing Create SessionFactory(org.hibernate.MappingException: Could not determine type for: java.io.InputStream, for columns: [org.hibernate.mapping.Column(MESSAGE)])

Reason:
org.hibernate.MappingException: Could not determine type for: java.io.InputStream, for columns: [org.hibernate.mapping.Column(MESSAGE)]


Can you shed any light on this?

Cheers :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 1:51 pm 
Newbie

Joined: Tue Feb 01, 2005 6:38 am
Posts: 3
I give up.

I'll wait till the documentation is up to scratch - still a good product though.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 4:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
shaunmenzies - you haven't yet told me what your error log contains...so hard to help you ....no documentation will help with that.

scorlog - I would like to get the stack trace for that error ...and if possible show me your hbm.xml file.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 4:44 pm 
Regular
Regular

Joined: Wed Jan 19, 2005 4:52 pm
Posts: 61
Location: Kansas City, USA
Now I am getting an error when I try to generate a SessionFactory.

org.hibernate.MappingException: component class not found: com.nationsholding.xOps.common.domain.Communication.AttachmentSecurityItemXrefKey
at org.hibernate.mapping.Component.getComponentClass(Component.java:96)
at org.hibernate.mapping.Component.getType(Component.java:161)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:207)
at org.hibernate.mapping.RootClass.validate(RootClass.java:186)
at org.hibernate.cfg.Configuration.validate(Configuration.java:791)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1025)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:221)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
at org.hibernate.console.ConsoleConfiguration.initSessionFactory(ConsoleConfiguration.java:219)
at org.hibernate.eclipse.console.actions.BuildSessionFactoryAction.doRun(BuildSessionFactoryAction.java:51)
at org.hibernate.eclipse.console.actions.ConsoleConfigurationBasedAction.run(ConsoleConfigurationBasedAction.java:47)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:166)
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:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:186)
at org.eclipse.core.launcher.Main.run(Main.java:647)
at org.eclipse.core.launcher.Main.main(Main.java:631)
Caused by: java.lang.ClassNotFoundException: com.nationsholding.xOps.common.domain.Communication.AttachmentSecurityItemXrefKey
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(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103)
at org.hibernate.mapping.Component.getComponentClass(Component.java:93)
... 33 more


The class is there com.nationsholding.xOps.common.domain.Communication.AttachmentSecurityItemXrefKey so I dont know if I am having a classloder issue, if that is is what can I do? Kinda Lost, thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 4:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
is that class in your classpath ?
Does the class uses some library that you also need to put in the classpath ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 5:07 pm 
Regular
Regular

Joined: Wed Jan 19, 2005 4:52 pm
Posts: 61
Location: Kansas City, USA
it is in the classpath, it is a class file that was autogenerated by myEclipse tools when I created the hibernate mappings for a table. Here is my hbm.xml that is calling the class.

<hibernate-mapping package="com.nationsholding.xOps.common.domain.Communication">

<class name="AttachmentSecurityItemXref" table="attachment_security_item_xref">
<composite-id name="id" class="AttachmentSecurityItemXrefKey">
<key-many-to-one name="attachment" column="attachment_id" class="Attachment"/>
<key-many-to-one name="securityItem" column="security_item_id" class="com.nationsholding.xOps.common.domain.Security.SecurityItem"/>
</composite-id>

<property name="rowguid" column="rowguid" type="java.lang.String" not-null="true" />
</class>

</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 5:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and how does SecurityItem look like ?

_________________
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.  [ 54 posts ]  Go to page 1, 2, 3, 4  Next

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.