You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by "t. winkler" <t....@sdz-medien.de> on 2003/03/03 11:09:07 UTC

Antw: Re: AXIS signature

Hello there,

Adding the print statement as proposed by Christian I get the following error message:
C:\webservices\webapps\axis\WEB-INF\classes>java wsumsatz/Client
invoking...
Beginning Client signing...
SignedSOAPEnvelope.cert = null
java.lang.NullPointerException
        at org.apache.xml.security.keys.content.x509.XMLX509Certificate.<init>(XMLX509Certificate.java:123)
        at org.apache.xml.security.keys.content.X509Data.addCertificate(X509Data.java:284)
        at org.apache.xml.security.signature.XMLSignature.addKeyInfo(XMLSignature.java:735)
        at wsumsatz.SignedSOAPEnvelope.init(SignedSOAPEnvelope.java:152)
        at wsumsatz.SignedSOAPEnvelope.<init>(SignedSOAPEnvelope.java:105)
        at wsumsatz.SignatureHandler_Clientside.invoke(SignatureHandler_Clientside.java:39)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
        at org.apache.axis.client.Call.invoke(Call.java:2102)
        at org.apache.axis.client.Call.invoke(Call.java:1851)
        at org.apache.axis.client.Call.invoke(Call.java:1777)
        at org.apache.axis.client.Call.invoke(Call.java:1315)
        at wsumsatz.Client.main(Client.java:47)
java.lang.RuntimeException: java.lang.NullPointerException
C:\webservices\webapps\axis\WEB-INF\classes>

SignedSOAPEnvelope.cert = null -> I guess it means I don' have a certificate at all, do I?

Hope to hear from you all! 

Yours,
Tobias

PS: Sorry for being late in answering. I've been away from work on Thursday and Friday 'cause we had some courses to take at the university.




Tobias Winkler
BA-Student

Theiss & Binkowski Aalen
GmbH & Co. Rechenzentrum
Bahnhofstrasse 65, 73430 Aalen
Telefon 07361/594-313
Telefax 07361/594-306
E-Mail t.winkler@sdz-medien.de
http://tbr.sdz-medien.de

>>> Christian Geuer-Pollmann <ge...@nue.et-inf.uni-siegen.de> 26.02.2003  20.22 Uhr >>>
--On Mittwoch, 26. Februar 2003 18:26 +0100 "t. winkler" 
<t....@sdz-medien.de> wrote:

> java.lang.NullPointerException
>         at
> org.apache.xml.security.keys.content.x509.XMLX509Certificate.<init>(XMLX5
> 09Certificate.java:123)         at
> org.apache.xml.security.keys.content.X509Data.addCertificate(X509Data.jav
> a:284)         at
> org.apache.xml.security.signature.XMLSignature.addKeyInfo(XMLSignature.ja
> va:735)         at
> wsumsatz.SignedSOAPEnvelope.init(SignedSOAPEnvelope.java:148)         at


Add a print statement in SignedSOAPEnvelope after you get the certificate:

X509Certificate cert = (X509Certificate) 
ks.getCertificate(certificateAlias);
System.out.println("SignedSOAPEnvelope.cert = " + cert);

What's printed out there?

C.



Re: Antw: Re: AXIS signature

Posted by Christian Geuer-Pollmann <ge...@nue.et-inf.uni-siegen.de>.

--On Montag, 3. März 2003 11:09 +0100 "t. winkler" 
<t....@sdz-medien.de> wrote:

> Hello there,
>
> Adding the print statement as proposed by Christian I get the following
> error message: C:\webservices\webapps\axis\WEB-INF\classes>java
> wsumsatz/Client invoking...
> Beginning Client signing...
> SignedSOAPEnvelope.cert = null
> java.lang.NullPointerException
>         at
> org.apache.xml.security.keys.content.x509.XMLX509Certificate.<init>(XMLX5
> 09Certificate.java:123)         at
> org.apache.xml.security.keys.content.X509Data.addCertificate(X509Data.jav
> a:284)         at
> org.apache.xml.security.signature.XMLSignature.addKeyInfo(XMLSignature.ja
> va:735)         at
> wsumsatz.SignedSOAPEnvelope.init(SignedSOAPEnvelope.java:152)         at
> wsumsatz.SignedSOAPEnvelope.<init>(SignedSOAPEnvelope.java:105)
> at
> wsumsatz.SignatureHandler_Clientside.invoke(SignatureHandler_Clientside.j
> ava:39)         at
> org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)         at
> org.apache.axis.client.Call.invokeEngine(Call.java:2113)         at
> org.apache.axis.client.Call.invoke(Call.java:2102)
>         at org.apache.axis.client.Call.invoke(Call.java:1851)
>         at org.apache.axis.client.Call.invoke(Call.java:1777)
>         at org.apache.axis.client.Call.invoke(Call.java:1315)
>         at wsumsatz.Client.main(Client.java:47)
> java.lang.RuntimeException: java.lang.NullPointerException
> C:\webservices\webapps\axis\WEB-INF\classes>
>
> SignedSOAPEnvelope.cert = null -> I guess it means I don' have a
> certificate at all, do I?

Yes, this means that you should simply debug your keystore. It's not an 
xml-axis problem, it's not an xml-security problem, it's not an 
whatever-examples-from-some-book problem. You tried to get a certificate 
from a keystore and that cert does not exist.

Please check the inputs and outputs of all function calls before starting 
support questions...

Very best regards,
Christian