Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
Java-SCA-2.x
-
None
-
None
-
IBM JDK (x86-64)
Description
Running "mvn clean install" for module "policy-wspolicy" fails with:
java.lang.IllegalStateException: The current state is not START_DOCUMENT.
when using the IBM JDK, however the Oracle JDK works to build this module.
Full stack trace:
java.lang.IllegalStateException: The current state is not START_DOCUMENT.
at com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwIllegalStateException(StAXMessageProvider.java:46)
at com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.getCharacterEncodingScheme(XMLStreamReaderImpl.java:1580)
at com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl$XMLStreamReaderProxy.getCharacterEncodingScheme(XMLInputFactoryImpl.java:353)
at org.apache.tuscany.sca.common.xml.stax.reader.XMLDocumentStreamReader.getCharacterEncodingScheme(XMLDocumentStreamReader.java:145)
at org.apache.axiom.om.impl.builder.StAXBuilder.<init>(StAXBuilder.java:126)
at org.apache.axiom.om.impl.builder.StAXBuilder.<init>(StAXBuilder.java:164)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:157)
at org.apache.tuscany.sca.policy.wspolicy.xml.WSPolicyProcessor.read(WSPolicyProcessor.java:91)
at org.apache.tuscany.sca.policy.wspolicy.xml.WSPolicyProcessor.read(WSPolicyProcessor.java:58)
at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.read(DefaultStAXArtifactProcessorExtensionPoint.java:296)
at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.read(ExtensibleStAXArtifactProcessor.java:170)
at org.apache.tuscany.sca.policy.xml.PolicySetProcessor.read(PolicySetProcessor.java:219)
at org.apache.tuscany.sca.policy.xml.PolicySetProcessor.read(PolicySetProcessor.java:66)
at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.read(DefaultStAXArtifactProcessorExtensionPoint.java:296)
at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.read(ExtensibleStAXArtifactProcessor.java:170)
at org.apache.tuscany.sca.definitions.xml.DefinitionsProcessor.read(DefinitionsProcessor.java:102)
at org.apache.tuscany.sca.definitions.xml.DefinitionsProcessor.read(DefinitionsProcessor.java:62)
at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.read(DefaultStAXArtifactProcessorExtensionPoint.java:296)
at org.apache.tuscany.sca.policy.wspolicy.WSPolicyTestCase.testReadWsPolicy(WSPolicyTestCase.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)