Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12259

Error creating

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.20.2
    • None
    • camel-activemq, camel-jms
    • None

    Description

      This may actually be an issue with the Activemq client, or it might be something with Karaf, but I am unable to determine the source, so I thought I would start with Camel, since that is where the configuration is.

      I am trying to use camel to connect to an ActiveMQ broker.  At first, I was not using the pooled connection factory, and was able to connect without issue, but I know that the pooled connection factory is the preferred method of connection.

      I explored Redhat's website as well as many other sites and configured things like so:

          <bean id="activemq1" class="org.apache.activemq.camel.component.ActiveMQComponent">
              <property name="configuration">
                  <bean class="org.apache.camel.component.jms.JmsConfiguration">
                      <property name="connectionFactory">
                          <bean class="org.apache.activemq.pool.PooledConnectionFactory">
                              <property name="maxConnections" value="8" />
                              <property name="maxActiveSessionsPerConnection" value="500" />
                              <property name="connectionFactory">
                                  <bean class="org.apache.activemq.ActiveMQConnectionFactory">
                                      <property name="brokerURL"  value="tcp://x.x.x.x:61616" />
                                  </bean>
                              </property>
                          </bean>
                      </property>
                      <property name="transacted" value="false"/>
                      <property name="concurrentConsumers" value="10"/>
                  </bean>
              </property>
          </bean>
      

       I also tried using the xml ref="" syntax.

      When I deploy this route into Karaf, I get this error:

      2018-02-12T12:29:42,101 | ERROR | FelixStartLevel | BlueprintContainerImpl | 13 - org.apache.aries.blueprint.core - 1.8.3 | Unable to start blueprint container for bundle notification_route.xml/0.0.0
      org.osgi.service.blueprint.container.ComponentDefinitionException: Name activemq1 is already instanciated as null and cannot be removed.
      at org.apache.aries.blueprint.container.BlueprintRepository.removeRecipe(BlueprintRepository.java:131) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.updateUninstantiatedRecipes(BlueprintContainerImpl.java:572) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:559) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:394) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:275) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:300) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:269) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:265) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:255) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [13:org.apache.aries.blueprint.core:1.8.3]
      at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) [?:?]
      at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [?:?]
      at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [?:?]
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [?:?]
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) [?:?]
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) [?:?]
      at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [?:?]
      at java.lang.Thread.run(Thread.java:748) [?:?]
      

       
      Not sure what I am doing wrong. It is latest release version of Camel, Karaf, Activemq-camel, Activemq (client), Artemis and Hawtio.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            txjmb Michael Bohan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: