You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Michael D. Spence" <sp...@panix.com> on 2002/12/17 04:49:31 UTC

Axis and SSL

Tomcat's able to do SSL just fine.  And I can connect to and use my web
service just fine.  But when I change the URL from
http://localhost:8080/axis/services/Myservice to
https://localhost:8443/axis/services/Myservice, I get the error below.
Anybody
got any advice?



INFO: Mapping Exception to AxisFault
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor: null
 faultNode: null
 faultDetail:
        stackTrace: java.lang.NullPointerException
        at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
57)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)

        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
        at org.apache.axis.client.Call.invoke(Call.java:2365)
        at org.apache.axis.client.Call.invoke(Call.java:2062)
        at org.apache.axis.client.Call.invoke(Call.java:1986)
        at org.apache.axis.client.Call.invoke(Call.java:1509)
        at
com.echo.NCNSS.IF.NFMSvcSoapBindingStub.connect(NFMSvcSoapBindingStub
.java:193)
        at soaptester.Frame1.jbInit(Frame1.java:110)
        at soaptester.Frame1.&lt;init&gt;(Frame1.java:50)
        at soaptester.soaptest.&lt;init&gt;(soaptest.java:20)
        at soaptester.soaptest.main(soaptest.java:49)


java.lang.NullPointerException
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:127)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)

        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
        at org.apache.axis.client.Call.invoke(Call.java:2365)
        at org.apache.axis.client.Call.invoke(Call.java:2062)
        at org.apache.axis.client.Call.invoke(Call.java:1986)
        at org.apache.axis.client.Call.invoke(Call.java:1509)
        at
com.echo.NCNSS.IF.NFMSvcSoapBindingStub.connect(NFMSvcSoapBindingStub
.java:193)
        at soaptester.Frame1.jbInit(Frame1.java:110)
        at soaptester.Frame1.<init>(Frame1.java:50)
        at soaptester.soaptest.<init>(soaptest.java:20)
        at soaptester.soaptest.main(soaptest.java:49)
Caused by: java.lang.NullPointerException
        at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
57)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)

        ... 14 more

Michael D. Spence
Mockingbird Data Systems, Inc.



Re: Axis and SSL

Posted by Dmitri Colebatch <di...@colebatch.com>.
I'm sure there's a more complete answer - it looks like you're using
HTTPSender to talk HTTPS which is why its failing.  I've never used the axis
client on https so dont know what its level of support is.

hth
dim

----- Original Message -----
From: "Michael D. Spence" <sp...@panix.com>
To: <ax...@xml.apache.org>
Sent: Tuesday, December 17, 2002 2:49 PM
Subject: Axis and SSL


> Tomcat's able to do SSL just fine.  And I can connect to and use my web
> service just fine.  But when I change the URL from
> http://localhost:8080/axis/services/Myservice to
> https://localhost:8443/axis/services/Myservice, I get the error below.
> Anybody
> got any advice?
>
>
>
> INFO: Mapping Exception to AxisFault
> AxisFault
>  faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: java.lang.NullPointerException
>  faultActor: null
>  faultNode: null
>  faultDetail:
>         stackTrace: java.lang.NullPointerException
>         at
> org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
> 57)
>         at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
>
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
> y.java:71)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
>         at org.apache.axis.client.Call.invoke(Call.java:2365)
>         at org.apache.axis.client.Call.invoke(Call.java:2062)
>         at org.apache.axis.client.Call.invoke(Call.java:1986)
>         at org.apache.axis.client.Call.invoke(Call.java:1509)
>         at
> com.echo.NCNSS.IF.NFMSvcSoapBindingStub.connect(NFMSvcSoapBindingStub
> .java:193)
>         at soaptester.Frame1.jbInit(Frame1.java:110)
>         at soaptester.Frame1.&lt;init&gt;(Frame1.java:50)
>         at soaptester.soaptest.&lt;init&gt;(soaptest.java:20)
>         at soaptester.soaptest.main(soaptest.java:49)
>
>
> java.lang.NullPointerException
>         at org.apache.axis.AxisFault.makeFault(AxisFault.java:127)
>         at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
>
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
> y.java:71)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
>         at org.apache.axis.client.Call.invoke(Call.java:2365)
>         at org.apache.axis.client.Call.invoke(Call.java:2062)
>         at org.apache.axis.client.Call.invoke(Call.java:1986)
>         at org.apache.axis.client.Call.invoke(Call.java:1509)
>         at
> com.echo.NCNSS.IF.NFMSvcSoapBindingStub.connect(NFMSvcSoapBindingStub
> .java:193)
>         at soaptester.Frame1.jbInit(Frame1.java:110)
>         at soaptester.Frame1.<init>(Frame1.java:50)
>         at soaptester.soaptest.<init>(soaptest.java:20)
>         at soaptester.soaptest.main(soaptest.java:49)
> Caused by: java.lang.NullPointerException
>         at
> org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
> 57)
>         at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
>
>         ... 14 more
>
> Michael D. Spence
> Mockingbird Data Systems, Inc.
>