You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Daniel Kulp <da...@iona.com> on 2006/11/29 23:57:05 UTC

SequenceTest still failing.....

Is someone still working on the SequenceTest?    It's still failing periodically
for me.  Stacktrace attached.

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
daniel.kulp@iona.com


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
org.apache.cxf.interceptor.Fault: Could not send Message.
        at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:69)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:147)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:130)
        at org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:187)
        at org.apache.cxf.ws.rm.Proxy.acknowledge(Proxy.java:90)
        at org.apache.cxf.ws.rm.DestinationSequence$DeferredAcknowledgment.run(DestinationSequence.java:309)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.io.FileNotFoundException: http://localhost:9020/SoapContext/GreeterPort
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1206)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1200)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:889)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:464)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doClose(HTTPConduit.java:451)
        at org.apache.cxf.io.AbstractCachedOutputStream.close(AbstractCachedOutputStream.java:113)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:259)
        at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:58)
        ... 7 more
Caused by: java.io.FileNotFoundException: http://localhost:9020/SoapContext/GreeterPort
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1151)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
        at org.apache.cxf.transport.http.HTTPConduit.getResponseCode(HTTPConduit.java:364)
        at org.apache.cxf.transport.http.HTTPConduit.access$100(HTTPConduit.java:68)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:460)
        ... 11 more
[surefire] Running org.apache.cxf.systest.ws.rm.SequenceTest
[surefire] Tests run: 10, Failures: 1, Errors: 0, Time elapsed: 48.659 sec
[surefire]
[surefire] testTwowayNonAnonymousDeferred(org.apache.cxf.systest.ws.rm.SequenceTest)  Time elapsed: 1.589 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Inbound message 0 has unexpected action: http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertNull(Assert.java:233)
        at org.apache.cxf.systest.ws.rm.MessageFlow.verifyActions(MessageFlow.java:93)
        at org.apache.cxf.systest.ws.rm.SequenceTest.testTwowayNonAnonymousDeferred(SequenceTest.java:415)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
        at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
        at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:126)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785)

Re: SequenceTest still failing.....

Posted by Andrea Smyth <an...@iona.com>.
Daniel Kulp wrote:

>Is someone still working on the SequenceTest?    It's still failing periodically
>for me.  Stacktrace attached.
>
>  
>
I have not seen the tests failing  for me, but from looking at the test 
code I know there are two more tests (testOnewayDeferredNonAnonymousAcks 
and testTwowayNonAnonymousDeferred) that incorrectly assume that the 
partial response to a request is processed before the full response - 
that explains the

Inbound message 0 has unexpected action: http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse

The other issue:

java.io.FileNotFoundException: http://localhost:9020/SoapContext/GreeterPort

 is a bug - scheduled acknowledgements are not yet cancelled when an 
endpoint is shut down.

I'll fix up both (the latter first as a manual workaround, later as part 
of CXF-259).

Andrea.