You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2012/09/25 12:32:07 UTC

[jira] [Created] (KARAF-1861) Test failure in exam regression tests : KarafWithBundleTest

Christian Schneider created KARAF-1861:
------------------------------------------

             Summary: Test failure in exam regression tests : KarafWithBundleTest
                 Key: KARAF-1861
                 URL: https://issues.apache.org/jira/browse/KARAF-1861
             Project: Karaf
          Issue Type: Bug
          Components: karaf-tooling
    Affects Versions: 3.0.0
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 3.0.0


When running the tooling/exam/regression tests I get an exception in KarafWithBundleTest.

It cant connect to the URL http://localhost:9080/test/services.
I think the reason is a timing issue between the war feature start and the servlet activator that gets the httpservice.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (KARAF-1861) Test failure in exam regression tests : KarafWithBundleTest

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

Christian Schneider updated KARAF-1861:
---------------------------------------

    Description: 
When running the tooling/exam/regression tests I get an exception in KarafWithBundleTest.

It cant connect to the URL http://localhost:9080/test/services.

I think there are two possible problems with the test. 

1. At least on my machine karaf needs quite some time to start. So we might have a timing issue between karaf startup and the url.getConnection timing out
2.  We might have a timing issue between the war feature start and the servlet activator that gets the httpservice.


  was:
When running the tooling/exam/regression tests I get an exception in KarafWithBundleTest.

It cant connect to the URL http://localhost:9080/test/services.
I think the reason is a timing issue between the war feature start and the servlet activator that gets the httpservice.


    
> Test failure in exam regression tests : KarafWithBundleTest
> -----------------------------------------------------------
>
>                 Key: KARAF-1861
>                 URL: https://issues.apache.org/jira/browse/KARAF-1861
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> When running the tooling/exam/regression tests I get an exception in KarafWithBundleTest.
> It cant connect to the URL http://localhost:9080/test/services.
> I think there are two possible problems with the test. 
> 1. At least on my machine karaf needs quite some time to start. So we might have a timing issue between karaf startup and the url.getConnection timing out
> 2.  We might have a timing issue between the war feature start and the servlet activator that gets the httpservice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (KARAF-1861) Test failure in exam regression tests : KarafWithBundleTest

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

Christian Schneider resolved KARAF-1861.
----------------------------------------

    Resolution: Fixed

Seems to work reliably now. I would prefer to get rid of the sleep again though. Is it possible to signal from the ServiceTracker to the test that the servlet is installed?
                
> Test failure in exam regression tests : KarafWithBundleTest
> -----------------------------------------------------------
>
>                 Key: KARAF-1861
>                 URL: https://issues.apache.org/jira/browse/KARAF-1861
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> When running the tooling/exam/regression tests I get an exception in KarafWithBundleTest.
> It cant connect to the URL http://localhost:9080/test/services.
> I think there are two possible problems with the test. 
> 1. At least on my machine karaf needs quite some time to start. So we might have a timing issue between karaf startup and the url.getConnection timing out
> 2.  We might have a timing issue between the war feature start and the servlet activator that gets the httpservice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1861) Test failure in exam regression tests : KarafWithBundleTest

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462808#comment-13462808 ] 

Achim Nierbeck commented on KARAF-1861:
---------------------------------------

yes, the http-service sents events when the servlets are registered and started, you can register a specialized webEventListener as done in pax-web: 
https://github.com/ops4j/org.ops4j.pax.web/blob/master/itest/src/test/java/org/ops4j/pax/web/itest/WarIntegrationTest.java#L152
                
> Test failure in exam regression tests : KarafWithBundleTest
> -----------------------------------------------------------
>
>                 Key: KARAF-1861
>                 URL: https://issues.apache.org/jira/browse/KARAF-1861
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> When running the tooling/exam/regression tests I get an exception in KarafWithBundleTest.
> It cant connect to the URL http://localhost:9080/test/services.
> I think there are two possible problems with the test. 
> 1. At least on my machine karaf needs quite some time to start. So we might have a timing issue between karaf startup and the url.getConnection timing out
> 2.  We might have a timing issue between the war feature start and the servlet activator that gets the httpservice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira