Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4399CDD92 for ; Wed, 19 Sep 2012 11:37:09 +0000 (UTC) Received: (qmail 65417 invoked by uid 500); 19 Sep 2012 11:37:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65344 invoked by uid 500); 19 Sep 2012 11:37:08 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 65324 invoked by uid 99); 19 Sep 2012 11:37:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 11:37:08 +0000 Date: Wed, 19 Sep 2012 22:37:08 +1100 (NCT) From: "Claus Ibsen (JIRA)" To: dev@activemq.apache.org Message-ID: <1673292796.96895.1348054628646.JavaMail.jiratomcat@arcas> In-Reply-To: <1757847660.29967.1324370250797.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3640) activemq-broker.xml stays in Blueprint "GracePeriod" state forever MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458586#comment-13458586 ] Claus Ibsen commented on AMQ-3640: ---------------------------------- Have you tried raising the start-level of activemq-broker.xml to be after the core+blueprint. Also this is not a AMQ problem per see, but an SMX / OSGi issue as they repackage AMQ in their product. > activemq-broker.xml stays in Blueprint "GracePeriod" state forever > ------------------------------------------------------------------ > > Key: AMQ-3640 > URL: https://issues.apache.org/jira/browse/AMQ-3640 > Project: ActiveMQ > Issue Type: Bug > Components: activemq-camel > Affects Versions: 5.4.2 > Environment: ServiceMix 4.3 > Reporter: metatech > > In a small proportion of the time (about 20%) of first starting ServiceMix, the bundle "activemq-broker.xml" stays in the "GracePeriod" forever (ie no timeout after 5 minutes). It is waiting for a namespace handler for the namespace "http://activemq.apache.org/schema/core", which should be exported by the bundle "activemq-blueprint", which is declared as a OSGi fragment of the "activemq-core" bundle. When the problem occurs, the fragment is not properly attached to the host bundle. See the extract of the Karaf console : > {code} > [ 46] [Active ] [ ] [ ] [ 60] activemq-core (5.4.2) > [ 56] [Installed ] [ ] [ ] [ 60] activemq-blueprint (5.4.2) > [ 59] [Active ] [GracePeriod ] [ ] [ 60] activemq-broker.xml (0.0.0) > {code} > There are no "Hosts:" and "Fragments:" lines. > The activemq-blueprint stays in "Installed" state instead of "Resolved", and cannot be started manually because it is a fragment bundle. > Proposed short-term workaround (untested) : merge both bundles "activemq-core" and "activemq-blueprint". > Long-term solution : I guess the problem is due to a race condition between the starting of the bundles and the discovery of the "host-fragment" relationship : maybe a 2-phase mechanism is needed. -- 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