axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asma Maalej <amaa...@laas.fr>
Subject unknown error
Date Thu, 06 Aug 2009 14:39:28 GMT
hello every one

Actually, i used to work with axis2, implementing web service and 
invoking them by a simple client and it worked usually fine.
however, i was surprised by a throwed exception i don't know the reason
below is the client code which was working fine:

import java.rmi.RemoteException;

import org.apache.axis2.AxisFault;

import doca.SoustraStub.Soust;
import doca.SoustraStub.SoustResponse;

public class SoustraClient {
public static void main (String argv[]){
   
    try {
        SoustraStub stub = new 
SoustraStub("http://localhost:8080/finalServ/services/Soustra");
   
        Soust sous = new Soust();
       
        sous.setB(7);
        sous.setB(4);
       
        SoustResponse resp = stub.soust(sous);
       
    System.out.println("le r├ęsultat de soustraction est 
:"+resp.get_return());
    } catch (AxisFault e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (RemoteException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
   
}
}

and this is the unknown exception:

org.apache.axis2.AxisFault: unknown
    at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
    at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
    at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at doca.SoustraStub.soust(SoustraStub.java:186)
    at doca.SoustraClient.main(SoustraClient.java:21)

please help

Mime
View raw message