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 Vy Ho <st...@drexel.edu> on 2005/01/14 18:53:06 UTC

Axis Bug in handling error in DataHandler

When calling a function with DataHandler as an attachment:

public void doit(DataHandler dh);

I would do this:

DataHandler dh = new DataHandler(new FileDataSource(filename));
mystub.doit(dh);

The problem is that when filename is not found, or a directory, an 
exception is generated in the client side instantly after the call, 
however, Axis still proceeds any way!

So, the server will get a request, and generate an exception.  This will 
propagate back to the client, then the client get the exception.  Is 
this the way it should be handled?  Also, when this happens, it takes 
along time for the server to return, so there's a bug on the server here 
too.  It shows that the server does not handle error well with regard to 
performance.