Bug 1105588 - XMLPersistenceTest.testPersistenceOfFullNodes fails on IBM Java 6
Summary: XMLPersistenceTest.testPersistenceOfFullNodes fails on IBM Java 6
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: DR4
: 6.1.0
Assignee: Shelly McGowan
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-06 13:07 UTC by Jiri Svitak
Modified: 2020-03-27 19:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:35:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Diff between 2 xml strings (119.11 KB, text/plain)
2014-07-21 14:30 UTC, Marco Rietveld
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.