santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Speirs <>
Subject Re: Transform NullPointerException
Date Fri, 25 Mar 2011 18:48:51 GMT
I was able to solve my issue, I had forgotten the init block: static {; }

So I am able to create a signed XML document; however, now I'm having
issues trying to validate the XML signature in C++. I've attached the
C++ code to this document.

Does anyone notice that I'm doing something completely wrong?



On Thu, Mar 24, 2011 at 10:37 PM, Bill Speirs <> wrote:
> I'm trying to apply a DSA signature to the XML output of a JAXB object
> by following this example: I'm able to convert
> the JAXB object to a Document; however, when I go to create the
> XMLSignature I'm unsure what BaseURI I should use as my XML is not
> coming from a file like in the example.
> The real problem though is that when I attempt to add a Transform, I
> keep getting a NullPointerException on this line:
> transforms.addTransform(Transforms.TRANSFORM_C14N_WITH_COMMENTS);
> Exception in thread "main" java.lang.NullPointerException
>        at Source)
>        at<init>(Unknown Source)
>        at Source)
>        at Source)
>        at Source)
>        at test.Test.main(
> I have attached my source example file and the associated XSD file I
> used to generate the Token & Principal JAXB objects.
> Any help or insight would be greatly appreciated.
> Thanks in advance...
> Bill-

View raw message