[ 
https://issues.apache.org/jira/browse/CAMEL-12259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bohan closed CAMEL-12259.
---------------------------------
    Estimated Complexity:   (was: Unknown)

> Error creating 
> ---------------
>
>                 Key: CAMEL-12259
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12259
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-activemq, camel-jms
>    Affects Versions: 2.20.2
>         Environment: Windows 10 64-bit
> Java 8
> Karaf 4.1.4
> Here are all the installed components in Karaf (I left out .xml camel 
> contexts for now.  There are about 15 installed):
> START LEVEL 100 , List Threshold: 50
>  ID | State | Lvl | Version | Name
> ----+----------+-----+------------------------------------+-------------------------------------------------------------
>  29 | Active | 80 | 4.1.4 | Apache Karaf :: OSGi Services :: Event
>  67 | Active | 50 | 2.20.2 | camel-blueprint
>  68 | Active | 80 | 2.20.2 | camel-commands-core
>  69 | Active | 50 | 2.20.2 | camel-core
>  70 | Active | 80 | 2.20.2 | camel-karaf-commands
>  74 | Active | 50 | 1.6.0 | JavaMail API
>  75 | Active | 50 | 2.20.2 | camel-mail
>  76 | Active | 80 | 19.0.0 | Guava: Google Core Libraries for Java
>  77 | Active | 80 | 4.1.16.Final | Netty/Buffer
>  78 | Active | 80 | 4.1.16.Final | Netty/Codec
>  79 | Active | 80 | 4.1.16.Final | Netty/Codec/HTTP
>  80 | Active | 80 | 4.1.16.Final | Netty/Codec/MQTT
>  81 | Active | 80 | 4.1.16.Final | Netty/Common
>  82 | Active | 80 | 4.1.16.Final | Netty/Handler
>  83 | Active | 80 | 4.1.16.Final | Netty/Resolver
>  84 | Active | 80 | 4.1.16.Final | Netty/Transport
>  85 | Active | 80 | 4.1.16.Final | Netty/Transport/Native/Epoll
>  86 | Active | 80 | 4.1.16.Final | Netty/Transport/Native/KQueue
>  87 | Active | 80 | 4.1.16.Final | Netty/Transport/Native/Unix/Common
>  89 | Active | 80 | 1.2.0 | CDI APIs
>  90 | Active | 80 | 1.2 | javax.interceptor API
>  91 | Active | 80 | 1.2 | javax.transaction API
>  92 | Active | 80 | 2.4.0 | ActiveMQ Artemis AMQP Protocol
>  93 | Active | 80 | 2.4.0 | ActiveMQ Artemis HornetQ Protocol
>  94 | Active | 80 | 2.4.0 | ActiveMQ Artemis HQClient Protocol
>  95 | Active | 80 | 2.4.0 | ActiveMQ Artemis MQTT Protocol
>  96 | Active | 80 | 2.4.0 | ActiveMQ Artemis Native POM
>  97 | Active | 80 | 2.4.0 | ActiveMQ Artemis OpenWire Protocol
>  98 | Active | 80 | 2.4.0 | ActiveMQ Artemis Server OSGi
>  99 | Active | 80 | 2.4.0 | ActiveMQ Artemis STOMP Protocol
> 100 | Active | 80 | 1.1.1 | Apache Aries Transaction Blueprint
> 101 | Active | 80 | 2.1.0 | Apache Aries Transaction Blueprint
> 102 | Active | 80 | 1.3.3 | Apache Aries Transaction Manager
> 103 | Active | 80 | 1.9.3 | Apache Commons BeanUtils
> 104 | Active | 50 | 3.2.2 | Apache Commons Collections
> 105 | Active | 80 | 1.0.2 | Apache Felix Coordinator Service
> 108 | Active | 80 | 1.0.1 | geronimo-j2ee-management_1.1_spec
> 109 | Active | 50 | 1.0.0.alpha-2 | Apache Geronimo JMS Spec 2.0
> 110 | Active | 80 | 0.9.5 | Johnzon :: Core
> 114 | Active | 80 | 0.26.0 | QpidJMS Client
> 115 | Active | 80 | 0.22.0 | Proton-J
> 116 | Active | 80 | 1.0.0.2 | Apache ServiceMix :: Bundles :: javax.inject
> 117 | Active | 80 | 2.9.0 | Apache ServiceMix :: Specs :: JSon API 1.1
> 118 | Active | 80 | 1.11.0 | hawtbuf
> 119 | Active | 80 | 3.6.13.Final | JGroups
> 120 | Active | 50 | 5.15.3 | activemq-karaf
> 121 | Active | 50 | 2.6.7 | Jackson-annotations
> 122 | Active | 50 | 2.6.7 | Jackson-core
> 123 | Active | 50 | 2.6.7 | jackson-databind
> 125 | Active | 50 | 2.9 | Joda-Time
> 126 | Active | 50 | 3.1.4 | activeio-core
> 127 | Active | 50 | 5.15.3 | activemq-osgi
> 128 | Active | 50 | 1.9.0 | Apache Commons Codec
> 129 | Active | 50 | 2.6 | Commons Lang
> 130 | Active | 50 | 3.6.0 | Apache Commons Net
> 131 | Active | 50 | 2.4.2 | Apache Commons Pool
> 132 | Active | 80 | 3.1.1 | Geronimo TxManager :: Connector
> 133 | Active | 80 | 1.0 | J2EE Connector 1.6
> 135 | Active | 80 | 1.1 | Apache Geronimo JSR-303 Bean Validation Spec API
> 136 | Active | 50 | 3.4.6 | ZooKeeper Bundle
> 139 | Active | 50 | 1.9.2.1 | Apache ServiceMix :: Bundles :: jasypt
> 146 | Active | 50 | 1.7.0.6 | Apache ServiceMix :: Bundles :: velocity
> 147 | Active | 50 | 1.1.0.4c_5 | Apache ServiceMix :: Bundles :: xpp3
> 148 | Active | 50 | 1.4.8.1 | Apache ServiceMix :: Bundles :: xstream
> 151 | Active | 50 | 1.3.8 | jettison
> 171 | Active | 50 | 0.6.4 | JAXB2 Basics - Runtime
> 176 | Active | 50 | 2.11.0.v20140415-163722-cac6383e66 | Scala Standard 
> Library
> 177 | Active | 50 | 2.20.2 | camel-jms
> 178 | Active | 50 | 1.6.0 | Commons Pool
> 181 | Active | 80 | 2.0.0 | hawtio :: hawtio-json-schema-mbean
> 182 | Failure | 80 | 2.0.0 | hawtio :: Karaf terminal plugin
> 183 | Active | 80 | 2.0.0 | hawtio :: hawtio-maven-indexer
> 184 | Active | 80 | 2.0.0 | hawtio :: hawtio-osgi-jmx
> 185 | Active | 80 | 2.0.0 | hawtio :: hawtio-web
> 187 | Resolved | 80 | 2.12.0 | JLine
> 204 | Active | 50 | 2.20.2 | camel-saxon
> 205 | Active | 50 | 9.7.0.18_1 | Apache ServiceMix :: Bundles :: Saxon-HE
> 206 | Active | 50 | 1.2.0.5 | Apache ServiceMix :: Bundles :: xmlresolver
>            Reporter: Michael Bohan
>            Priority: Major
>
> 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:
> {code:xml}
>     <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>
> {code}
>  I also tried using the xml ref="" syntax.
> When I deploy this route into Karaf, I get this error:
> {code:none}
> 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) [?:?]
> {code}
>  
> Not sure what I am doing wrong.  It is latest release version of Camel, 
> Karaf, Activemq-camel, Activemq (client), Artemis and Hawtio.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to