Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1512A6A23 for ; Tue, 14 Jun 2011 16:00:11 +0000 (UTC) Received: (qmail 85351 invoked by uid 500); 14 Jun 2011 16:00:10 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 85340 invoked by uid 500); 14 Jun 2011 16:00:10 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 85332 invoked by uid 99); 14 Jun 2011 16:00:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 16:00:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 16:00:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6C4CE415112 for ; Tue, 14 Jun 2011 15:59:47 +0000 (UTC) Date: Tue, 14 Jun 2011 15:59:47 +0000 (UTC) From: "Sergei Danilov (JIRA)" To: issues@cxf.apache.org Message-ID: <469527828.3041.1308067187440.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-3590) Exception when setPrettyLogging(true) for LoggingInInterceptor (or LoggingOutInterceptor) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Exception when setPrettyLogging(true) for LoggingInInterceptor (or LoggingOutInterceptor) ----------------------------------------------------------------------------------------- Key: CXF-3590 URL: https://issues.apache.org/jira/browse/CXF-3590 Project: CXF Issue Type: Bug Components: Core Affects Versions: 2.4.1 Reporter: Sergei Danilov Priority: Minor to reproduce create own logging interceptor public class PrettyLoggingInInterceptor extends LoggingInInterceptor { @Override protected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType) throws Exception { setPrettyLogging(true); super.writePayload(builder, cos, encoding, contentType); } } 1. add PrettyLoggingInInterceptor to web service 2. run client 3. javax.wsdl.WSDLException: WSDLException arise because some client request have no content (e.g get wsdl) workaround public class PatchPrettyLoggingInInterceptor extends LoggingInInterceptor { @Override protected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType) throws Exception { setPrettyLogging(true); //patch if (cos.size() == 0) setPrettyLogging(false); super.writePayload(builder, cos, encoding, contentType); } } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira