[ 
https://issues.apache.org/jira/browse/TAVERNA-920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157789#comment-15157789
 ] 

Stian Soiland-Reyes commented on TAVERNA-920:
---------------------------------------------

I'm afraid we are dealing with a Heisenbug.. while the pom.xml "fix" I added 
seemed to work around it when I tested it, in the 
taverna-language-0.15.1-incubating-RC3 the bug reappears - but it seems 
randomly. So if I build with {{mvn clean verify}} it seems to happen alot, 
while if I build with {{mvn clean install}} it only happens now and then.

(Also it seems the maven-bundle-plugin causes the build to restart multiple 
times on {{mvn install}} - is this related to how this bug would not occur?)


Basically it's a real bug the test detect, because when it fails, then 
META-INF/container.xml of wfbundle says:

{code:xml}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:container xmlns="http://www.w3.org/2001/04/xmlenc#"; 
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#"; 
xmlns:ns3="urn:oasis:names:tc:opendocument:xmlns:container"/>
{code}

while the ODF Container spec sadly mandates fixed namespaces:

{code:xml}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<container xmlns:xmlenc="http://www.w3.org/2001/04/xmlenc#"; 
xmlns:xmldsig="http://www.w3.org/2000/09/xmldsig#"; 
xmlns="urn:oasis:names:tc:opendocument:xmlns:container"/>
{code}

Perhaps there's an SPI inside Java that randomly picks between two different 
xerces-implementations - as JDK has a built-in copy of jaxb and xerces, but 
moved to an internal {{com.sun}} package. 


> TestUCFPackage fails due to wrong namespace
> -------------------------------------------
>
>                 Key: TAVERNA-920
>                 URL: https://issues.apache.org/jira/browse/TAVERNA-920
>             Project: Apache Taverna
>          Issue Type: Bug
>          Components: Taverna Language
>    Affects Versions: language 0.15.1
>         Environment: Windows 10 x/64
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 
> 2014-12-14T17:29:23+00:00)
> Maven home: C:\Program Files\apache-maven-3.2.5\bin\..
> Java version: 1.8.0_40, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_40\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"
>            Reporter: Stian Soiland-Reyes
>            Assignee: Stian Soiland-Reyes
>             Fix For: language 0.15.1
>
>
> Testing 
> https://dist.apache.org/repos/dist/dev/incubator/taverna/source/taverna-language-0.15.1-incubating-RC2/
>  on Windows 10 fails:
> {code}
> Tests run: 34, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.111 sec 
> <<< FAILURE! - in org.apache.taverna.scufl2.ucfpackage.TestUCFPackage
> setRootfileSaved(org.apache.taverna.scufl2.ucfpackage.TestUCFPackage)  Time 
> elapsed: 0.02 sec  <<< FAILURE!
> org.junit.ComparisonFailure: expected:<[]> but was:<[ns3]>
>         at org.junit.Assert.assertEquals(Assert.java:115)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at 
> org.apache.taverna.scufl2.ucfpackage.TestUCFPackage.setRootfileSaved(TestUCFPackage.java:656)
> addResourceContainerXml(org.apache.taverna.scufl2.ucfpackage.TestUCFPackage)  
> Time elapsed: 0.042 sec  <<< FAILURE!
> org.junit.ComparisonFailure: expected:<[]> but was:<[ns3]>
>         at org.junit.Assert.assertEquals(Assert.java:115)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at 
> org.apache.taverna.scufl2.ucfpackage.TestUCFPackage.addResourceContainerXml(TestUCFPackage.java:708)
> setRootfileExtendsContainerXml(org.apache.taverna.scufl2.ucfpackage.TestUCFPackage)
>   Time elapsed: 0.023 sec  <<< FAILURE!
> org.junit.ComparisonFailure: expected:<[]> but was:<[ns3]>
>         at org.junit.Assert.assertEquals(Assert.java:115)
>         at org.junit.Assert.assertEquals(Assert.java:144)
>         at 
> org.apache.taverna.scufl2.ucfpackage.TestUCFPackage.setRootfileExtendsContainerXml(TestUCFPackage.java:787)
> {code}
> Something to do with the bundled xerces. 
> This looks like the same bug reported by Alan in 
> http://mail-archives.apache.org/mod_mbox/taverna-dev/201602.mbox/%3C56C717EC.4080401%40googlemail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to