mace-opensaml-users - Re: [OpenSAML] Relying party with OpenSAML works on Windows, but NullPointerException on Debian System
Subject: OpenSAML user discussion
List archive
Re: [OpenSAML] Relying party with OpenSAML works on Windows, but NullPointerException on Debian System
Chronological Thread
- From: Chad La Joie <>
- To:
- Subject: Re: [OpenSAML] Relying party with OpenSAML works on Windows, but NullPointerException on Debian System
- Date: Mon, 02 Feb 2009 09:45:14 +0100
- Openpgp:
- Organization: SWITCH
Well, this would normally occur if the OpenSAML library wasn't
initialized. Now, normally I would expect this to be done by the
application using the library and certainly not the people using that
application/library. My guess, though, is that since it works on one
platform and not another it's probably a path issue. To initialize
itself OpenSAML reads a set of configuration files that tells it,
amongst other things, all the marshallers, unmarshallers, and object
factories to use for the various XML elements with which it should work.
I'd send a note to the JInfoCard folks and ask about this.
Nico Peters wrote:
> I'm not sure and I'm not able to debug on that system. Here is the complete
> method:
>
> public ClaimIdentity getID(Element elem, PrivateKey pk) throws JICException
> {
> UnmarshallerFactory umf = Configuration.getUnmarshallerFactory();
> Unmarshaller unmarshaller = umf.getUnmarshaller(elem);
> try {
> log.debug("attempting to unmarshall DOM representation of SAML
> token.");
> XMLObject xmlobj = unmarshaller.unmarshall(elem);
> return getID(xmlobj, pk);
> } catch (UnmarshallingException e) {
> throw new JICException("error unmarshalling SAML assertion", e);
> }
>
> }
>
> If the element would be null, would the code "Unmarshaller unmarshaller =
> umf.getUnmarshaller(elem);" work? In fact, this code is not from me, but
> from the JInfoCard framework. Its the class
> de.fraunhofer.fokus.jic.framework.impl.FrameworkImpl.
>
> cheers,
>
> nico
>
>
>
>
> On Fri, Jan 30, 2009 at 5:36 PM, Chad La Joie
> <>
> wrote:
>
>> Whats null? the unmarshaller or the element?
>>
>>
>> wrote:
>>> Hi,
>>>
>>> I've integrated the JInfoCard Framework into my web application. The
>> Framework uses OpenSAML for processing SAML tokens. My implementation works
>> on Windows machines, but not on my Debian server. I get a
>> NullPointerException in the following line:
>>> XMLObject xmlobj = unmarshaller.unmarshall(elem);
>>>
>>> The Debian system is an unstable Debian with Tomcat 5.5, Java 6 and an
>> Apache 2 Webserver that connects to tomcat via mod_proxy.
>>> I couldn't find any information about my problem anywhere on the net.
>> Does anyone have an idea why it doesn't work?
>>> Thanks in advance.
>>>
>>> Cheers
>>>
>>> Nico
>> --
>> 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
>>
>>
>
--
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
- Re: [OpenSAML] Relying party with OpenSAML works on Windows, but NullPointerException on Debian System, Chad La Joie, 02/02/2009
Archive powered by MHonArc 2.6.16.