You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by tobias <to...@t-systems.com> on 2015/02/09 17:50:48 UTC
java.lang.UnsupportedOperationException in Stax API with logging
enabled
After enabling the logging I get this exception. Please help me to fix it.
java.lang.UnsupportedOperationException
at
org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl.writeAsEncodedUnicode(XMLSecEventBaseImpl.java:161)
at
org.apache.xml.security.stax.impl.processor.input.LogInputProcessor.processNextEvent(LogInputProcessor.java:54)
at
org.apache.xml.security.stax.impl.InputProcessorChainImpl.processEvent(InputProcessorChainImpl.java:193)
at
org.apache.xml.security.stax.impl.XMLSecurityStreamReader.next(XMLSecurityStreamReader.java:78)
at
de.gematik.intermediaer.tslapi.xmlsign.TSLXmlSigner.verify(TSLXmlSigner.java:118)
at
de.gematik.intermediaer.tslapi.xmlsign.TSLXmlSigner.verify(TSLXmlSigner.java:196)
at de.gematik.TSLAPI.TestTSLXmlSigner.testVerify(TestTSLXmlSigner.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
--
View this message in context: http://apache-xml-project.6118.n7.nabble.com/java-lang-UnsupportedOperationException-in-Stax-API-with-logging-enabled-tp41688.html
Sent from the Apache XML - Security - Dev mailing list archive at Nabble.com.
Re: java.lang.UnsupportedOperationException in Stax API with logging enabled
Posted by Colm O hEigeartaigh <co...@apache.org>.
It looks like a bug - the XMLSecEventBaseImpl.writeAsEncodedUnicode method
is not implemented by any of the subclasses. Could you log a JIRA?
Colm.
On Mon, Feb 9, 2015 at 4:50 PM, tobias <to...@t-systems.com> wrote:
> After enabling the logging I get this exception. Please help me to fix it.
>
> java.lang.UnsupportedOperationException
> at
>
> org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl.writeAsEncodedUnicode(XMLSecEventBaseImpl.java:161)
> at
>
> org.apache.xml.security.stax.impl.processor.input.LogInputProcessor.processNextEvent(LogInputProcessor.java:54)
> at
>
> org.apache.xml.security.stax.impl.InputProcessorChainImpl.processEvent(InputProcessorChainImpl.java:193)
> at
>
> org.apache.xml.security.stax.impl.XMLSecurityStreamReader.next(XMLSecurityStreamReader.java:78)
> at
>
> de.gematik.intermediaer.tslapi.xmlsign.TSLXmlSigner.verify(TSLXmlSigner.java:118)
> at
>
> de.gematik.intermediaer.tslapi.xmlsign.TSLXmlSigner.verify(TSLXmlSigner.java:196)
> at
> de.gematik.TSLAPI.TestTSLXmlSigner.testVerify(TestTSLXmlSigner.java:16)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at
>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at
>
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at
>
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at
>
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
>
>
>
> --
> View this message in context:
> http://apache-xml-project.6118.n7.nabble.com/java-lang-UnsupportedOperationException-in-Stax-API-with-logging-enabled-tp41688.html
> Sent from the Apache XML - Security - Dev mailing list archive at
> Nabble.com.
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com