Subject Re: [Firebird-Java] Re: Mac OSX and Varchar
Author Roman Rokytskyy
> Thanks for your response, the query fails in isql also:
> ...
> The error is isql is:
> =====================================================================
> ========== ============
> ================================================== ============
> Statement failed, SQLCODE = -901
>
> message length error (encountered -24432, expected 41104)

I would say this is a bug in Firebird for OSX. Try to create a standalone
test case and submit is as a bug to Firebird project.

> java.lang.IllegalArgumentException
> at sun.reflect.UnsafeIntegerFieldAccessorImpl.set
> (UnsafeIntegerFieldAccessorImpl.java:80)
> at java.lang.reflect.Field.set(Field.java:519)
> at com.taylor.bol.dataaccess.UniversalMapper.getFireBirdData
> (UniversalMapper.java:304)
> at com.taylor.bol.dataaccess.UniversalMapper.getData
> (UniversalMapper.java:92)
> at com.taylor.apps.cloze.bol.dataaccess.ClozeTitleMapper.get
> (ClozeTitleMapper.java:123)
> at
>
> Using metadata to build object on java side:
> tempField.set(obj, set.getObject((String) m_columnNames.get(j)));

Does com.taylor.bol.dataaccess.UniversalMapper.getFireBirdData class comes
from you? If yes, why do you access object fields directly via reflection
and not via appropriate getter methods?

Can you post your reflection code?

Roman