Dear Ingmar Lötzsch,
Thank you very much.I have solved that problem.The problem was
IntArrayTypeMapper bean problem.The exact code you have mention previous
mailI had to change IntArrayTypeMapper through Collection
instead of int[] keys = (int[]) parameter;..Then its working
fine
Sorry, I have maked a mistake:
> Your version of IntArrayTypeMapper expects a Collection but
> actual parameter is of type org.ada.kms.domain.IntArray because you let
> iBATIS call getKmsgrpaccessiblegroup():
>
> #kmsgrpaccessiblegroups,handler=KmsArrayTypeMapper#
must be
#kmsgrpaccessiblegroup
arameter == null)
>>>>>>>> {
>>>>>>>> setter.setNull(Types.CHAR);
>>>>>>>> }
>>>>>>>> else
>>>>>>>>
t;>> {
>>>>>>>> if (parameter == null)
>>>>>>>> {
>>>>>>>> setter.setNull(Types.CHAR);
>>>>>>>> }
>>>>>>>
;> throw new IllegalArgumentException("Could
>>>>>>> not
>>>>>>> convert null to a String value. " + "Valid argument is an array of
>>>>>>> type
>>>>>>> I_U8 Only ");
>&g
for (int i = 0; i < length; i++)
>>>>>> {
>>>>>>
>>>>>> if (ourData[i].getValue() == (byte)
>>>>>> '\0')
>>>>>> //\0 byte value
>>>&g
+ byteVector);
>>>>> String finalHexString = new String();
>>>>> StringBuffer finalString = new StringBuffer();
>>>>> //String returnString = new String();
>>>>>
>>
>>>> if ( ourData[0].getValue() != (byte)45 )
>>>> //Not a Negative Sign
>>>> {
>>>> log_.debug(" NOT A NEGATIVE SIGN ");
>>>>
checkString;
>>>
>>> }
>>> else
>>> {
>>>
>>> return null;
>>> }
>>> //return null;
>>>
>>> }
&g
s += 4)
>> {
>> int this_char = 0;
>> try
>> {
>> this_char = Integer.parseInt(hex.substring(pos, pos + 4),
>> 16);
>> }
>>
= "00";
> short[] b = new short[vector.size()];
>
> for (int j = 0; j < vector.size(); j++)
> {
>
> b[j] = ((Short) vector.get(j)).shortValue();
> }
> for
return result.substring(0, result.length() - 2);
}
}
-Original Message-
From: jishnu123 [mailto:rjis...@gmail.com]
Sent: Friday, October 09, 2009 10:49 AM
To: user-java@ibatis.apache.org
Subject: Re: IBatis Array feild insertion problem in postgres database()Please
help me)
Thank you for your reply...I have already implemented type handler and all
classes as follows...But i got the the same error as followsPlease help
me.I didn't try array feild selectionI have been trying to insertion
of array feild...
I have to mention again that error as follows
You can use a type handler and implement java.sql.Array. Example:
1st: abstract superclass as adapter
public abstract class SqlArrayAdapter
implements Array
{
public Object getArray() throws SQLException
{
// Auto-generated method stub
return null;
Hai,
I have to tried insertion of array feild in postgres database using
spring mvc with iBatis.I got two lines error ...like
Error as follows...
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
[org.springframework.jdbc.support.
15 matches
Mail list logo