Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2DE5E658 for ; Sun, 10 Feb 2013 07:15:14 +0000 (UTC) Received: (qmail 34919 invoked by uid 500); 10 Feb 2013 07:15:14 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 34845 invoked by uid 500); 10 Feb 2013 07:15:13 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 34818 invoked by uid 99); 10 Feb 2013 07:15:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2013 07:15:12 +0000 Date: Sun, 10 Feb 2013 07:15:12 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-6060) spring-dm - OSGi language resolver does not work 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/CAMEL-6060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575365#comment-13575365 ] Claus Ibsen commented on CAMEL-6060: ------------------------------------ This is also a problem for blueprint. The language cannot be resolved due its not registered in the osgi service registry. > spring-dm - OSGi language resolver does not work > ------------------------------------------------ > > Key: CAMEL-6060 > URL: https://issues.apache.org/jira/browse/CAMEL-6060 > Project: Camel > Issue Type: Bug > Components: camel-spring, osgi > Affects Versions: 2.11.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.11.0 > > > Running Camel 2.11 in Karaf 2.3.0, can not resolve languages when using spring-dm apps. > [ 78] [Active ] [Created ] [ ] [ 50] camel-blueprint (2.11.0.SNAPSHOT) > [ 79] [Active ] [ ] [ ] [ 50] mvel2 (2.1.3.Final) > [ 80] [Active ] [ ] [ ] [ 50] camel-mvel (2.11.0.SNAPSHOT) > [ 81] [Active ] [ ] [ ] [ 80] A Camel Spring-DM Route (1.0.0) > Exception in thread "SpringOsgiExtenderThread-2" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Transform[mvel{request.body.substring(0, 4)}] <<< in route: Route[[From[timer:foo?period=5000]] -> [SetBody[bean{helloBe... because of No language could be found for: mvel > at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1328) > at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120) > at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:282) > at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) > at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) > at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) > at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235) > at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358) > at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) > at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) > at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132) > at java.lang.Thread.run(Thread.java:680) > Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Transform[mvel{request.body.substring(0, 4)}] <<< in route: Route[[From[timer:foo?period=5000]] -> [SetBody[bean{helloBe... because of No language could be found for: mvel > at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:879) > at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172) > at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:742) > at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1821) > at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1601) > at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1470) > at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) > at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) > at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1438) > at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228) > at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118) > ... 10 more > Caused by: org.apache.camel.NoSuchLanguageException: No language could be found for: mvel > at org.apache.camel.core.osgi.OsgiLanguageResolver.resolveLanguage(OsgiLanguageResolver.java:63) > at org.apache.camel.impl.DefaultCamelContext.resolveLanguage(DefaultCamelContext.java:1009) > at org.apache.camel.model.language.ExpressionDefinition.createExpression(ExpressionDefinition.java:177) > at org.apache.camel.model.language.ExpressionDefinition.createExpression(ExpressionDefinition.java:168) > at org.apache.camel.model.TransformDefinition.createProcessor(TransformDefinition.java:59) > at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:459) > at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:177) > at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876) > ... 20 more -- 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