Bizarre behaviour
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Paul_Hunnisett
Posted On:   Monday, July 29, 2002 02:49 AM

I am tryin to build an application, which is essentially a server. It is possible to request html files from the server, and I have also implemented enough of the servlet specs to be able to run a couple of servlets as well. Any requests for static html work without problems, but if I ever make a request for a servlet (via the public service() method) then I seem to get multiple requests being sent and the server fails to return anything. I simply cannot see what could possibly be causing this - the server used to work perfectly and I can't see what I've done that may have stuffed anything up. There are no redirects (that I'm responsible for) and I've used Netscape, Mozilla and IE as browsers. Does anyone have any i   More>>

I am tryin to build an application, which is essentially a server. It is possible to request html files from the server, and I have also implemented enough of the servlet specs to be able to run a couple of servlets as well.

Any requests for static html work without problems, but if I ever make a request for a servlet (via the public service() method) then I seem to get multiple requests being sent and the server fails to return anything.

I simply cannot see what could possibly be causing this - the server used to work perfectly and I can't see what I've done that may have stuffed anything up. There are no redirects (that I'm responsible for) and I've used Netscape, Mozilla and IE as browsers.

Does anyone have any idea what could be causing this? Anyone come accross anything similar?

There is too much code to show you snippets, but feel free to ask any questions about the code I have written and I will post relevant snippets.

   <<Less

Re: Bizarre behaviour

Posted By:   Paul_Hunnisett  
Posted On:   Monday, July 29, 2002 03:02 AM

The problem seems to occur when I call the service() method of my servlet.

This is the code including the call:

LombokServletRequest servletRequest = new LombokServletRequest(request, originalRequest, headers);

LombokServletResponse servletResponse = new LombokServletResponse(out, pout);

try {

adminServlet.service(servletRequest, servletResponse);

pout.flush();

out.flush();



}

The request is created by passing in the current request path, the complete body of the request and the headers as a HashMap. The response simply gets passed an output stream and a PrintWriter for the output.

About | Sitemap | Contact