Bug 1297470

Summary: Drools compiler throws wrong class format exception in Fuse 6.2.1 under Java 1.8
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Petrlik <jpetrlik>
Component: Fuse IntegrationAssignee: Edson Tirelli <etirelli>
Status: CLOSED EOL QA Contact: Jiri Petrlik <jpetrlik>
Severity: high Docs Contact: Petr Penicka <ppenicka>
Priority: high    
Version: 6.2.0CC: tsykora
Target Milestone: DR1   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:12:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Strack trace none

Description Jiri Petrlik 2016-01-11 15:32:40 UTC
Created attachment 1113627 [details]
Strack trace

Description of problem:

Drools compiler throws wrong class format exception in Fuse 6.2.1 under Java 1.8. See stack trace. It is possible to compile the same project under Java 1.7.

Version-Release number of selected component (if applicable):

Product version - BxMS 6.2.0.GA (build 6.3.0.Final-redhat-5)
Integration package for BxMS 6.2.0 and Fuse 6.2.1 (build 1.3.0.redhat-002)
Fuse - version 6.2.1

How reproducible:

Run "fuse-bxms-jbpm-workitems-camel-quickstart" from integration package under Fuse 6.2.1 and Java 1.8 (openjdk).

1. Add Maven repositories to <FUSE_DIR>/etc/org.ops4j.pax.url.mvn.cfg:
  - http://download.lab.bos.redhat.com/brewroot/repos/jb-bxms-6.2-build/latest/maven@id=product
  - http://download.lab.bos.redhat.com/brewroot/repos/jb-bxms-6.2-build/latest/maven@id=intpack


2. run following commands in Fuse:

$ features:addurl mvn:org.drools/drools-karaf-features/6.3.0.Final-redhat-5/xml/features
$ features:addurl mvn:org.jboss.integration.fuse/karaf-features/1.3.0.redhat-002/xml/features
$ features:addurl mvn:org.jboss.integration.fuse.quickstarts/karaf-features/1.3.0.redhat-002/xml/features
$ features:install fuse-bxms-jbpm-workitems-camel-quickstart

Actual results:

Quickstart installation will fail with attached stack trace.

Expected results:

Quickstart should run successfully.

Comment 2 Martin Basovník 2016-01-15 07:55:39 UTC
I can reproduce the same exception with Oracle JDK 8.

Comment 3 Petr Široký 2016-01-21 17:12:20 UTC
This has been fixed on master. If we need to backport this to product 6.2.x, please create new BZ for that.

Commit:
https://github.com/droolsjbpm/drools/commit/85a9a7991

Note that the current fix is more like workaround. We should be able to properly fix this once the ECJ bundles correctly export the package versions.

Comment 4 Jiri Petrlik 2016-03-31 14:08:15 UTC
Verified using BxMS 6.3.0.ER1 and integration package build 1.4.0.redhat-001. fuse-bxms-jbpm-workitems-camel-quickstart started successfully under OpenJDK 1.8.