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 (Created) (JIRA)" <ji...@apache.org> on 2011/12/22 11:16:30 UTC

[jira] [Created] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Use dynamic port numbers for unit tests the examples
----------------------------------------------------

                 Key: CAMEL-4814
                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
             Project: Camel
          Issue Type: Task
          Components: examples
            Reporter: Claus Ibsen
             Fix For: 2.10


Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use

We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175732#comment-13175732 ] 

Claus Ibsen edited comment on CAMEL-4814 at 12/29/11 3:55 PM:
--------------------------------------------------------------

The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- loan-broker
- osgi-rmi
- report-incident
- report-incident-security
- spring-jms
                
      was (Author: davsclaus):
    The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- loan-broker
- osgi-rmi
- report-incident
- report-incident-security
                  
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>             Fix For: 2.10
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "David Valeri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Valeri updated CAMEL-4814:
--------------------------------

    Fix Version/s:     (was: Future)
                   2.11.0
    
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175732#comment-13175732 ] 

Claus Ibsen edited comment on CAMEL-4814 at 12/26/11 11:28 AM:
---------------------------------------------------------------

The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- report-incident
- report-incident-security
                
      was (Author: davsclaus):
    The following examples is now using dynamic port numbers

- report-incident
- report-incident-security
                  
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>             Fix For: 2.10
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186578#comment-13186578 ] 

Babak Vahdat commented on CAMEL-4814:
-------------------------------------

loan-broker seems still to have the same issue by the latest build:
 
https://builds.apache.org/job/Camel.trunk.fulltest/657/org.apache.camel$camel-example-loan-broker/testReport/junit/org.apache.camel.loanbroker.webservice.version/LoanBrokerWSTest/testInvocation/
                
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>             Fix For: 2.10.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175732#comment-13175732 ] 

Claus Ibsen edited comment on CAMEL-4814 at 12/28/11 12:13 PM:
---------------------------------------------------------------

The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- loan-broker
- osgi-rmi
- report-incident
- report-incident-security
                
      was (Author: davsclaus):
    The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- osgi-rmi
- report-incident
- report-incident-security
                  
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>             Fix For: 2.10
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432915#comment-13432915 ] 

Claus Ibsen commented on CAMEL-4814:
------------------------------------

@David

Yeah I think we should have examples that are OSGi only (eg having -osgi in the name), and then examples that are pure non-OSGi. Trying to cater for both worlds in the same example is not best practice either, often causing the example to not work well in either mode.

I think we have a features.xml file that lists a number of -examples in it. Can you double check with that file, so we only list the examples that can work with OSGi. eg so when people do a features:install camel in Karaf, then the features:list does not show the non-OSGi Camel examples.
                
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "David Valeri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431510#comment-13431510 ] 

David Valeri commented on CAMEL-4814:
-------------------------------------

I have made the cxf example use dynamic ports; however, doing so without rewriting the example in a significant way precludes using it in OSGi.  I bring up OSGi because it is mentioned in the REAME.txt file associated with this example.

"To run the example within ServiceMix 4
 First, you need to install the camel-cxf, camel-jetty features into ServiceMix4
 Then install this bundle into ServiceMix, and use the following Java clients 
 to call the services:"

Since we have other dedicated OSGi examples, I vote to drop OSGi support from this example.  Thoughts?

The included feature file in this example does not work in the latest ServiceMix and will likely take some fiddling to get it to work due to the large version disparity between the latest SMX and the current Camel trunk.
                
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "David Valeri (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Valeri reassigned CAMEL-4814:
-----------------------------------

    Assignee: David Valeri
    
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.10.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175732#comment-13175732 ] 

Claus Ibsen edited comment on CAMEL-4814 at 12/26/11 12:16 PM:
---------------------------------------------------------------

The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- osgi-rmi
- report-incident
- report-incident-security
                
      was (Author: davsclaus):
    The following examples is now using dynamic port numbers

- cxf-blueprint
- cxf-osgi
- cxf-proxy
- report-incident
- report-incident-security
                  
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>             Fix For: 2.10
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Work started] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "David Valeri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-4814 started by David Valeri.

> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175732#comment-13175732 ] 

Claus Ibsen commented on CAMEL-4814:
------------------------------------

The following examples is now using dynamic port numbers

- report-incident
- report-incident-security
                
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>             Fix For: 2.10
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-4814:
-------------------------------

    Fix Version/s:     (was: 2.10.0)
                   Future
    
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: Future
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4814) Use dynamic port numbers for unit tests the examples

Posted by "David Valeri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439710#comment-13439710 ] 

David Valeri commented on CAMEL-4814:
-------------------------------------

I removed the features.xml file from the cxf example and updated the README to remove references to deploying in OSGi.

I checked the main features.xml file for Camel and the examples do not appear to be listed in that file.  A number of the examples contain their own features.xml file and attach them to the build, but I do not see a feature file that aggregates the multiple examples into one file.

I ran the camel-example-loan-broker example and verified that the ports are being chosen dynamically in the test.  Any failure in the past was likely a random port collision that is unavoidable.  The build history is unavailable in Jenkins and the test seems to be passing in the current build.

I'm working through the remaining tests looking for static port usage.
                
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira