Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11522

loader constraint violation: when resolving overridden method

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.Beta3
    • Fix Version/s: 3.3.0.Beta3
    • Component/s: hibernate
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      EXECUTE:Have Hibernate 3.5 Core configuration
      EXECUTE: execute HQL command "from Customers" (CUSTOMERS is an empty HSQL table), Core Hi
      ERROR: linkage error
      It's probably depending on my previous queries made from Hibernate 4.0 based configuration and HQL Editor

      Show
      EXECUTE:Have Hibernate 3.5 Core configuration EXECUTE: execute HQL command "from Customers" (CUSTOMERS is an empty HSQL table), Core Hi ERROR: linkage error It's probably depending on my previous queries made from Hibernate 4.0 based configuration and HQL Editor
    • Workaround Description:
      Hide

      Switch to Hibernate 4.0 helped

      Show
      Switch to Hibernate 4.0 helped

      Description

      java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.jboss.tools.hibernate3_5.HQLQueryPage.setSession(Lorg/hibernate/Session;)V" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/jboss/tools/hibernate3_5/HQLQueryPage, and its superclass loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader), have different Class objects for the type org/hibernate/Session used in the signature
      at org.jboss.tools.hibernate3_5.HibernateExtension3_5$1.execute(HibernateExtension3_5.java:74)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      at org.jboss.tools.hibernate3_5.HibernateExtension3_5.execute(HibernateExtension3_5.java:199)
      at org.jboss.tools.hibernate3_5.HibernateExtension3_5.executeHQLQuery(HibernateExtension3_5.java:71)
      at org.hibernate.console.ConsoleConfiguration.executeHQLQuery(ConsoleConfiguration.java:299)
      at org.hibernate.eclipse.hqleditor.HQLEditor.executeQuery(HQLEditor.java:447)
      at org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:85)
      at org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:55)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:59)
      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$6.handleEvent(ActionContributionItem.java:452)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      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:344)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

        Gliffy Diagrams

          Attachments

          1. loader-1.png
            loader-1.png
            162 kB
          2. loader2.png
            loader2.png
            53 kB

            Activity

              People

              • Assignee:
                dgeraskov Dmitry Geraskov
                Reporter:
                jpeterka Jiri Peterka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: