facebook

[Closed] 4.1M2 Not generating Hibernate abstract base class

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 8 posts - 31 through 38 (of 38 total)
  • Author
    Posts
  • #244518 Reply

    Are there any news on this problem? I can´t generate the XMLs at the moment, which is a problem (I have to code them by hand!).

    TIA Bernd

    #244519 Reply

    Brian Fernandes
    Moderator

    Bernd,

    Both the other users in this thread have resolved their issues locally.

    Could you please answer all questions in Posting Guidelines, including error logs so that we can take on your issue separately.

    Best,
    Brian.

    #244521 Reply

    Brian Fernandes
    Moderator

    Aka, thank you for posting your findings here – I’m sure it will help other users and saved us a lot of unnecessary debugging.

    Sprior, I should have asked you about whether you installed clean before, sorry for the inconvenience caused.
    Yes, installing 4.1M2 over your existing version could very easily have caused a libary mixup and that is the reason you had issues with the generation.
    Please note that 4.1M2 cannot be upgraded and you will have to reinstall clean when the final version of 4.1 is released (only milestone versions cannot be upgraded)

    You can use a new eclipse + MyEclipse install but continue to specify your existing workspace and all your settings will be still be maintained as they are stored in the workspace, not in the eclipse installation.
    If you still experience problems with generation then I would suggest using a new workspace as well.

    Best regards,
    Brian.

    #244524 Reply

    Ok, thank you for your assistance.

    Problem: Databse Explorer does not genertae Hibernate mapping.
    Env: mySql 5.0, Hibernate 3.1

    I did install M2 over the existing M1 and would be glad if I must not reinstall neither Eclipse nor ME.

    brgds Bernd

    *** Date: Fri Jan 13 13:36:00 CET 2006

    *** System properties:
    OS=Windows2000
    OS version=5.0
    Java version=1.5.0_05

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.200 M2
    Build id: 20051205-4.1-Milestone2

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Platform

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse RCP

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Java Development Tools

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Plug-in Development Environment

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Project SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    D:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    1420_3c4
    -vm
    D:\Programme\Java\jre1.5.0_05\bin\javaw.exe

    !SESSION 2006-01-13 13:33:59.779 ———————————————–
    eclipse.buildId=M20050929-0840
    java.version=1.5.0_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY com.genuitec.eclipse.hibernate 1 0 2006-01-13 13:38:51.622
    !MESSAGE Error generating artifacts
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:359)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard.performFinish(NewHibernateMappingWizard.java:331)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at com.genuitec.eclipse.hibernate.action.NewHibernateMappingAction.run(NewHibernateMappingAction.java:42)
    at com.genuitec.eclipse.hibernate.action.NewHibernateMappingAction.run(NewHibernateMappingAction.java:50)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    Caused by: java.lang.IncompatibleClassChangeError
    at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:109)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard.buildConfiguration(NewHibernateMappingWizard.java:358)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard.access$4(NewHibernateMappingWizard.java:350)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard$1.execute(NewHibernateMappingWizard.java:257)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    … 39 more
    Root exception:
    java.lang.IncompatibleClassChangeError
    at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:109)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard.buildConfiguration(NewHibernateMappingWizard.java:358)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard.access$4(NewHibernateMappingWizard.java:350)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard$1.execute(NewHibernateMappingWizard.java:257)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
    at com.genuitec.eclipse.hibernate.wizards.NewHibernateMappingWizard.performFinish(NewHibernateMappingWizard.java:331)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at com.genuitec.eclipse.hibernate.action.NewHibernateMappingAction.run(NewHibernateMappingAction.java:42)
    at com.genuitec.eclipse.hibernate.action.NewHibernateMappingAction.run(NewHibernateMappingAction.java:50)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    #244525 Reply

    Brian Fernandes
    Moderator

    Bernd,

    I’m afraid the path of least pain is to at least install MyEclipse 4.1M2 to a fresh location and setup your existing eclipse installation to use that. As I mentioned in the previous post, the libary files get mixed up if you overwrite an installation and this is never recommended and you could see issues in other areas of MyEclipse as well. Your issue is exactly the same issue that sprior experienced.

    I would recommend a fresh eclipse installation as well to be safe, but you can point it to your existing workspace and all your settings will be maintained.
    If you need further assistance, feel free to ask.

    Best,
    Brian.

    #244541 Reply

    Ok, this was an easy one 🙂

    – Renamed myEclipse dir to myEclipseOld
    – Reinstalled myEclipse

    Generation works as expected.

    Thanks a lot
    Bernd

    #244544 Reply

    Brian Fernandes
    Moderator

    Glad it does 🙂

    Best,
    Brian.

    #244555 Reply

    Steve Prior
    Member

    Yes, I tried to do an uninstall/reinstall of just MyEclipse, but my Eclipse installation wasn’t left well after that – I think the subclipse plugin had also installed in the MyEclipse instead of the regular plugin directory. I then uninstalled MyEclipse and eclipse, did a fresh install of everything, and I’m working now. I’ve run into a couple of other minor issues, but I’ll start a new thread for that.

    Unless I missed one, there should be a warning in the release notes if not that actual setup program that the Milestone needs to be done in a fresh install. The fact that the previous preview was done as an Eclipse update site certainly gave me the idea that this could be done as an in place upgrade. As a result I (and others including yourselves) have wasted the better parrt of a week chasing after this when my goal for the week was to learn Hibernate.

Viewing 8 posts - 31 through 38 (of 38 total)
Reply To: [Closed] 4.1M2 Not generating Hibernate abstract base class

You must be logged in to post in the forum log in