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

Grzegorz Grzybek commented on ARIES-1580:
-----------------------------------------

Thanks [[email protected]] for reporting - I'll review this test.

> Blueprint itest ParserServiceImportXSDsBetweenNamespaceHandlersTest 
> intermittently fails due to race condition.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1580
>                 URL: https://issues.apache.org/jira/browse/ARIES-1580
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>            Reporter: John Ross
>            Assignee: Grzegorz Grzybek
>            Priority: Minor
>
> The ParserServiceImportXSDsBetweenNamespaceHandlersTest Blueprint itest will 
> intermittently fail due to a race condition where the namespace handler may 
> not have been registered by the time the test is executed. I haven't been 
> able to reproduce it on Pax Exam 4.5.0. Nevertheless, the condition exists 
> and could still occur. It occurs, on average, once every 5 or 10 runs on Pax 
> Exam 3.5.0, required for Java 6.
> The solution is to have the test wait until the namespace handler 
> registration, which occurs on a Blueprint background thread, has been 
> verified, or a timeout occurs, before proceeding.
> org.osgi.service.blueprint.container.ComponentDefinitionException: 
> Unsupported node namespace: 
> http://aries.apache.org/blueprint/xmlns/blueprint-aries-1503/v1.1.0
>       at 
> org.apache.aries.blueprint.parser.Parser.getNamespaceHandler(Parser.java:1386)
>       at 
> org.apache.aries.blueprint.parser.Parser.getNamespaceHandler(Parser.java:1374)
>       at 
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1367)
>       at 
> org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427)
>       at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331)
>       at 
> org.apache.aries.blueprint.container.ParserServiceImpl.validateAndPopulate(ParserServiceImpl.java:86)
>       at 
> org.apache.aries.blueprint.container.ParserServiceImpl.parse(ParserServiceImpl.java:63)
>       at 
> org.apache.aries.blueprint.container.ParserServiceImpl.parse(ParserServiceImpl.java:53)
>       at 
> org.apache.aries.blueprint.container.ParserServiceImpl.parse(ParserServiceImpl.java:46)
>       at 
> org.apache.aries.blueprint.itests.ParserServiceImportXSDsBetweenNamespaceHandlersTest.testXSDImports(ParserServiceImportXSDsBetweenNamespaceHandlersTest.java:106)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to