Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] org.eclipse.jetty.servlet.DefaultServlet: "d != java.lang.String" since 9.2.3

Sounds like a bug.
But in the meantime, disable the debug logging of DefaultServlet in your logging configuration.
That will avoid that specific warning/error for you.

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Thu, Sep 18, 2014 at 7:08 AM, Vullhorst, Wolfgang <wvullhorst@xxxxxxxxxx> wrote:

Hi all,


  I installed Jetty 9.2.3.v20140905 and deployed my servlets successfully.


When requesting _javascript_ or binary data I receive the following message:


18.09 13:30:53.176  WARN (qtp15683161-17 - /cetis-ssml/nextgendialog/dlgnextgen/CH/images/common/header.gif?sessionId=ky8pOZB) [servlet.DefaultServlet] EXCEPTION

java.util.IllegalFormatConversionException: d != java.lang.String


      at java.util.Formatter.format(

      at java.util.Formatter.format(

      at java.lang.String.format(

      at org.eclipse.jetty.servlet.DefaultServlet.doGet(


The source code of DefaultServlet looks like this at lines 496,497:


if (LOG.isDebugEnabled())

LOG.debug(String.format("uri=%s, resource=%s, content=%s",request.getRequestURI(),resource,content));


When I change the Log level in my configuration to INFO, the problem logically disappears.


My question is:

Is this a bug in the DefaultServlet implementation (the code was modified at this point fom 9.2.2 to 9.2.3) or do I miss something in my deployment (e.g. content types)?


Freundliche Grüße / Kind regards
Wolfgang Vullhorst

jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top