[jbossws-cxf-users] [JBossWS-CXF] - Re: JBossWS suffers NPE when OneWay messages employ a WSA R

richard.opalka@jboss.com do-not-reply at jboss.com
Thu May 21 05:23:29 EDT 2009


"adinn" wrote : 
  | it decides to be clever. It spawns a separate thread to run the interceptor chain and allows the servlet handler thread to return early. Of course this means that the value stashed in the thread local is not available to AbstractInvoker which promptly falls over with an NPE at line 135.
  | 

Hi Andrew,

   I think JBWS-2577 solves that issue. I'm talking about the following commit:

[/home/opalka][/home/opalka/svn/jbossws/spi/trunk/src/main/java/org/jboss/wsf/spi/invocation]>svn log --limit=1 EndpointAssociation.java 
------------------------------------------------------------------------
r9645 | alessio.soldano at jboss.com | 2009-03-20 19:53:13 +0100 (Fri, 20 Mar 2009) | 2 lines

[JBWS-2577] Using InheritableThreadLocal for EndpointAssociation as CXF now spans new thread when serving @OneWay requests

------------------------------------------------------------------------
[/home/opalka][/home/opalka/svn/jbossws/spi/trunk/src/main/java/org/jboss/wsf/spi/invocation]>svn diff -r 9644:9645 EndpointAssociation.java
Index: EndpointAssociation.java
===================================================================
--- EndpointAssociation.java	(revision 9644)
+++ EndpointAssociation.java	(revision 9645)
@@ -31,7 +31,7 @@
  */
 public final class EndpointAssociation
 {
-   private static final ThreadLocal endpoint = new ThreadLocal();
+   private static final ThreadLocal endpoint = new InheritableThreadLocal();
 
    public static void setEndpoint(Endpoint ep)
    {


Could you try JBossWS-CXF 3.1.1 to verify my claim against one of the supported target containers?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232433#4232433

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232433



More information about the jbossws-cxf-users mailing list