Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Getting UnsupportedOperationException while executing the call DefaultBootstrap.bootstrap()

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Getting UnsupportedOperationException while executing the call DefaultBootstrap.bootstrap()


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Cc:
  • Subject: Re: [OpenSAML] Getting UnsupportedOperationException while executing the call DefaultBootstrap.bootstrap()
  • Date: Thu, 03 Apr 2008 19:50:36 -0400

Your JAXP implementation is too old, apparently.

http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#setSchema(javax.xml.validation.Schema)


"Throws:
UnsupportedOperationException - For backward compatibility, when implementations for earlier versions of JAXP is used, this exception will be thrown."

I don't think it's the null that's the problem, it's the use of setSchema period. You need to supply a newer implementation of JAXP, for example Xerces.

https://spaces.internet2.edu/display/OpenSAML/OSTwoUsrManJavaInstall





wrote:
Hi,
I am new to using OpenSAML2 library. I am trying to parse a sample SAML response message. I am getting error while calling DefaultBootstrap.bootstrap(): (source code attached)
Exception in thread "main" java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
at
javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFactory.java:489)
at
org.opensaml.xml.parse.BasicParserPool.initializePool(BasicParserPool.java:498)
at
org.opensaml.xml.parse.BasicParserPool.<init>(BasicParserPool.java:144)
at org.opensaml.xml.XMLConfigurator.<init>(XMLConfigurator.java:70)
at
org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:131)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:75)
at com.hcl.fim.core.TestParser.<init>(TestParser.java:37)
at com.hcl.fim.core.TestParser.main(TestParser.java:80)
The exception seems it is raising during initialization of BasicParserpool. Particular statement is :
newFactory.setSchema(schema); (BasicParserPool.java:498)

In constructor of BasicParserpool, we are initializing schema attribute of
BasicParserpool with null. But it is not accepting the null value. Please let
me know if you have anyidea on this.
Classpath while running the program: E:/opensaml-2.0-rc3-bin/opensaml/dist/opensaml-trunk-jdk-1.5.jar;.;E:/opensaml-2.0-rc3-bin/opensaml/lib/bcprov-jdk14-138.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/commons-codec-1.3.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/commons-collections-3.1.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/commons-httpclient-3.1.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/commons-lang-2.1.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/jargs-1.0.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/jcl104-over-slf4j-1.5.0.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/joda-time-1.5.2.jar;E:/opensaml-2.0-
rc3-bin/opensaml/lib/not-yet-commons-ssl-0.3.9.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/openws-trunk-jdk-1.5.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/slf4j-api-1.5.0.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/velocity-1.5.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/xmlsec-1.4.1.jar;E:/opensaml-2.0-rc3-bin/opensaml/lib/xmltooling-trunk-jdk-1.5.jar;E:\opensaml-2.0-rc3-bin\opensaml\lib\slf4j-log4j12-1.5.0.jar;E:\opensaml-2.0-rc3-bin\opensaml\lib\log4j-1.2.12.jar
Thanks
Koteswararao.



Archive powered by MHonArc 2.6.16.

Top of Page