You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ravi Godbole (JIRA)" <ji...@apache.org> on 2017/02/28 12:04:45 UTC

[jira] [Commented] (CAMEL-10601) camel-mongodb-gridfs - Use dynamic ports for tests

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

Ravi Godbole commented on CAMEL-10601:
--------------------------------------

It seems that port is already assigned like this. 

private static final int PORT = findAvailableTcpPort();

Is it consistent across CI builds ? 

> camel-mongodb-gridfs - Use dynamic ports for tests
> --------------------------------------------------
>
>                 Key: CAMEL-10601
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10601
>             Project: Camel
>          Issue Type: Test
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>
> This causes CI server to fail sometimes if the port number is already in use
> org.apache.camel.component.gridfs.GridFsConsumerTest.testAttribute
> Failing for the past 1 build (Since Unstable#1067 )
> Took 37 ms.
> Error Message
> Cannot load configuration class: org.apache.camel.component.gridfs.EmbedMongoConfiguration
> Stacktrace
> java.lang.IllegalStateException: Cannot load configuration class: org.apache.camel.component.gridfs.EmbedMongoConfiguration
> Caused by: java.lang.IllegalStateException: Unable to load cache item
> Caused by: java.lang.ExceptionInInitializerError
> Caused by: java.lang.RuntimeException: 
> java.io.IOException: Could not start process: failed errno:98 Address already in use for socket: 0.0.0.0:35949
> 2016-12-14T23:31:17.332+0000 E NETWORK  [initandlisten]   addr already in use
> Caused by: java.io.IOException: 
> Could not start process: failed errno:98 Address already in use for socket: 0.0.0.0:35949
> 2016-12-14T23:31:17.332+0000 E NETWORK  [initandlisten]   addr already in use



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)