mace-opensaml-users - Re: [OpenSAML] Issue with SignatureBuilder
Subject: OpenSAML user discussion
List archive
- From: Chandra Tondepu <>
- To:
- Subject: Re: [OpenSAML] Issue with SignatureBuilder
- Date: Thu, 14 Jan 2010 13:46:44 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=aCwBBAOvf27RY2ylv27mn0nhyE0zInec83XUomq1vZgjNi87ucs3IRTM7ylz2CRuOP oE9o6WT3licK/PYC349hf5emWtsAfgBRtdqIzlh5L8HnPKeymhBhRsUPUhPtYDch6bN6 Bv8KJGHOeRKVLZGRhvGyu/pvhj5UgSmc7VL04=
Yes I did lookup by QName. Infact I tried to load the SignatureBuilder explicitly. However I could resolve this by explicitly registering the Builder rather than loading through the XML file.
This particular piece of code has resolved the issue::
Configuration.registerObjectProvider(Signature.DEFAULT_ELEMENT_NAME, new SignatureBuilder(), new SignatureMarshaller(), new SignatureUnmarshaller());
Chad - Thank you for taking time to explain.
On Thu, Jan 14, 2010 at 1:40 PM, Chad La Joie <> wrote:
You'll need to inspect the loaded builders. There is no way to tell what is happening from the code you have here. In general though it's best to look up the builders by their Schema type QName, not the element QName. In theory they should return the same result, but there could be a typo in a config file that no one has caught yet.--
Chandra Tondepu wrote:
The webapplication running on tomcat 6 is not able to load and create object
for SignatureBuilder. I have loaded all the .xml files through
Configuration into the Parser, but for some reason it is not picking up
SingatureBuilder though it is picking up SubjectBuilder, IssuerBuilder,
EnvelopeBuilder etc.,?? Why SignatureBuilder so special??
SignatureBuilder signaturebuilder =
((SignatureBuilder)builderFactory.getBuilder(Signature.DEFAULT_ELEMENT_NAME));
System.out.println("Classname:" + builderFactory.getClass().getName());
System.out.println("SignatureBuilder"+signaturebuilder);
signature123 = (Signature)
((XMLObjectBuilder)builderFactory.getBuilder(Signature.DEFAULT_ELEMENT_NAME)).buildObject(Signature.DEFAULT_ELEMENT_NAME);
java.lang.NullPointerException
at
com.cst.saml2.attrqry.SignAttributeQuery.<init>(SignAttributeQuery.java:122)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
, http://www.switch.ch
- Issue with SignatureBuilder, Chandra Tondepu, 01/14/2010
- Re: [OpenSAML] Issue with SignatureBuilder, Chad La Joie, 01/14/2010
- Re: [OpenSAML] Issue with SignatureBuilder, Chandra Tondepu, 01/14/2010
- Re: [OpenSAML] Issue with SignatureBuilder, Chad La Joie, 01/14/2010
- Re: [OpenSAML] Issue with SignatureBuilder, Chandra Tondepu, 01/14/2010
- Re: [OpenSAML] Issue with SignatureBuilder, Chad La Joie, 01/14/2010
Archive powered by MHonArc 2.6.16.