<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Continuing problem with XTS WS-T tests in AS trunk/CXF 2.2.9
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/jim.ma">Jim Ma</a> in <i>JBoss Web Services CXF</i> - <a href="http://community.jboss.org/message/554554#554554">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Andrew,</p><p>Sorry for the late response . I was occupied with the TCK stuff last week.</p><p>Thanks for your good analysis. After I added the @Addressing annotation in the service implementation class , I successfully reproduced this error . When I enabled WSA for this oneway operation , I&#160; got null value from http request too.&#160; This is another bug in CXF when run with Tomcat/JBossWeb.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre ___default_attr="java" jivemacro="code"><pre jivemacro="quote"><blockquote class="jive-quote"><p>416&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; inMessage.getInterceptorChain().pause();
</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // ... and resume on executor thread<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getExecutor(inMessage).execute(new Runnable() {<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public void run() {<br/>421&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; inMessage.getInterceptorChain().resume();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p></blockquote>
</pre>
</pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I debuged the 416 thread for the oneway and WSA enable operation. When&#160; this line executed, this thread(http-127.0.0.1-8080-1) will continue to&#160; do the left thing to set the http status code&#160; and cleanup some thing.&#160; The cleanup thing includes the Request.recycle() :</p><blockquote class="jive-quote">package org.apache.coyote;<br/>public final class Request{<br/>public void recycle() {<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; bytesRead=0;<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentLength = -1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentTypeMB = null;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; charEncoding = null;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; headers.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; serverNameMB.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; serverPort=-1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; localPort = -1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; remotePort = -1;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; available = 0;<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; cookies.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; parameters.recycle();<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; unparsedURIMB.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; uriMB.recycle(); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; decodedUriMB.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; queryMB.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; methodMB.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; protoMB.recycle();<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; schemeMB.recycle();<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; instanceId.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; remoteUser.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; authType.recycle();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; attributes.clear();<br/>&#160;&#160;&#160; }<br/>}<br/><br/></blockquote><p>After this executed, all the request information will be cleared.&#160; So the interceptors running </p><p>in 421 line thread gets the null value from Request.schemeMB.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>I created a JIRA in CXF </span><a class="jive-link-external-small" href="https://issues.apache.org/jira/browse/CXF-2911" target="_blank">https://issues.apache.org/jira/browse/CXF-2911</a><span> and looking at a fix.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p>Jim</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/554554#554554">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services CXF at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2046">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>