Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Warning from ProxyServlet

I have a ProxyServlet.Transparent set up within a Jetty server to forward URLs ending "/sparql" to another web server that hosts a knowledge base.

context.addServlet(new ServletHolder(new ProxyServlet.Transparent(
"/sparql", repositoryServerHost, repositoryServerPort)), "/sparql/*");

Normally the proxying works fine, but intermittently I send a request and it causes:

1. Jetty to log a warning - WARN [org.eclipse.jetty.servlets.ProxyServlet$Transparent-30476892-30] (Slf4jLog.java:40) - Unexpected data received but no request sent

2. My HTTP client to hang waiting for a response

3. My underlying server to log that it has received and processed a request.

Looking through the source xref I found that the warning message comes from handle() in org.eclipse.jetty.client.HttpConnection, and gets logged if it is discovered that a response contains data while _exchange is null.

Any suggestions why this might be happening? It seems that somewhere the reference to _exchange is not getting set properly, because clearly a request _is_ being sent. Unfortunately I can't see a clear link between the type of request that I send and the appearance of the warning. Let me know if this would be better directed to the dev mailing list or a bug report.

Thanks,

Mark Payne


Back to the top