camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-7732) Can't supply beanRowMapper option to JDBC URI
Date Fri, 22 Aug 2014 05:43:12 GMT

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

Claus Ibsen resolved CAMEL-7732.
--------------------------------

    Resolution: Not a Problem
      Assignee: Claus Ibsen

See this page
http://camel.apache.org/how-do-i-configure-endpoints.html

the section about referring beans

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> Update: beanRowMapper works when passed a Spring reference to a mapper class, but does
not accept a class name as the outputType option does.
> ---
> 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&amp;outputType=SelectOne&amp;outputClass=com.foo.Bar&amp;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)

Mime
View raw message