Hi,
We are using a servlet as an RPC Server. We wanted to add some log information
to this servlet so we over rided the doPost method as below:
public class StandardRPCServlet extends XmlRpcServlet{
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
log.debug("New request recived from " + request.getRemoteHost() + "...");
super.doPost(request, response);
}
The above works, now we want to show the actual RPC Message in the log.
We tried to use below code which shows the RPC Message:
log.debug(request.getReader().readLine());
But we get exception when the code reachs super.doPost(...) method, the error
is:
java.lang.IllegalStateException: getReader() has already been called for this
request
Please let us know how can we solve above issue.
Does XmlRpcServlet, provid methods which can help us access the RPCMessage?!
For examle a Map of recived parameters and their value?
Regards,
Alireza Fattahi
~Regards,
~~Alireza Fattahi
---------------------------------
Try the all-new Yahoo! Mail . "The New Version is radically easier to use"
The Wall Street Journal