[ 
http://jira.amdatu.org/jira/browse/AMDATU-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10744#comment-10744
 ] 

Ivo Ladage - van Doorn commented on AMDATU-262:
-----------------------------------------------

Hhmm, but the test depends on the HttpService, so when the HttpService goes 
down, the test service goes down, no idea what that means in Pax Exam.
Looking at the RESTTestBase, there is at least one issue; configuration 
initialization should happen by implementing the initConfiguration method, not 
by doing this in your own method annotated with @Before. Otherwise, you cannot 
ensure the config is there before the services are started (causing for example 
the http service to be restarted half way).

> Bamboo builds keep getting hung on same issue
> ---------------------------------------------
>
>                 Key: AMDATU-262
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-262
>             Project: Amdatu
>          Issue Type: Bug
>          Components: Integration Tests
>            Reporter: Bram de Kruijff
>            Assignee: Ivo Ladage - van Doorn
>            Priority: Blocker
>
> On a regular basis the bamboo builds hang on the fact that pax is shutting 
> down a container that has not yet fully started. The workaround is adding 
> service deps in the test that fails, but it woul dbe nice to have a 
> structural solution. Thangs that come to mind:
> 1) Ad a fixed "do no shutdown before x ms"in the itest base
> 2) Add a general service dep that only registers after full framework startup
> Typical stack related to issue looks like:
> INFO: ServiceEvent REGISTERED [org.amdatu.semanticweb.sesame]
> 13-Jan-2011 15:09:52  
> 13-Jan-2011 15:09:52  INFO: BundleEvent STOPPED [org.apache.felix.framework]
> 13-Jan-2011 15:09:52  Stopping Sesame application bundle...
> 13-Jan-2011 15:09:52  INFO: BundleEvent STOPPED [osgi.core]
> 13-Jan-2011 15:09:52  WARNING: Invocation of 'init' failed. 
> [org.amdatu.semanticweb.sesame]
> 13-Jan-2011 15:09:52  Can only register services while bundle is active or 
> activating.
> 13-Jan-2011 15:09:52  java.lang.IllegalStateException: Can only register 
> services while bundle is active or activating.
> 13-Jan-2011 15:09:52          at 
> org.apache.felix.framework.Felix.registerService(Felix.java:2832)
> 13-Jan-2011 15:09:52          at 
> org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to