You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "John Ross (JIRA)" <ji...@apache.org> on 2016/06/22 19:37:16 UTC

[jira] [Created] (ARIES-1580) Blueprint itest ParserServiceImportXSDsBetweenNamespaceHandlersTest intermittently fails due to race condition.

John Ross created ARIES-1580:
--------------------------------

             Summary: 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: John Ross
            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)