Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15388

(7.4.z) [PicketLink] StaxUtil should write namespaces firstly for IBM JDK (WSTrustRenewTargetParsingTestCase#testWST_ResponseRenew)

    XMLWordPrintable

Details

    Description

      There is an issue in processing XML on IBM JDK.

      org.picketlink.test.identity.federation.core.parser.wst.WSTrustRenewTargetParsingTestCase#testWST_ResponseRenew from redhat-picketlink fails on IBM JDK.

      mvn -f modules/federation test -Dtest=WSTrustRenewTargetParsingTestCase#testWST_ResponseRenew

      org.picketlink.common.exceptions.ProcessingException: PL00102: Processing Exception:
      	at org.picketlink.common.DefaultPicketLinkLogger.processingError(DefaultPicketLinkLogger.java:174)
      	at org.picketlink.common.util.StaxUtil.writeAttribute(StaxUtil.java:176)
      	at org.picketlink.common.util.StaxUtil.writeDOMElement(StaxUtil.java:368)
      	at org.picketlink.identity.federation.core.wstrust.writers.WSTrustResponseWriter.write(WSTrustResponseWriter.java:186)
      	at org.picketlink.identity.federation.core.wstrust.writers.WSTrustResponseWriter.write(WSTrustResponseWriter.java:123)
      	at org.picketlink.test.identity.federation.core.parser.wst.WSTrustRenewTargetParsingTestCase.testWST_ResponseRenew(WSTrustRenewTargetParsingTestCase.java:96)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:507)
      	at org.junit.runners.model.FrameworkMethod.runReflectiveCall(FrameworkMethod.java:45)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:231)
      	at org.junit.runners.ParentRunner.schedule(ParentRunner.java:60)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.access(ParentRunner.java:50)
      	at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:222)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: javax.xml.stream.XMLStreamException: The namespace URI "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" has not been bound to a prefix.
      	at com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:59)
      	at com.ibm.xml.xlxp.api.stax.XMLStreamWriterBase.writeAttribute(XMLStreamWriterBase.java:464)
      	at com.ibm.xml.xlxp.api.stax.XMLOutputFactoryImpl$XMLStreamWriterProxy.writeAttribute(XMLOutputFactoryImpl.java:157)
      	at org.picketlink.common.util.StaxUtil.writeAttribute(StaxUtil.java:173)
      	... 27 more
      

      It could be similar to https://issues.apache.org/jira/browse/CXF-4520org.picketlink.common.util.StaxUtil should probably be fixed to write namespaces firstly.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              rhn-support-ivassile Ilia Vassilev
              Ondrej Kotek Ondrej Kotek
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: