8 Replies Latest reply on Feb 21, 2006 5:33 AM by wang shoutao

    Can not open HQL editor

    wang shoutao Newbie

      When I right click the configeration, both "Create SessionFactory" and "HQL ScartchPad" are disabled. Sometimes "Create SessionFactory" replace by "Close SessionFactory" but still both items are diabled.

      Thanks.

        • 1. Re: Can not open HQL editor
          Max Rydahl Andersen Master

          any errors in the Error Log view ?

          • 3. Re: Can not open HQL editor
            Max Rydahl Andersen Master

            so maybe they explain why it does not work ?

            • 4. Re: Can not open HQL editor
              wang shoutao Newbie

              java.lang.NullPointerException
              at org.hibernate.eclipse.mapper.model.RevEngColumnAdapter.notifyChanged(RevEngColumnAdapter.java:40)
              at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
              at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyStructureChanged(XMLModelNotifierImpl.java:361)
              at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.structureChanged(XMLModelNotifierImpl.java:423)
              at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.childReplaced(XMLModelNotifierImpl.java:157)
              at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.childReplaced(DOMModelImpl.java:190)
              at org.eclipse.wst.xml.core.internal.document.NodeContainer.notifyChildReplaced(NodeContainer.java:357)
              at org.eclipse.wst.xml.core.internal.document.NodeContainer.insertBefore(NodeContainer.java:298)
              at org.eclipse.wst.xml.core.internal.document.ElementImpl.insertBefore(ElementImpl.java:684)
              at org.eclipse.wst.xml.core.internal.document.NodeContainer.appendChild(NodeContainer.java:129)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeContentHelper.setElementNodeValue(TreeContentHelper.java:316)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeContentHelper.setNodeValue(TreeContentHelper.java:260)
              at org.eclipse.wst.xml.ui.internal.tabletree.XMLTreeExtension$MyCellModifier.modify(XMLTreeExtension.java:157)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeExtension$EditManager.applyCellEditorValue(TreeExtension.java:428)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeExtension$EditManager$CellEditorState.applyEditorValue(TreeExtension.java:517)
              at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:304)
              at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
              at org.eclipse.core.runtime.Platform.run(Platform.java:783)
              at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
              at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
              at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:302)
              at org.eclipse.jface.viewers.CellEditor.focusLost(CellEditor.java:676)
              at org.eclipse.jface.viewers.TextCellEditor$5.focusLost(TextCellEditor.java:184)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:109)
              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.Widget.sendEvent(Widget.java:867)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
              at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:1841)
              at org.eclipse.swt.widgets.Widget.wmKillFocus(Widget.java:1586)
              at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:3356)
              at org.eclipse.swt.widgets.Control.windowProc(Control.java:3069)
              at org.eclipse.swt.widgets.Text.windowProc(Text.java:1777)
              at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
              at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
              at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:2111)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2708)
              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)

              java.lang.NullPointerException
              at org.hibernate.eclipse.mapper.model.RevEngColumnAdapter.notifyChanged(RevEngColumnAdapter.java:40)
              at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
              at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:235)
              at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.childReplaced(XMLModelNotifierImpl.java:156)
              at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.childReplaced(DOMModelImpl.java:190)
              at org.eclipse.wst.xml.core.internal.document.NodeContainer.notifyChildReplaced(NodeContainer.java:357)
              at org.eclipse.wst.xml.core.internal.document.NodeContainer.insertBefore(NodeContainer.java:298)
              at org.eclipse.wst.xml.core.internal.document.ElementImpl.insertBefore(ElementImpl.java:684)
              at org.eclipse.wst.xml.core.internal.document.NodeContainer.appendChild(NodeContainer.java:129)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeContentHelper.setElementNodeValue(TreeContentHelper.java:316)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeContentHelper.setNodeValue(TreeContentHelper.java:260)
              at org.eclipse.wst.xml.ui.internal.tabletree.XMLTreeExtension$MyCellModifier.modify(XMLTreeExtension.java:157)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeExtension$EditManager.applyCellEditorValue(TreeExtension.java:428)
              at org.eclipse.wst.xml.ui.internal.tabletree.TreeExtension$EditManager$CellEditorState.applyEditorValue(TreeExtension.java:517)
              at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:304)
              at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
              at org.eclipse.core.runtime.Platform.run(Platform.java:783)
              at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
              at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
              at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:302)
              at org.eclipse.jface.viewers.CellEditor.focusLost(CellEditor.java:676)
              at org.eclipse.jface.viewers.TextCellEditor$5.focusLost(TextCellEditor.java:184)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:109)
              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.Widget.sendEvent(Widget.java:867)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
              at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:1841)
              at org.eclipse.swt.widgets.Widget.wmKillFocus(Widget.java:1586)
              at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:3356)
              at org.eclipse.swt.widgets.Control.windowProc(Control.java:3069)
              at org.eclipse.swt.widgets.Text.windowProc(Text.java:1777)
              at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
              at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
              at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:2111)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2708)
              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)

              The above is the first two's exception stack trace.

              • 5. Re: Can not open HQL editor
                wang shoutao Newbie

                Is it because my configuration or the application's bug?

                • 6. Re: Can not open HQL editor
                  Max Rydahl Andersen Master

                  they are not releated to this isssue.

                  these are for the reveng.xml editor...a bug that i think is fixed in the latest cvs code.

                  • 7. Re: Can not open HQL editor
                    wang shoutao Newbie

                    ERROR main org.hibernate.hql.PARSER - :0:0: unexpected end of subtree

                    WARN Worker-0 net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: bundleresource://125/ehcache-failsafe.xml

                    This is the error message when I click the "Session Factory" node in "Hibernate Configuration" View. It seems that becuase ehcache.xml not found, but I have copy this file to my class path.

                    • 8. Re: Can not open HQL editor
                      wang shoutao Newbie

                      Do not know why, evetything is ok now.

                      Thanks a lot.