Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1105588

Summary: XMLPersistenceTest.testPersistenceOfFullNodes fails on IBM Java 6
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Svitak <jsvitak>
Component: jBPM CoreAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Marek Baluch <mbaluch>
Severity: low Docs Contact:
Priority: medium    
Version: 6.0.2CC: mbaluch
Target Milestone: DR4   
Target Release: 6.1.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 19:35:21 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
Diff between 2 xml strings none

Description Jiri Svitak 2014-06-06 13:07:15 UTC
Found on os+jvm certification Jenkins job here:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/BxMS/view/BxMS-6.0/view/jBPM/view/all/job/bpms-jbpm-community-os-jvm-matrix/jdk=ibm16,label_exp=RHEL6/lastCompletedBuild/testReport/org.jbpm.compiler.xml.processes/XMLPersistenceTest/testPersistenceOfFullNodes/

org.jbpm.compiler.xml.processes.XMLPersistenceTest.testPersistenceOfFullNodes

Error Message

expected:<...    <metaData name="[UniqueId">
        <value>_jbpm-unique-528</value>
      </metaData>
      <metaData name="meta1">
        <value>someValue]</value>
      </met...> but was:<...    <metaData name="[meta1">
        <value>someValue</value>
      </metaData>
      <metaData name="UniqueId">
        <value>_jbpm-unique-528]</value>
      </met...>


Reproduced afterwards on Jenkins slave:
cd jbpm
git checkout 6.0.x
cd jbpm-flow-builder
export JAVA_HOME=/qa/tools/opt/ibm-java-60
/qa/tools/opt/maven3-latest/bin/mvn clean package -Dtest=org.jbpm.compiler.xml.processes.XMLPersistenceTest

This issue  doesn't appear on IBM Java 7, so this makes it less serious.

Expected behavior:
All community unit tests work well on all supported platforms (OS+JVM).

My env:
RHEL 6
IBM Java 6

Comment 1 Marco Rietveld 2014-07-21 14:30:40 UTC
Created attachment 919638 [details]
Diff between 2 xml strings

It turns out this is a false negative due to the (too) strict comparison done between the two xml strings. 

I'll add a commit to move the test to XMLUnit so that it returns a positive for this test. 

See the attached picture for the diff that caused the false negative.

Comment 2 Marco Rietveld 2014-07-21 14:51:25 UTC
Fixed. Commits: 

master: 
https://github.com/droolsjbpm/jbpm/commit/110ede64

Comment 3 Jiri Svitak 2014-10-29 12:39:18 UTC
Thanks Marco for the fix. Verified in BPMS 6.1.0.DR4.

Setting qe test coverage flag, because this will be covered by regular execution of community unit tests against product builds.