You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by LEONARD Benjamin <b....@intrasoft.be> on 2003/04/01 15:53:20 UTC

RE: problem with exception

Hello 
thank for your responce!
We find the problem by ourself!
version of soap is 2.2!
In the application the call object was reused during the client session.
When a exception was created in the server an attribute 
inside the call object disapear ( TargetObjectURI was set to null).
So next invoke on this call object obviously fails ! 

thanks
and by!

-----Original Message-----
From: Scott Nichol [mailto:snicholnews@scottnichol.com]
Sent: vendredi 28 mars 2003 23:08
To: soap-user@ws.apache.org
Subject: Re: problem with exception


Some information that would be useful:

What version of Apache SOAP are you using?

How does the client use Call and transport classes, e.g. does it 
create a new Call for each call, does it create one 
SOAPHTTPConnection that gets re-used for all calls?

Is the exception *always* "service '' unknown"?

Have you captured the messages between the client and server to 
determine whether the client is sending an invalid request?


On 26 Mar 2003 at 12:15, LEONARD Benjamin wrote:

> we have an applet that connect using soap to an bea application server
where
> all the services are installed.
> it work quite fine. But when one of the service throw an exception
> (SOAPException or Exception) the fault is well 
> received in the applet and is managed. But after receiving this exception
> the service is not enable anymore ! ! 
> we receive a fault like 
> 
> <faultcode>SOAP-ENV:Server</faultcode> 
> <faultstring>service '' unknown</faultstring> 
> <faultactor>/sysAudit/servlet/rpcrouter</faultactor>
> 
> but only forthe current applet.Other clients continue to work fine !!!
Do
> someone knows what we do wrong ??????????????
> and have a way to solve the problem
> 
> 
> in the service we throw 
>  public MISSION_SEARCH_VIEWData[]
> getSearchMission(HELPER_SEARCH_MISSION_VIEWData a_Data ) throws
> AUDSoapException
>     {
>         
> 
>        MISSION_SEARCH_VIEWData[] data=null;
>             try
>             {
>                 SearchMission mm = new SearchMission ();
>                 data = mm.getSearchMission ( a_Data );
>             }
> 
>             catch(AUDException e)
>             {
>                 System.out.println("Exception in getSearchMission "  );
>                 e.printStackTrace ();
> 
>                 throw new AUDSoapException(e);
>             }
> 
>         return data;
> 
> in the client
> 
>  if (resp.generatedFault())
>         {
>             Fault fault = resp.getFault();
>             //throw exception if there's a problem
>             throw new SOAPException(fault.getFaultCode(),
> fault.getFaultString());
>         }
> 
> 
> 
> 
> 
> Benjamin LĂ©onard
> Software Engineer
> 
> 
> 


Scott Nichol

Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.