mace-opensaml-users - Re: NullPointerException when building objects
Subject: OpenSAML user discussion
List archive
- From:
- To:
- Subject: Re: NullPointerException when building objects
- Date: Mon, 27 Aug 2007 15:07:10 -0300
Hi Brent,
Before you use any OpenSAML 2 code, you need to initialize the library
as described here under "Configurating the Library":
Thank you for pointing me that, I added the bootstrap to the code and now I'm getting an error that says the configuration file doesnt validate against the schema. Do I need to change anything on the configuration files? (I've built the lib from the opensaml2 "trunk", and did not change anything, just compiled it).
Best Regards,
Maicon
ps. The error messages are bellow:
org.opensaml.xml.ConfigurationException: Configuration file does not validate against schema
at org.opensaml.xml.XMLConfigurator.validateConfiguration(XMLConfigurator.java:397)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:156)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:129)
at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:137)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:73)
at teste.Main.main(Main.java:36)
Caused by: org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'xt:DEFAULT' as a QName: the prefix 'xt' is not declared.
at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)
at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2799)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2735)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:357)
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:220)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:141)
at javax.xml.validation.Validator.validate(Validator.java:82)
at org.opensaml.xml.XMLConfigurator.validateConfiguration(XMLConfigurator.java:388)
.... (log was cut by IDE) ...
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
- NullPointerException when building objects, stihler, 08/27/2007
- Re: NullPointerException when building objects, Brent Putman, 08/27/2007
- Re: NullPointerException when building objects, stihler, 08/27/2007
- Re: NullPointerException when building objects, Brent Putman, 08/27/2007
- Re: NullPointerException when building objects, Chad La Joie, 08/28/2007
- RE: NullPointerException when building objects, Scott Cantor, 08/28/2007
- Message not available
- Re: NullPointerException when building objects, Chad La Joie, 08/28/2007
- RE: NullPointerException when building objects, Scott Cantor, 08/28/2007
- Message not available
- Re: NullPointerException when building objects, Chad La Joie, 08/28/2007
- RE: NullPointerException when building objects, Scott Cantor, 08/28/2007
- Message not available
- Re: NullPointerException when building objects, Chad La Joie, 08/28/2007
- Re: NullPointerException when building objects, Chad La Joie, 08/28/2007
- Re: NullPointerException when building objects, Chad La Joie, 08/28/2007
- Re: NullPointerException when building objects, Brent Putman, 08/27/2007
- Re: NullPointerException when building objects, stihler, 08/27/2007
- Re: NullPointerException when building objects, Brent Putman, 08/27/2007
Archive powered by MHonArc 2.6.16.