0 Replies Latest reply on May 6, 2014 2:09 PM by Jack Cai

    getting hibernatetools eclipse 3.7.1 to work with hibernate-core 3.6.9.Final

    Jack Cai Newbie

      Moving the discussion here per Max's request.


      Following up on this, I managed to get it past this problem by stuffing hibernate-core.3.6.9.final into hibernate3.jar (replacing identical name classes). Now session factory can be started properly.

      The problem I am facing is whenever I click on HQL editor, this error comes up. Any clue how I can fix this? There is a thread about similar problem that can be solved by not specifying -nl option. But it does not work here since there is no currency error, and the -nl is not set in my eclipse setup. BTW, the query parameter pane actually shows up, just not linked to the HQL editor. ("no HQL editor open" is the message)


      Thanks.


      -Jack


      ====

      Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".

      ----- Stack Trace

      java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.console.ConsoleQueryParameter

        at org.hibernate.eclipse.console.views.QueryParametersPage.createQueryParametersTable(QueryParametersPage.java:192)

        at org.hibernate.eclipse.console.views.QueryParametersPage.createControl(QueryParametersPage.java:118)

        at org.hibernate.eclipse.console.views.QueryParametersView.doCreatePage(QueryParametersView.java:55)

        at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:412)

        at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:753)

        at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1055)

        at org.eclipse.ui.internal.WorkbenchPage$15.run(WorkbenchPage.java:4790)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4788)

        at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:4768)

        at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:194)

        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$2.run(PartServiceImpl.java:183)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:181)

        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:600)

        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:544)

        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:533)

        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3120)

        at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3034)

        at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3016)

        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3012)

        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2976)

        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2967)

        at org.hibernate.eclipse.console.HibernateConsolePlugin.openScratchHQLEditor(HibernateConsolePlugin.java:483)

        at org.hibernate.eclipse.console.actions.HQLScratchpadAction.openQueryEditor(HQLScratchpadAction.java:47)

        at org.hibernate.eclipse.console.actions.OpenQueryEditorAction.doRun(OpenQueryEditorAction.java:37)

        at org.hibernate.eclipse.console.actions.OpenQueryEditorAction.runWithEvent(OpenQueryEditorAction.java:24)

        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4166)

        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)

        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)

        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474)

        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)

        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012)

        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)

        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)

        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)

        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)

        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)

        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)

        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)

        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)

        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

      -------- Session Data

      eclipse.buildId=4.3.0.M20130911-1000

      java.version=1.7.0_25

      java.vendor=Oracle Corporation

      BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US

      Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/jcai/.eclipse_keyring -showlocation

      Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/jcai/.eclipse_keyring -showlocation

       

       

      This is a continuation of log file /Users/jcai/Documents/workspace-osgi.org/.metadata/.bak_0.log

      Created Time: 2014-05-05 15:25:19.387

       

       



      ==============

      Hi Jack,

       

      jbosstools-dev is for development of jbosstools not usage questions.

       

      Please open a forum thread on https://community.jboss.org/en/tools/content?filterID=contentstatus[published]~objecttype~objecttype[thread]

      or a jira ( https://jira.jboss.org/jira/browse/JBIDE ) where you provide enough steps for us to reproduce.

       

      Sounds like you have a custom class that triggers the bug - if you could provide an example where things go bad that would make things much

      faster to hunt down.

       

      /max

       

       

       

      Hi,

       

      The plugin is reporting:

       

      java.lang.NoSuchMethodError:
      org.hibernate.type.CustomType.<init>(Lorg/hibernate/usertype/UserType;[Ljava/lang/String;)V

       

      during sessionFactory initialization. We check
      hibernate-core.3.6.9.Final. It does have this method for CustomType class.

       

      What jar files do we have to replace/package to get this to work? Simply
      replacing hibernate3.jar with hibernate-core.3.6.9.Fnal does not work. What
      are we missing?

       

      Can someone point out a workaround for this? The configuration is "Core"
      and "3.6". Thanks.

       

      -Jack

      _______________________________________________
      jbosstools-dev mailing list
      jbosstools-dev@lists.jboss.org
      https://lists.jboss.org/mailman/listinfo/jbosstools-dev

       

       

      /max

      http://about.me/maxandersen