Here is the stacktrace.
java.lang.RuntimeException: getNodeSet() called but no input data present
at
org.apache.xml.security.signature.XMLSignatureInput.getNodeSet(Unknown
Source)
at
org.apache.xml.security.signature.XMLSignatureInput.getNodeSet(Unknown
Source)
at
org.apache.xml.security.transforms.implementations.TransformEnvelopedSignatu
re.enginePerformTransform(Unknown Source)
at
org.apache.xml.security.transforms.Transform.performTransform(Unknown
Source)
at
org.apache.xml.security.transforms.Transforms.performTransforms(Unknown
Source)
at
org.apache.xml.security.signature.Reference.getContentsAfterTransformation(U
nknown Source)
at
org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransfor
ms(Unknown Source)
at
org.apache.xml.security.signature.Reference.calculateDigest(Unknown Source)
at org.apache.xml.security.signature.Reference.verify(Unknown
Source)
at
org.apache.xml.security.signature.Manifest.verifyReferences(Unknown Source)
at org.apache.xml.security.signature.SignedInfo.verify(Unknown
Source)
at
org.apache.xml.security.signature.XMLSignature.checkSignatureValue(Unknown
Source)
at nl.uwv.dsig.DSigManager.verify(DSigManager.java:184)
at
nl.uwv.dsig.DSigManagerTest.testVerifyInvalidMissingElement(DSigManagerTest.
java:80)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:421)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:305)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:186)
Joris
-----Oorspronkelijk bericht-----
Van: Raul Benito [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 2 november 2004 10:09
Aan: [EMAIL PROTECTED]
Onderwerp: Re: RuntimeException
> Hi,
>
>
>
> I' m testing with 1.2RC1 release. I have this test that removes a signed
> element and then tries to verify the signature over the removed. In
> release
> 1.1 this resulted in a XMLSignatureException and now it results in a
> RuntimeException. When the signed element is missing I'd like my software
> component to return that the verification failed. What is the rational
> behind the XMLSignatureInput throwing a RuntimeException? And if I'm not
> happy with that RuntimeException how can I prevent it from being thrown?
>
>
>
Can you post the stacktrace so I can see whats happening?
The RuntimeException is intended to be thrown when some path that I don't
think will be taken on normal executions is reached. If it is a usual
error a XMLSignatureException will be raisen.
But first I need to check the stack trace.
Thanks,
Raul
http://r-bg.com
> Thanks,
>
>
>
> Joris Wijlens
>
>
>
>
>
>