3 Replies Latest reply on May 21, 2002 11:22 AM by suvankar

    Field Mapping - Invalid parameter error for ORACLE type NUMB

    Jon Lees Newbie

      I have successfully created and deployed into JBoss an EJB that maps to a table in an existing Oracle database. All the fields can be accessed in the usual way, except for those with an Oracle datatype of NUMBER(2).

      When I comment out the cmp-field entry in the ejb-jar and jaws xml files, the bean's read methods return null for these fields. When I comment them back in, the read method gives a "java.lang.IllegalArgumentException". I'm guessig that this is because the NUMBER(2) is not an integer and this is what I'm trying to map it to!!

      An example of my jaws.xml and ejb-jar.xml files;


      Any idea anybody..?