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 4F4E611B8A for ; Thu, 21 Aug 2014 17:09:12 +0000 (UTC) Received: (qmail 75361 invoked by uid 500); 21 Aug 2014 17:09:11 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 75241 invoked by uid 500); 21 Aug 2014 17:09:11 -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 75088 invoked by uid 99); 21 Aug 2014 17:09:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 17:09:11 +0000 Date: Thu, 21 Aug 2014 17:09:11 +0000 (UTC) From: "Nathan Wray (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-7732) Can't supply beanRowMapper option to JDBC URI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nathan Wray created CAMEL-7732: ---------------------------------- Summary: Can't supply beanRowMapper option to JDBC URI Key: CAMEL-7732 URL: https://issues.apache.org/jira/browse/CAMEL-7732 Project: Camel Issue Type: Bug Components: camel-jdbc Affects Versions: 2.13.2 Reporter: Nathan Wray When trying to override the DefaultBeanRowMapper with a custom mapper on a jdbc using the beanRowMapper option in the URI, such as: jdbc:MyDS?useHeadersAsParameters=true&outputType=SelectOne&outputClass=com.foo.Bar&beanRowMapper=com.my.CorrectedBeanRowMapper The following error is thrown, complaining that it doesn't know how to turn a string into an instance of BeanRowMapper: Caused By: java.lang.IllegalArgumentException: Could not find a suitable setter for property: beanRowMapper as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.apache.camel.component.jdbc.BeanRowMapper with value com.my.CorrectedBeanRowMapper -- This message was sent by Atlassian JIRA (v6.2#6252)