Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Issue with SignatureBuilder

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Issue with SignatureBuilder


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [OpenSAML] Issue with SignatureBuilder
  • Date: Thu, 14 Jan 2010 19:40:19 +0100
  • Organization: SWITCH

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




Archive powered by MHonArc 2.6.16.

Top of Page