ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric BOYER <Eric.Bo...@insa-toulouse.fr>
Subject java.lang.NullPointerException with Async
Date Tue, 30 Aug 2005 09:30:58 GMT
Hello,

i have a java.lang.NullPointerException and I don't know why :

java.lang.NullPointerException
    at 
org.apache.xmlrpc.XmlRpcClient$XmlRpcClientAsyncThread.run(XmlRpcClient.java:271)


Have you got an idea ?

My code is :
        XmlRpcClient client = new 
XmlRpcClient("http://footcrix:10500/RPC2");

        Vector params = new Vector();
        params.addElement(new Integer(5000));
       
        XmlRpc.setDebug(true);
        try {
           
            client.executeAsync("bonjour.disBonjour", params, new 
EcouteurAsynchrone());
           
        }
        catch (Exception ex) {
            System.err.println("Error: " + ex.getMessage());
        }

--------------------- EcouteurAsynchrone.java --------------
public class EcouteurAsynchrone implements AsyncCallback{
   

        /*
         * @see 
org.apache.xmlrpc.AsyncCallback#handleResult(java.lang.Object, 
java.net.URL, java.lang.String)
         */
        public void handleResult(Object result, URL url, String method) {
            System.out.println("resultat :");
            System.out.println(result);

        }

        /*
         * @see 
org.apache.xmlrpc.AsyncCallback#handleError(java.lang.Exception, 
java.net.URL, java.lang.String)
         */
        public void handleError(Exception exception, URL url, String 
method) {
            System.out.println("erreur :");
            exception.printStackTrace();
        }

   
}
------------------------------------
Thanks,
Eric


Mime
View raw message