Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-13148

ControlServlet falls into error with Cookies log output when Debug log level is switched to verbose

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 18.12.17
    • framework/webapp
    • None

    Description

      When running OfBiz with debug level logging, the ControlServlet on WebApp falls into a runtime error as follows when a web page is invoked:

      Servlet.service() for servlet [ControlServlet] in context with path [/cdc-resmon] threw exception java.lang.ArrayStoreException: javax.servlet.http.Cookie

      This is caused by the way Cookies are lined up to be streamed using a Cookie[].

      instead, Cookies should be rendered to a Map before being streamed to String for logging.

       

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            c_schinzer Carsten Schinzer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: