db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <arm...@apache.org>
Subject Re: StringList2VarcharFieldConversion issue
Date Fri, 12 May 2006 21:35:23 GMT
Hi Bogdan,

I can't reproduce your ArrayIndexOutOfBoundsException. Could you post an 
example list to reproduce the problem?
e.g. something like
         list.add("");
         list.add("1");
         list.add("2");...

regards,
Armin


Bogdan Daniliuc wrote:
>   Hi all,
> 
>   We are using OJB version 1.0.4 and facing the following issue:
> StringList2VarcharFieldConversion throws an ArrayIndexOutOfBoundsException
> when retrieving objects from the database. This happends in the method sqlToJava: 
> 
> ....
>         while (pos < length)
>         {
>             if (input.charAt(pos) != '#')
>             {
>                 newString.append(input.charAt(pos));
>             }
>             else
>             {
>                 if (input.charAt(pos + 1) != '#')
> ....
> 
>   when pos = length-1, it will try to access the character at position length,
> resulting in the above mentioned exception. 
> 
> 
>   Bogdan Daniliuc
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message