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 83F3B180ED for ; Mon, 5 Oct 2015 21:29:27 +0000 (UTC) Received: (qmail 35525 invoked by uid 500); 5 Oct 2015 21:29:27 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 35487 invoked by uid 500); 5 Oct 2015 21:29:27 -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 35477 invoked by uid 99); 5 Oct 2015 21:29:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2015 21:29:27 +0000 Date: Mon, 5 Oct 2015 21:29:27 +0000 (UTC) From: "Tim (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-9191) camel-example-spring-jms ServerRoutes contains invalid URI parameter methodName MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tim created CAMEL-9191: -------------------------- Summary: camel-example-spring-jms ServerRoutes contains invalid URI parameter methodName Key: CAMEL-9191 URL: https://issues.apache.org/jira/browse/CAMEL-9191 Project: Camel Issue Type: Bug Components: examples Affects Versions: 2.15.2 Environment: Linux 3.8.4-102.fc17.x86_64 #1 SMP Sun Mar 24 13:09:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) Reporter: Tim Priority: Trivial The camel-example-spring-jms org.apache.camel.example.server.ServerRoutes contains an invalid URI parameter methodName (see exception below). Fix - change 'methodName' to 'method' as below //from("jms:queue:numbers").to("bean:multiplier?methodName=multiply"); from("jms:queue:numbers").to("bean:multiplier?method=multiply"); Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.031 sec <<< FAILURE! - in org.apache.camel.example.SpringJmsClientRemotingServerTest org.apache.camel.example.SpringJmsClientRemotingServerTest Time elapsed: 2.03 sec <<< ERROR! org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[bean:multiplier?methodName=multiply] <<< in route: Route(route1)[[From[jms:queue:numbers]] -> [To[bean:multipli... because of Failed to resolve endpoint: bean://multiplier?methodName=multiply due to: Failed to resolve endpoint: bean://multiplier?methodName=multiply due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{methodName=multiply}] at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:183) at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:128) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:558) at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79) at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:200) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113) at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62) at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56) at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:505) at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:217) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1025) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:841) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2895) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2618) at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167) at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467) at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463) at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:255) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:773) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93) at org.apache.camel.example.SpringJmsClientRemotingServerTest.setupFreePort(SpringJmsClientRemotingServerTest.java:46) org.apache.camel.example.SpringJmsClientRemotingServerTest Time elapsed: 2.031 sec <<< ERROR! java.lang.NullPointerException: null at org.apache.camel.example.SpringJmsClientRemotingServerTest.stopSpring(SpringJmsClientRemotingServerTest.java:52) -- This message was sent by Atlassian JIRA (v6.3.4#6332)