You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2019/10/17 19:16:00 UTC

[jira] [Resolved] (CAMEL-14071) [Camel-as2] Integration tests are not working

     [ https://issues.apache.org/jira/browse/CAMEL-14071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-14071.
---------------------------------
    Resolution: Fixed

> [Camel-as2] Integration tests are not working
> ---------------------------------------------
>
>                 Key: CAMEL-14071
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14071
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-as2
>    Affects Versions: 3.0.0
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>            Priority: Major
>             Fix For: 3.0.0.RC3, 3.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Run integration tests (mvn clean test -pl :camel-as2 -Dtest=\*IntegrationTest) and see errors:{code}
> ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed: 5.04 s <<< FAILURE! - in org.apache.camel.component.as2.AS2ServerManagerIntegrationTest
> [ERROR] receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.186 s  <<< ERROR!
> org.apache.camel.FailedToCreateRouteException: Failed to create route route3: Route(route3)[From[as2://server/listen?requestUriPattern=/] ... because of Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.RuntimeCamelException: Server HTTP connection failed
> Caused by: java.net.BindException: Address already in use (Bind failed)
> [ERROR] receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.027 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> [ERROR] sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.047 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> [ERROR] receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.07 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> [ERROR] receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.06 s  <<< ERROR!
> org.apache.camel.FailedToCreateRouteException: Failed to create route route5: Route(route5)[From[as2://server/listen?requestUriPattern=/] ... because of Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.RuntimeCamelException: Server HTTP connection failed
> Caused by: java.net.BindException: Address already in use (Bind failed)
> [ERROR] receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.01 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> [ERROR] sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.005 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> [ERROR] receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.053 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> [ERROR] receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.06 s  <<< ERROR!
> org.apache.camel.FailedToCreateRouteException: Failed to create route route7: Route(route7)[From[as2://server/listen?requestUriPattern=/] ... because of Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.RuntimeCamelException: Server HTTP connection failed
> Caused by: java.net.BindException: Address already in use (Bind failed)
> [ERROR] receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.015 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> [ERROR] sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.004 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> [ERROR] receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.058 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> [INFO] 
> [INFO] Results:
> [INFO] 
> [ERROR] Failures: 
> [ERROR]   AS2ClientManagerIntegrationTest.compressedMessageTest:472->Assert.assertNotNull:712->Assert.assertTrue:41->Assert.fail:88 send result
> [ERROR]   AS2ClientManagerIntegrationTest.multipartSignedMessageTest:385->Assert.assertNotNull:712->Assert.assertTrue:41->Assert.fail:88 send result
> [ERROR] Errors: 
> [ERROR]   AS2ClientManagerIntegrationTest.envelopedMessageSendTest:305 ClassCast org.apa...
> [ERROR]   AS2ClientManagerIntegrationTest.setupTest:578->receiveTestMessages:652 » Bind ...
> [ERROR]   AS2ClientManagerIntegrationTest.plainMessageSendTest:233 ClassCast org.apache....
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest:272 » Http Failed ...
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest:272 » Http Failed ...
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest:272 » Http Failed ...
> [INFO] 
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest:204 » Http F...
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest:204 » Http F...
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest:204 » Http F...
> [INFO] 
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest>CamelTestSupport.setUp:322->CamelTestSupport.doSetUp:459->CamelTestSupport.startCamelContext:819 » FailedToCreateRoute
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest>CamelTestSupport.setUp:322->CamelTestSupport.doSetUp:459->CamelTestSupport.startCamelContext:819 » FailedToCreateRoute
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest>CamelTestSupport.setUp:322->CamelTestSupport.doSetUp:459->CamelTestSupport.startCamelContext:819 » FailedToCreateRoute
> [INFO] 
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest:334 » Http
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest:334 » Http
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest:334 » Http
> [INFO] 
> [INFO] 
> [ERROR] Tests run: 10, Failures: 2, Errors: 7, Skipped: 0
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)