[
https://issues.apache.org/jira/browse/CAMEL-8326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Charles Moulliard closed CAMEL-8326.
------------------------------------
Resolution: Fixed
code submitted : ed73023..c7cb9d3 master -> master
> Project created from camel-blueprint-archetype does not work
> ------------------------------------------------------------
>
> Key: CAMEL-8326
> URL: https://issues.apache.org/jira/browse/CAMEL-8326
> Project: Camel
> Issue Type: Bug
> Components: osgi, tooling
> Affects Versions: 2.13.3, 2.14.1
> Reporter: Charles Moulliard
> Assignee: Charles Moulliard
> Attachments: test.zip
>
>
> When we launch the camel:run maven goal created from a project created using
> the archetype :
> org.apache.camel.archetypes:camel-archetype-blueprint (Creates a new Camel
> project with OSGi blueprint support. Ready to be deployed in OSGi.)
> then it fails
> {code}
> [mel.test.blueprint.Main.main()] MainSupport INFO Apache
> Camel 2.14.1 starting
> [mel.test.blueprint.Main.main()] Activator INFO Camel
> activator starting
> [mel.test.blueprint.Main.main()] Activator INFO Camel
> activator started
> [mel.test.blueprint.Main.main()] BlueprintExtender INFO No
> quiesce support is available, so blueprint components will not participate in
> quiesce operations
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN Test
> bundle headers: Bundle-ManifestVersion=2, Bundle-Name=System Bundle,
> Bundle-SymbolicName=de.kalpatec.pojosr.framework, Bundle-Vendor=kalpatec,
> Bundle-Version=0.2.1
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.packageadmin.PackageAdmin], bundle:
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.camel.spi.LanguageResolver], bundle:
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.camel.camel-blueprint [4], symbolicName:
> org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.cm.ManagedServiceFactory], bundle:
> org.apache.felix.fileinstall [26], symbolicName: org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.felix.cm.PersistenceManager], bundle:
> org.apache.felix.configadmin [25], symbolicName: org.apache.felix.configadmin
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.camel.spi.DataFormatResolver], bundle:
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
> bundle: org.apache.aries.blueprint [13], symbolicName:
> org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.camel.camel-blueprint [4], symbolicName:
> org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle:
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.url.URLStreamHandlerService], bundle:
> org.apache.felix.fileinstall [26], symbolicName: org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.cm.ConfigurationAdmin], bundle:
> org.apache.felix.configadmin [25], symbolicName: org.apache.felix.configadmin
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.camel.spi.ComponentResolver], bundle:
> org.apache.camel.camel-core [2], symbolicName: org.apache.camel.camel-core
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.camel.spi.TypeConverterLoader], bundle:
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.proxy.ProxyManager], bundle:
> org.apache.aries.proxy.impl [15], symbolicName: org.apache.aries.proxy.impl
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.startlevel.StartLevel], bundle:
> de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.service.cm.ConfigurationListener,
> org.apache.felix.fileinstall.ArtifactListener,
> org.apache.felix.fileinstall.ArtifactInstaller], bundle:
> org.apache.felix.fileinstall [26], symbolicName: org.apache.felix.fileinstall
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.osgi.framework.hooks.bundle.EventHook], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.services.ParserService],
> bundle: org.apache.aries.blueprint [13], symbolicName:
> org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper WARN
> ServiceReference: [org.apache.aries.blueprint.NamespaceHandler], bundle:
> org.apache.aries.blueprint [13], symbolicName: org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] BlueprintExtender INFO
> Destroying BlueprintContainer for bundle org.apache.aries.blueprint
> [mel.test.blueprint.Main.main()] BlueprintExtender INFO
> Destroying BlueprintContainer for bundle org.apache.camel.camel-blueprint
> [mel.test.blueprint.Main.main()] Activator INFO Camel
> activator stopping
> [mel.test.blueprint.Main.main()] Activator INFO Camel
> activator stopped
> [mel.test.blueprint.Main.main()] CamelBlueprintHelper INFO
> Deleting work directory target/bundles/1423485067188
> [ERROR] *************************************
> [ERROR] Error occurred while running main from:
> org.apache.camel.test.blueprint.Main
> [ERROR]
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:488)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.RuntimeException: Gave up waiting for service
> (objectClass=org.apache.camel.CamelContext)
> at
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:240)
> at
> org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:202)
> at org.apache.camel.test.blueprint.Main.doStart(Main.java:104)
> at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
> at org.apache.camel.main.MainSupport.run(MainSupport.java:149)
> at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
> at org.apache.camel.test.blueprint.Main.main(Main.java:81)
> ... 6 more
> {code}
> Issue reported with camel : 2.14.1 & also 2.13.3
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)