have null pointer ecxeption when execute call(SOAP_ACTION, envelope)

59 views
Skip to first unread message

Aa64

unread,
Mar 27, 2014, 3:55:43 PM3/27/14
to ksoap2-...@googlegroups.com

This is my code, and i have an excxeption on the call method of the HttpsServiceConnectionSE


HttpsTransportSE androidHttpTransport = new HttpsTransportSE(HOST,PORT,"mitest/service/miService",timeOut);

androidHttpTransport.setUrl("https://10.203.25.149:39005/mitest/service/miService");

((HttpsServiceConnectionSE) androidHttpTransport.getServiceConnection()).setSSLSocketFactory(getSSLSocketFactory());

Log.i("WSclient", "androidHttpTransport");

androidHttpTransport.debug = true;

_FakeX509TrustManager.allowAllSSL();

Log.d("WSclient", "HTTP before CALL");

try{

androidHttpTransport.call(SOAP_ACTION, envelope);

}catch(Exception ee){

Log.d("WSclient", "catch CALL");

ee.printStackTrace();

}

---- 

03-27 13:29:57.136: W/System.err(528): java.lang.NullPointerException

03-27 13:29:57.136: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection$Address.hashCode(HttpConnection.java:296)

03-27 13:29:57.136: W/System.err(528): at java.util.HashMap.get(HashMap.java:302)

03-27 13:29:57.136: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:73)

03-27 13:29:57.136: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHttpConnection(HttpURLConnectionImpl.java:292)

03-27 13:29:57.146: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.makeConnection(HttpURLConnectionImpl.java:274)

03-27 13:29:57.146: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:447)

03-27 13:29:57.146: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:419)

03-27 13:29:57.146: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:217)

03-27 13:29:57.146: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:624)

03-27 13:29:57.146: W/System.err(528): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:293)

03-27 13:29:57.146: W/System.err(528): at org.ksoap2.transport.HttpsServiceConnectionSE.openOutputStream(HttpsServiceConnectionSE.java:123)

03-27 13:29:57.146: W/System.err(528): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:185)

03-27 13:29:57.146: W/System.err(528): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118)

03-27 13:29:57.146: W/System.err(528): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113)


Reply all
Reply to author
Forward
0 new messages