Aurélien Pupier created CAMEL-27158:
---------------------------------------

             Summary: Fix flaky test WSAddressingTest
                 Key: CAMEL-27158
                 URL: https://issues.apache.org/jira/browse/CAMEL-27158
             Project: Camel
          Issue Type: Test
          Components: camel-cxf
    Affects Versions: 4.24.0
            Reporter: Aurélien Pupier


it has failed [3 times in the last 28 
days|https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*WSAddressingTest]

first run:
{noformat}
org.apache.cxf.interceptor.Fault: Could not start Undertow server on port 
44,703: java.net.BindException: Address already in use        
        at 
org.apache.cxf.transport.http_undertow.UndertowHTTPServerEngine.addServant(UndertowHTTPServerEngine.java:171)
        
        at 
org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.activate(UndertowHTTPDestination.java:154)
    
        at 
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53)
   
        at 
org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
    
        at 
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:894)
      
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:130)        
        at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:220) 
        at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:210)
  
        at 
org.apache.camel.component.cxf.wsa.WSAddressingTest.setUp(WSAddressingTest.java:119)
 
Caused by: java.lang.RuntimeException: java.net.BindException: Address already 
in use   
        at io.undertow.Undertow.start(Undertow.java:254)        
        at 
org.apache.cxf.transport.http_undertow.UndertowHTTPServerEngine.addServant(UndertowHTTPServerEngine.java:161)
        
        at 
org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.activate(UndertowHTTPDestination.java:154)
    
        at 
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53)
   
        at 
org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
    
        at 
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:894)
      
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:130)        
        at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:220) 
        at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:210)
  
        at 
org.apache.camel.component.cxf.wsa.WSAddressingTest.setUp(WSAddressingTest.java:119)
 
Caused by: java.net.BindException: Address already in use       
        at sun.nio.ch.Net.bind0(Native Method)  
        at sun.nio.ch.Net.bind(Net.java:522)    
        at 
sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:335) 
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:297)    
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)     
        at 
org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:178) 
        at 
org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:310)        
        at io.undertow.Undertow.start(Undertow.java:196)        
        at 
org.apache.cxf.transport.http_undertow.UndertowHTTPServerEngine.addServant(UndertowHTTPServerEngine.java:161)
        
        at 
org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.activate(UndertowHTTPDestination.java:154)
    
        at 
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53)
   
        at 
org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
    
        at 
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:894)
      
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:130)        
        at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:220) 
        at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:210)
  
        at 
org.apache.camel.component.cxf.wsa.WSAddressingTest.setUp(WSAddressingTest.java:119)
{noformat}

reruns:
{noformat}
jakarta.xml.ws.WebServiceException: Could not send Message.     
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:183)   
     
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)      
        at jdk.proxyXX.$ProxyXX.greetMe(Unknown Source) 
        at 
org.apache.camel.component.cxf.wsa.WSAddressingTest.testWSAddressing(WSAddressingTest.java:144)
      
Caused by: java.net.ConnectException: (No message provided)     
        at 
jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1070)       
        at 
jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:223)
 
        at 
jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:277)
    
        at 
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:235)
        
        at 
java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:955) 
        at 
java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:932)
 
        at 
java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531) 
     
        at 
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1794)
  
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) 
     
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) 
     
        at java.lang.Thread.run(Thread.java:1474)       
Caused by: java.nio.channels.ClosedChannelException: (No message provided)      
        at sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:204)  
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:942)     
        at 
jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:211)
 
        at 
jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:277)
    
        at 
jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:235)
        
        at 
java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:955) 
        at 
java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:932)
 
        at 
java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531) 
     
        at 
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1794)
  
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090) 
     
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) 
     
        at java.lang.Thread.run(Thread.java:1474)
{noformat}





--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to