You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Jeff Butler (JIRA)" <ib...@incubator.apache.org> on 2006/09/18 20:05:22 UTC

[jira] Commented: (IBATIS-344) iterate tag does not work for list containing strings

    [ http://issues.apache.org/jira/browse/IBATIS-344?page=comments#action_12435545 ] 
            
Jeff Butler commented on IBATIS-344:
------------------------------------

We need some more information.  Please attach the full <select> statement, a description of your parameter and result objects, and a stack trace.


> iterate tag does not work for list containing strings
> -----------------------------------------------------
>
>                 Key: IBATIS-344
>                 URL: http://issues.apache.org/jira/browse/IBATIS-344
>             Project: iBatis for Java
>          Issue Type: Bug
>         Environment: windows, jre 1.4.2
>            Reporter: sriram easwaran
>
> I have an iterate tag in my query that looks like the following:
> <iterate property="workflows"  open="("  close=")"  conjunction="OR" >
> 		state=#workflows[]#
> </iterate>
> The workflows attribute  is an ArrayList containing strings.  When i execute this query i get the following exception:
> Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal list from JavaBean. Cause java.lang.NumberFormatException: For input string: ""
> Somehow ibatis seems to think that the list is  numeric and i am not sure how to make the iterate tag work with my list of strings.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira