0 Replies Latest reply on Aug 15, 2003 9:55 AM by jeeads

    Mapping User Type in standardjbosscmp-jdbc.xml

    jeeads

      I have migrated from 3.0.3 to 3.2.1 using the same mapping for image data in SQLServer2000


      <java-type>com.synapps.j2eeutility.valueobjectbase.VOBlob</java-type>
      <jdbc-type>JAVA_OBJECT</jdbc-type>
      <sql-type>IMAGE</sql-type>


      Now when I try to access blob/image data in my database I get the following error:

      java.sql.SQLException: Got a [B[cl=0, value=[B@1542cdc] while looking for a com.synapps.j2eeutility.valueobjectbase.VOBlob[cl=2720472]
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.coerceToJavaType(JDBCUtil.java:588)

      Am I missing something in the configuration for 3.2.1?
      This mapping was working fine in 3.0.3.