You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Cyrille Le Clerc (JIRA)" <ax...@ws.apache.org> on 2006/04/03 17:46:00 UTC

[jira] Created: (AXIS-2455) LogHandler writeToConsole broken

LogHandler writeToConsole broken
--------------------------------

         Key: AXIS-2455
         URL: http://issues.apache.org/jira/browse/AXIS-2455
     Project: Apache Axis
        Type: Bug

  Components: Basic Architecture  
    Versions: 1.3    
 Environment: All
    Reporter: Cyrille Le Clerc


LogHandler fails to print SOAP messages (at least short messages) in the console ; nothing is outputted in the console.

Note that SOAP Messages are properly outputted by LogHandler to log files.

This seems due to the fact that the content is written in a PrintWriter that is not flushed before it is throw away.

Environment : 
- Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
- Axis 1.3
client-config.wsdd with <handler name="log" type="java:org.apache.axis.handlers.LogHandler"><parameter name="LogHandler.writeToConsole" value="true" /></handler>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2455) LogHandler writeToConsole broken

Posted by "Cyrille Le Clerc (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2455?page=all ]

Cyrille Le Clerc updated AXIS-2455:
-----------------------------------

    Attachment: client-config.wsdd

Client configuration used to reproduce the problem : short SOAP Messages will not appear in the console.

> LogHandler writeToConsole broken
> --------------------------------
>
>          Key: AXIS-2455
>          URL: http://issues.apache.org/jira/browse/AXIS-2455
>      Project: Apache Axis
>         Type: Bug

>   Components: Basic Architecture
>     Versions: 1.3
>  Environment: All
>     Reporter: Cyrille Le Clerc
>  Attachments: client-config.wsdd
>
> LogHandler fails to print SOAP messages (at least short messages) in the console ; nothing is outputted in the console.
> Note that SOAP Messages are properly outputted by LogHandler to log files.
> This seems due to the fact that the content is written in a PrintWriter that is not flushed before it is throw away.
> Environment : 
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> - Axis 1.3
> client-config.wsdd with <handler name="log" type="java:org.apache.axis.handlers.LogHandler"><parameter name="LogHandler.writeToConsole" value="true" /></handler>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-2455) LogHandler writeToConsole broken

Posted by "Jarek Gawor (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2455?page=all ]
     
Jarek Gawor resolved AXIS-2455:
-------------------------------

    Resolution: Fixed

Patch applied.

> LogHandler writeToConsole broken
> --------------------------------
>
>          Key: AXIS-2455
>          URL: http://issues.apache.org/jira/browse/AXIS-2455
>      Project: Apache Axis
>         Type: Bug

>   Components: Basic Architecture
>     Versions: 1.3
>  Environment: All
>     Reporter: Cyrille Le Clerc
>  Attachments: AXIS-2455_flushSystemOutPrintWriterAfterWriteMessage.diff, client-config.wsdd
>
> LogHandler fails to print SOAP messages (at least short messages) in the console ; nothing is outputted in the console.
> Note that SOAP Messages are properly outputted by LogHandler to log files.
> This seems due to the fact that the content is written in a PrintWriter that is not flushed before it is throw away.
> Environment : 
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> - Axis 1.3
> client-config.wsdd with <handler name="log" type="java:org.apache.axis.handlers.LogHandler"><parameter name="LogHandler.writeToConsole" value="true" /></handler>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2455) LogHandler writeToConsole broken

Posted by "Cyrille Le Clerc (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2455?page=all ]

Cyrille Le Clerc updated AXIS-2455:
-----------------------------------

    Attachment: AXIS-2455_flushSystemOutPrintWriterAfterWriteMessage.diff

Proposed fix. Flush the PrintWriter that wraps System.out. 
Flush is called after each message (request & response) is written.

> LogHandler writeToConsole broken
> --------------------------------
>
>          Key: AXIS-2455
>          URL: http://issues.apache.org/jira/browse/AXIS-2455
>      Project: Apache Axis
>         Type: Bug

>   Components: Basic Architecture
>     Versions: 1.3
>  Environment: All
>     Reporter: Cyrille Le Clerc
>  Attachments: AXIS-2455_flushSystemOutPrintWriterAfterWriteMessage.diff, client-config.wsdd
>
> LogHandler fails to print SOAP messages (at least short messages) in the console ; nothing is outputted in the console.
> Note that SOAP Messages are properly outputted by LogHandler to log files.
> This seems due to the fact that the content is written in a PrintWriter that is not flushed before it is throw away.
> Environment : 
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> - Axis 1.3
> client-config.wsdd with <handler name="log" type="java:org.apache.axis.handlers.LogHandler"><parameter name="LogHandler.writeToConsole" value="true" /></handler>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira