facebook

Unable to Add Mappings to Hibernate 3.2 Configuration

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

    Stephen Wick
    Member

    I am trying to create a hibernate.cfg.xml using the “MyEclipse Hibernate Config Editor” in MyEclipse 6.6.

    I get the following error in eclipse every time I try to add an entry to the Mappings panel…

    Is there any way to fix this, or what am I doing wrong?

    eclipse.buildId=M20080221-1800
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    Error
    Tue Oct 13 13:24:28 CDT 2009
    Problems occurred when invoking code from plug-in: “org.eclipse.jface”.

    java.lang.NullPointerException
    at com.genuitec.eclipse.hibernate.ui.MappingSelectionValidation.validate(MappingSelectionValidation.java:62)
    at org.eclipse.ui.dialogs.ElementTreeSelectionDialog.updateOKStatus(ElementTreeSelectionDialog.java:200)
    at org.eclipse.ui.dialogs.ElementTreeSelectionDialog$2.selectionChanged(ElementTreeSelectionDialog.java:299)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:857)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2047)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
    at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at org.eclipse.ui.dialogs.ElementTreeSelectionDialog.open(ElementTreeSelectionDialog.java:220)
    at com.genuitec.eclipse.hibernate.ui.MappingsSectionPart.addItem(MappingsSectionPart.java:209)
    at com.genuitec.eclipse.hibernate.ui.TableSectionPart$1.widgetSelected(TableSectionPart.java:90)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

    #303240 Reply

    stephen.wick,
    Can you give some more information?
    1. What are your installation details? You can get them from MyEclipse > Installation Summary > Installation Details.
    2. Are you using any 3rd party plug-ins?
    3. Can you try using the -clean. Please refer to the following link https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Unable to Add Mappings to Hibernate 3.2 Configuration

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