[ 
https://issues.apache.org/jira/browse/OFBIZ-13148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888541#comment-17888541
 ] 

ASF subversion and git services commented on OFBIZ-13148:
---------------------------------------------------------

Commit c09f98e9bbe792b24be5f358fe2134fa8b9bfb01 in ofbiz-framework's branch 
refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=c09f98e9bb ]

Fixed: ControlServlet falls into error with Cookies log output when Debug log 
level is switched to verbose (OFBIZ-13148)

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.


> ControlServlet falls into error with Cookies log output when Debug log level 
> is switched to verbose
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13148
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13148
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework/webapp
>            Reporter: Carsten Schinzer
>            Assignee: Jacques Le Roux
>            Priority: Major
>         Attachments: 
> Fix_the_streaming_issue_with_Cookie_class_when_running_the_Debug_log_statement.patch
>
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to