Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-297

LinkageError with IBM JDK >= 8.0.5.6

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.GA
    • Fix Version/s: 7.1.0.GA
    • Component/s: BRE
    • Labels:
    • Environment:

      IBM JDK 8.0.5.6, 8.0.5.7

    • Affects Build:
      ER2
    • Target Release:
    • Fix Build:
      CR1
    • Steps to Reproduce:
      Hide

      Run (for instance) org.drools.workbench.screens.guided.dtable.client.editor.BaseGuidedDecisionTableEditorPresenterTest with IBM JDK 8.0.5.6 or higher.

      Show
      Run (for instance) org.drools.workbench.screens.guided.dtable.client.editor.BaseGuidedDecisionTableEditorPresenterTest with IBM JDK 8.0.5.6 or higher.
    • Affects:
      Compatibility/Configuration
    • Sprint:
      2018 Week 36-38

      Description

      This is a tracker issue for IBM JDK issue (to be reported).

      After upgrading to recent IBM JDK (8.0.5.7), we have encountered LinkageError exceptions (see below) when building a KieBase in Arquillian tests and GWTMockito tests. The problem does not happen with IBM JDK 8.0.5.5, we have managed to create a reproducer not involving Drools nor EAP, a bug is going to be reported for IBM JDK.

      java.lang.BootstrapMethodError: java.lang.LinkageError: loading constraint violation when overriding method "org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl$ResourceBuilder.build(Lorg/drools/compiler/builder/impl/KnowledgeBuilderImpl;Lorg/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl$ResourceDescr;)V" during creation of class "org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl$ResourceBuilder$$Lambda$958/000000007C21BDA0": loader "java/lang/InternalAnonymousClassLoader@b636c4cf" of class "org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl$ResourceBuilder$$Lambda$958/000000007C21BDA0" and loader "org/jboss/modules/ModuleClassLoader@d3fc77e2" of class "org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl$ResourceBuilder" have different types for the method signature
      at java.lang.invoke.InnerClassLambdaMetafactory.spinInnerClass(InnerClassLambdaMetafactory.java:339)
      at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:206)
      at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:315)
      at java.lang.invoke.DirectHandle.invokeExact_thunkArchetype_L(DirectHandle.java:302)
      at java.lang.invoke.AsTypeHandle.invokeExact_thunkArchetype_X(AsTypeHandle.java:49)
      at java.lang.invoke.MethodHandle.resolveInvokeDynamic(MethodHandle.java:833)
      at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl$ResourceBuilder.<clinit>(CompositeKnowledgeBuilderImpl.java:276)
      at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildResources(CompositeKnowledgeBuilderImpl.java:117)
      at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:98)
      at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:238)
      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:65)
      at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:435)
      at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:363)
      at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:317)
      at org.jboss.qa.brms.tools.KieUtils.buildResources(KieUtils.java:300)
      at org.jboss.qa.brms.tools.KieUtils.buildResources(KieUtils.java:287)
      at org.jboss.qa.brms.tools.KieUtils.buildCEPResources(KieUtils.java:251)
      at org.jboss.qa.brms.tools.KieUtils.newCEPKieBuilder(KieUtils.java:82)
      at org.jboss.qa.brms.bre.engine.PersistenceTest.createKnowledgeBase(PersistenceTest.java:149)
      at org.jboss.qa.brms.bre.engine.PersistenceTest.testCEP(PersistenceTest.java:128)

      The GWTMockito one:

      java.lang.BootstrapMethodError: java.lang.LinkageError: loading constraint violation when overriding method "com/ait/lienzo/client/core/event/NodeMouseEnterHandler.onNodeMouseEnter(Lcom/ait/lienzo/client/core/event/NodeMouseEnterEvent;)V" during creation of class "org/kie/workbench/common/stunner/client/lienzo/shape/view/wires/ext/WiresTextDecorator$$Lambda$62/00000000FDE9C130": loader "java/lang/InternalAnonymousClassLoader@abb97509" of class "org/kie/workbench/common/stunner/client/lienzo/shape/view/wires/ext/WiresTextDecorator$$Lambda$62/00000000FDE9C130" and loader "com/google/gwtmockito/GwtMockitoTestRunner$GwtMockitoClassLoader@d094056e" of class "com/ait/lienzo/client/core/event/NodeMouseEnterHandler" have different types for the method signature
      at java.lang.invoke.InnerClassLambdaMetafactory.spinInnerClass(InnerClassLambdaMetafactory.java:339)
      at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:206)
      at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:315)
      at java.lang.invoke.DirectHandle.invokeExact_thunkArchetype_L(DirectHandle.java:302)
      at java.lang.invoke.AsTypeHandle.invokeExact_thunkArchetype_X(AsTypeHandle.java:49)
      at java.lang.invoke.MethodHandle.resolveInvokeDynamic(MethodHandle.java:833)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.WiresTextDecorator.registerTextEnterHandler(WiresTextDecorator.java:154)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.WiresTextDecorator.initializeHandlers(WiresTextDecorator.java:115)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.WiresTextDecorator.initialize(WiresTextDecorator.java:111)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.WiresTextDecorator.<init>(WiresTextDecorator.java:72)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.WiresShapeViewExt.setEventHandlerManager(WiresShapeViewExt.java:83)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.WiresShapeViewExt.<init>(WiresShapeViewExt.java:69)
      at org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.WiresContainerShapeView.<init>(WiresContainerShapeView.java:38)
      at org.kie.workbench.common.stunner.cm.client.wires.AbstractCaseManagementShape.<init>(AbstractCaseManagementShape.java:52)
      at org.kie.workbench.common.stunner.cm.client.wires.MockCaseManagementShape.<init>(MockCaseManagementShape.java:29)
      at org.kie.workbench.common.stunner.cm.client.wires.CaseManagementDockingAndContainmentControlImplTest.setup(CaseManagementDockingAndContainmentControlImplTest.java:68)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                marek.winkler Marek Winkler
                Tester:
                Marek Winkler
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: