ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATIS-344) iterate tag does not work for list containing strings
Date Mon, 18 Sep 2006 18:05:22 GMT
    [ 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

        

Mime
View raw message