1 2 Previous Next 15 Replies Latest reply on Jan 9, 2018 6:43 AM by nickboldt

    Hibernate Criteria Editor => Exception while executing HQL

    janih

      I'm using Hibernate Tools (Version: 4.0.1.Final-v20150324-2307-B95) on Eclipse Luna Service Release 2 (4.4.2). I can execute HQL queries just fine on the HQL editor, but Criteria queries fail on the editor.

       

      So, a query like: "session.createCriteria(SomePojo.class).add(Restrictions.eq("someProperty", 1L))" results in: "Error in method invocation: Method add( org.hibernate.criterion.SimpleExpression ) not found in class'org.jboss.tools.hibernate.proxy.CriteriaProxy'"

       

      Full stack trace:


      Sourced file: inline evaluation of: ``session.createCriteria(SomePojo.class).add(Restrictions.eq("someProperty . . . '' : Error in method invocation: Method add( org.hibernate.criterion.SimpleExpression ) not found in class'org.jboss.tools.hibernate.proxy.CriteriaProxy' : at Line: 1 : in file: inline evaluation of: ``session.createCriteria(SomePojo.class).add(Restrictions.eq("someProperty . . . '' : .add ( Restrictions .eq ( "someProperty" , 1L ) )

        at bsh.BSHPrimarySuffix.doName(Unknown Source)

        at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at org.hibernate.eclipse.console.common.JavaPage.setSession(JavaPage.java:73)

        at org.hibernate.eclipse.console.common.HibernateExtension$3.execute(HibernateExtension.java:127)

        at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)

        at org.hibernate.eclipse.console.common.HibernateExtension.execute(HibernateExtension.java:189)

        at org.hibernate.eclipse.console.common.HibernateExtension.executeCriteriaQuery(HibernateExtension.java:123)

        at org.hibernate.console.ConsoleConfiguration.executeBSHQuery(ConsoleConfiguration.java:313)

        at org.hibernate.eclipse.criteriaeditor.CriteriaEditor.executeQuery(CriteriaEditor.java:142)

        at org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:88)

        at org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:56)

        at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)

        at org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:60)

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

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

        at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:462)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        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:648)

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

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

       

      Any ideas why this is happening?

        • 1. Re: Hibernate Criteria Editor => Exception while executing HQL
          koen.aers

          Hi Jani,

           

          Can you try to reproduce this with the last JBoss Tools release (4.3.0.Beta2) on Eclipse Mars? If you can reproduce it, please open a JIRA issue with the proper instructions to reproduce it.

           

          Cheers,

          Koen

          • 2. Re: Hibernate Criteria Editor => Exception while executing HQL
            paragozz

            I am also getting same problem while running in hibernate criteria editor.

            while running the criteria query 

             

            session.createCriteria(Student.class)

            .list()

             

            the Hibernate Criteria Editor runs fine.

            But as I add a restriction the hibernate criteria editor fails

            session.createCriteria(Student.class)

              .add(Restrictions.eq("studentId",1))

              .list()

             

            Error :

             

             

            !ENTRY org.hibernate.eclipse.console 4 150 2015-12-17 14:44:25.181

            !MESSAGE Exception while executing HQL Query

            !SUBENTRY 1 org.hibernate.eclipse.console 4 150 2015-12-17 14:44:25.182

            !MESSAGE Sourced file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : Error in method invocation: Method add( org.hibernate.criterion.SimpleExpression ) not found in class'org.jboss.tools.hibernate.proxy.CriteriaProxy' : at Line: 3 : in file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : .add ( Restrictions .eq ( "studentId" , 1 ) )

             

             

            !STACK 0

            Sourced file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : Error in method invocation: Method add( org.hibernate.criterion.SimpleExpression ) not found in class'org.jboss.tools.hibernate.proxy.CriteriaProxy' : at Line: 3 : in file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : .add ( Restrictions .eq ( "studentId" , 1 ) )

             

             

              at bsh.BSHPrimarySuffix.doName(Unknown Source)

              at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)

              at bsh.BSHPrimaryExpression.eval(Unknown Source)

              at bsh.BSHPrimaryExpression.eval(Unknown Source)

              at bsh.Interpreter.eval(Unknown Source)

              at bsh.Interpreter.eval(Unknown Source)

              at bsh.Interpreter.eval(Unknown Source)

              at org.hibernate.eclipse.console.common.JavaPage.setSession(JavaPage.java:73)

              at org.hibernate.eclipse.console.common.HibernateExtension$3.execute(HibernateExtension.java:127)

              at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)

              at org.hibernate.eclipse.console.common.HibernateExtension.execute(HibernateExtension.java:189)

              at org.hibernate.eclipse.console.common.HibernateExtension.executeCriteriaQuery(HibernateExtension.java:123)

              at org.hibernate.console.ConsoleConfiguration.executeBSHQuery(ConsoleConfiguration.java:313)

              at org.hibernate.eclipse.criteriaeditor.CriteriaEditor.executeQuery(CriteriaEditor.java:142)

              at org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:88)

              at org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:56)

              at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)

              at org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:60)

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

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

              at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:462)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

            !SUBENTRY 2 org.hibernate.eclipse.console 4 150 2015-12-17 14:44:25.182

            !MESSAGE Sourced file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : Error in method invocation: Method add( org.hibernate.criterion.SimpleExpression ) not found in class'org.jboss.tools.hibernate.proxy.CriteriaProxy' : at Line: 3 : in file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : .add ( Restrictions .eq ( "studentId" , 1 ) )

             

             

            !STACK 0

            Sourced file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : Error in method invocation: Method add( org.hibernate.criterion.SimpleExpression ) not found in class'org.jboss.tools.hibernate.proxy.CriteriaProxy' : at Line: 3 : in file: inline evaluation of: ``  session.createCriteria(Student.class)   .add(Restrictions.eq("studentId",1))   . . . '' : .add ( Restrictions .eq ( "studentId" , 1 ) )

             

             

              at bsh.BSHPrimarySuffix.doName(Unknown Source)

              at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)

              at bsh.BSHPrimaryExpression.eval(Unknown Source)

              at bsh.BSHPrimaryExpression.eval(Unknown Source)

              at bsh.Interpreter.eval(Unknown Source)

              at bsh.Interpreter.eval(Unknown Source)

              at bsh.Interpreter.eval(Unknown Source)

              at org.hibernate.eclipse.console.common.JavaPage.setSession(JavaPage.java:73)

              at org.hibernate.eclipse.console.common.HibernateExtension$3.execute(HibernateExtension.java:127)

              at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)

              at org.hibernate.eclipse.console.common.HibernateExtension.execute(HibernateExtension.java:189)

              at org.hibernate.eclipse.console.common.HibernateExtension.executeCriteriaQuery(HibernateExtension.java:123)

              at org.hibernate.console.ConsoleConfiguration.executeBSHQuery(ConsoleConfiguration.java:313)

              at org.hibernate.eclipse.criteriaeditor.CriteriaEditor.executeQuery(CriteriaEditor.java:142)

              at org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:88)

              at org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:56)

              at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)

              at org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:60)

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

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

              at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:462)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

             

             

             

             

            Student.hbm.xml

             

            <?xml version="1.0" encoding="UTF-8"?>

            <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"

            "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

            <hibernate-mapping>

              <class name="org.maven.hibernate.xml.std.v3.test.dto.xml.Student" table="STUDENT" catalog="test1">

              <id name="studentId" type="int">

              <column name="STUDENT_ID"/>

              <generator class="increment"/>

              </id>

              <property name="studentName" type="java.lang.String">

              <column name="STUDENT_NAME" not-null="true"/>

              </property>

               </class>

            </hibernate-mapping>

             

             

             

            Student.java

             

            public class Student implements java.io.Serializable {

             

              private int studentId;

              private String studentName;

              public Student() {

              }

              public Student(int studentId, String studentName) {

              this.studentId = studentId;

              this.studentName = studentName;

              }

              public int getStudentId() {

              return this.studentId;

              }

              public void setStudentId(int studentId) {

              this.studentId = studentId;

              }

              public String getStudentName() {

              return this.studentName;

              }

              public void setStudentName(String studentName) {

              this.studentName = studentName;

              }

               }

            • 3. Re: Hibernate Criteria Editor => Exception while executing HQL
              paragozz

              IDE is being used is

               

              JBoss Developer Studio

               

              Version: 8.1.0.GA

              Build id: GA-v20150327-1349-B467

              Build date: 20150327-1349

               

              Copyright (c) 2004-2014 Red Hat, Inc., contributors and others.  All rights reserved.

              Homepage: http://www.jboss.com/products/devstudio

              User Forums: https://community.jboss.org/en/jbossdevstudio

              Documentation: https://access.redhat.com/site/documentation/Red_Hat_JBoss_Developer_Studio/

              • 4. Re: Hibernate Criteria Editor => Exception while executing HQL
                koen.aers

                Hi Parag,

                 

                This issue should be fixed in JBoss Developer Studio version 9.0.0.GA or 9.1.0.Beta1. Can you please upgrade to one of these versions and come back to me if the problem persists?

                 

                Cheers,

                Koen

                • 5. Re: Hibernate Criteria Editor => Exception while executing HQL
                  dpav

                  Hi Koen,

                   

                  I have the same issue in Red Hat JBoss Developer Studio 10.0.0.GA

                   

                  Version: 10.0.0.GA

                  Build id: GA-v20160615-1853-B33

                  Build date: 20160615-1853

                   

                  Criteria:

                  session.createCriteria(Person.class).add(Restrictions.ilike("name", "J%"))

                   

                  Exception Stack Trace:

                  Sourced file: inline evaluation of: ``session.createCriteria(Person.class).add(Restrictions.ilike("name", "J%"));'' : Error in method invocation: Method add( org.hibernate.criterion.LikeExpression ) not found in class'org.jboss.tools.hibernate.runtime.common.AbstractFacadeFactory$22' : at Line: 1 : in file: inline evaluation of: ``session.createCriteria(Person.class).add(Restrictions.ilike("name", "J%"));'' : .add ( Restrictions .ilike ( "name" , "J%" ) )

                   

                      at bsh.BSHPrimarySuffix.doName(Unknown Source)

                      at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)

                      at bsh.BSHPrimaryExpression.eval(Unknown Source)

                      at bsh.BSHPrimaryExpression.eval(Unknown Source)

                      at bsh.Interpreter.eval(Unknown Source)

                      at bsh.Interpreter.eval(Unknown Source)

                      at bsh.Interpreter.eval(Unknown Source)

                      at org.hibernate.eclipse.console.common.JavaPage.setSession(JavaPage.java:73)

                      at org.hibernate.eclipse.console.common.HibernateExtension$3.execute(HibernateExtension.java:127)

                      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)

                      at org.hibernate.eclipse.console.common.HibernateExtension.execute(HibernateExtension.java:189)

                      at org.hibernate.eclipse.console.common.HibernateExtension.executeCriteriaQuery(HibernateExtension.java:123)

                      at org.hibernate.console.ConsoleConfiguration.executeBSHQuery(ConsoleConfiguration.java:313)

                      at org.hibernate.eclipse.criteriaeditor.CriteriaEditor.executeQuery(CriteriaEditor.java:145)

                      at org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:88)

                      at org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:55)

                      at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)

                      at org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:59)

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

                      at org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:436)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

                   

                  Regards,

                  Dmytro.

                  • 6. Re: Hibernate Criteria Editor => Exception while executing HQL
                    koen.aers

                    Ok, I will create a new issue and try to find out what's happening.

                     

                    Cheers,

                    Koen

                    • 7. Re: Hibernate Criteria Editor => Exception while executing HQL
                      dpav

                      Koen,

                       

                      As for the version 10.1.0.GA of Red Hat JBoss Developer Studio - the same behavior.

                       

                      Version: 10.1.0.GA

                      Build id: GA-v20160902-1725-B43

                      Build date: 20160902-1725

                       

                      Cheers,

                      Dmytro.

                      • 8. Re: Hibernate Criteria Editor => Exception while executing HQL
                        alextrezvy

                        The same error as Dmytro Pavliuchenko said above.

                        Hibernate Tools for Eclipse

                        Version: 5.1.0.Final-v20160609-2146-B2

                        • 9. Re: Hibernate Criteria Editor => Exception while executing HQL
                          alextrezvy

                          The same error in Hibernate Tools for Eclipse

                          Version: 5.1.2.v20161121-1143

                          • 10. Re: Hibernate Criteria Editor => Exception while executing HQL
                            antonior14

                            problem has been solved?

                            • 12. Re: Hibernate Criteria Editor => Exception while executing HQL
                              antonior14

                              Sorry Nick, issue refer to the exception performing Criteria using Hibernate Tools for Eclipse as posted by

                              It would have to be this jira issue [JBIDE-10560] Inline evaluation error while using criteria editor with Hibernate 4 - JBoss Issue Tracker

                               

                              Thanks in advance

                              • 13. Re: Hibernate Criteria Editor => Exception while executing HQL
                                nickboldt

                                Are you sure that's the correct issue? It was closed on 27/Dec/2011. If the problem is still present (or has come back) I suggest opening a new JBIDE JIRA and attaching details about your OS platform, JDK version, Eclipse version, JBoss Tools version, steps to reproduce, etc.

                                • 14. Re: Hibernate Criteria Editor => Exception while executing HQL
                                  davinci30000

                                  Same problem with JBoss Tools latest stable for eclipse Neon.

                                   

                                  JDK. 1.8

                                  Hibernate 3.3.2 GA

                                  Eclipse Neon.3 (4.6.3)

                                  Hibernate Tools for Eclipse 5.1.4.v20170413-1729

                                   

                                  Edit>>>>

                                  Same problem with :

                                  Red Hat JBoss Developer Studio

                                  Version: 11.1.0.GA

                                  Build id: GA-v20171026-1022-B1486

                                  Build date: 20171026-1022

                                  1 2 Previous Next