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

ext2 commented on CXF-3750:
---------------------------

if the execute sequence  as following, every thing is ok.  there is no dead 
lock;
    chain.wait enter
    chian.notify invoked
    chain.wait return;
    chain.resume(); //resume also synchronzed on chain object;

if the execute sequence as following , dead lock will occurs:
    chain.wait enter
    chain.notify 
    chain.resume// ..now waiting on chain will blocked until chain.resume 
finished(release sync on chain)
    chain.wait return;
 
following dump on console indicate the above sequence:

No DeadLock dump :
--wait begin
--notify all
--wait end
--api chain resume
product service begin Fri Aug 19 12:10:28 CST 2011 //a lone time(10 seconds) 
one way business logical begin
product service end Fri Aug 19 12:10:38 CST 2011    .//a lone time(10 seconds) 
one way business logical end;


DeadLock Dump:
--wait begin
--notify all
--api chain resume
product service begin Fri Aug 19 12:10:40 CST 2011
product service end Fri Aug 19 12:10:50 CST 2011
--wait end

Until now I am not sure if  problem is CXF's or JDK's, or something which I 
don't  know cause such a deadlock;
I also wrote a simple program to simulate the execute sequnce  which causeddead 
lock in CXF, but the simple program never dead lock;


> Sometimes, CXF servlet will blocked until bussiness logical finished for 
> one-way operation
> ------------------------------------------------------------------------------------------
>
>                 Key: CXF-3750
>                 URL: https://issues.apache.org/jira/browse/CXF-3750
>             Project: CXF
>          Issue Type: Bug
>         Environment: CXF2.3.3 windows xp, jdk1.5_22 or jdk1.6_17
>            Reporter: ext2
>            Priority: Minor
>         Attachments: oneway-deadlock.zip
>
>
> sometime,the servlet handle(JettyHTTPHandler) at server side doesn't return 
> back to servlet engine(Jetty) immediately, it will waiting until the 
> asynchrouse business logical finished; 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to