Skip to Content.
Sympa Menu

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: Nico Peters <>
  • To:
  • Subject: Re: [OpenSAML] Relying party with OpenSAML works on Windows, but NullPointerException on Debian System
  • Date: Sat, 31 Jan 2009 13:28:27 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fZyfMYROcZwrQf7sg+tQhQY6luhNkBtWQ5PaJcoVvD6TgS51tniAtU44bVM+A49LqN 0NShr4jDzbMXcTqVXUT7nktskq2FmA0fW2V3tnQbsizbunplKs5SpEcrkPGTbGDd3BMd MVFuLoYh+cne3aacy3iBwqV4H/l9GIgmazsNw=

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?

nicopeters.np@gmail.com 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





Archive powered by MHonArc 2.6.16.

Top of Page