[OpenSAML] OpenSAML initialization fails

1,795 views
Skip to first unread message

Kobe Bryant

unread,
Mar 19, 2011, 6:57:54 PM3/19/11
to mace-open...@internet2.edu
I am trying to initialize OpenSAML and it fails in initializing
XMLtooling as follows. It clearly fails to find one of the configuration
XML files listed in DefaultBootstrap.java- but I am not able to
figure out which. Turning logf4j to DEBUG has no effect - I still get
only INFO messages. I am runnig OpenSAML ver 2.2.3.

Pl help.


java.lang.IllegalArgumentException: InputStream cannot be null
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120)
org.opensaml.xml.parse.BasicParserPool$DocumentBuilderProxy.parse(BasicParserPool.java:643)
org.opensaml.xml.parse.BasicParserPool.parse(BasicParserPool.java:216)
org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:141)
org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:143)
org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:83)


/K

Its Me

unread,
Mar 19, 2011, 11:37:15 PM3/19/11
to mace-open...@internet2.edu
Hi,

    I hope you need to add 'openws-1.4.1.jar' to the lib. I got the same issue.

Suguna

--- On Sat, 3/19/11, Kobe Bryant <kbbry...@gmail.com> wrote:

Kobe Bryant

unread,
Mar 20, 2011, 1:20:11 AM3/20/11
to mace-open...@internet2.edu
Suguna,

thanks for your help. After I install openws-1.3.1.jar I get a different exception
about missing org.joda.time.ReadableInstant class.

When I add joda-time-1.6.2.jar to the classpath, I get the same exception again
despite the fact that I have openws-1.3.1.jar in classpath.

Do I specifically need openws-1.4.1.jar? 
          
java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
java.lang.Class.getConstructor0(Class.java:2699)
java.lang.Class.getConstructor(Class.java:1657)
org.opensaml.xml.XMLConfigurator.createClassInstance(XMLConfigurator.java:355)
org.opensaml.xml.XMLConfigurator.initializeObjectProviders(XMLConfigurator.java:239)
org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:181)
org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:165)
org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:142)
org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:143)
org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:83)

thanks!

/K

Kobe Bryant

unread,
Mar 20, 2011, 1:31:27 AM3/20/11
to mace-open...@internet2.edu
Using openws-1.4.1jar causes the same problem - i.e., if I installed the required joda-time-1.6.2.jar
I get back the original error (InputStream cannot be null).

Could you pl let me know what dependencies you have for opensaml-2.2.3.jar?

thanks,

/K

Chad La Joie

unread,
Mar 20, 2011, 4:05:54 AM3/20/11
to mace-open...@internet2.edu
All of the dependencies you need come with the distribution.

>>> --- On *Sat, 3/19/11, Kobe Bryant <kbbry...@gmail.com>* wrote:
>>>
>>>
>>> From: Kobe Bryant <kbbry...@gmail.com>
>>> Subject: [OpenSAML] OpenSAML initialization fails
>>> To: mace-open...@internet2.edu
>>> Date: Saturday, March 19, 2011, 5:57 PM
>>>
>>>
>>> I am trying to initialize OpenSAML and it fails in initializing
>>> XMLtooling as follows. It clearly fails to find one of the configuration
>>> XML files listed in DefaultBootstrap.java- but I am not able to
>>> figure out which. Turning logf4j to DEBUG has no effect - I still get
>>> only INFO messages. I am runnig OpenSAML ver 2.2.3.
>>>
>>> Pl help.
>>>
>>>
>>> java.lang.IllegalArgumentException: InputStream cannot be null
>>> javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:120)
>>>
>>> org.opensaml.xml.parse.BasicParserPool$DocumentBuilderProxy.parse(BasicParserPool.java:643)
>>>
>>> org.opensaml.xml.parse.BasicParserPool.parse(BasicParserPool.java:216)
>>> org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:141)
>>>
>>> org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:143)
>>>
>>> org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:83)
>>>
>>>
>>>
>>> /K
>>>
>>>
>>>
>>
>

--
Chad La Joie
http://itumi.biz
trusted identities, delivered

Reply all
Reply to author
Forward
0 new messages