2 Replies Latest reply on Sep 17, 2002 9:52 PM by brall

    problem with boolean properties

    brall

      I am using jboss3.0.0 on Solaris against an oracle 8i (8.1.6) database with the latest oracle jdbc drivers from oracle. I am having problems with CMP for a local entity that has a boolean property. When the entity is created I get a this exception:
      Could not create entity:java.lang.ClassCastException: java.lang.Boolean
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      I checked the type mapping for the database and it shows 'Boolean' objects as sql type 'NUMBER(1)' columns, which is what my database is using. I'm not sure how the object is mapped to the primitive boolean property, but it seems to work fine for other types like ints. I have tested the same application on a mysql server and I do not have the problem. Any suggestions would be much appreciated.
      Thanks,
      --BRYAN