0 Replies Latest reply on Aug 13, 2002 11:01 AM by geertpoels

    NullPointerException -> CMPFieldMetaData

    geertpoels

      hi all,

      I'm experiencing the following error trying to create an entitybean(JMSMessageEntityBean) mapped to a MySQL table.
      The entitybean is supposed to store the content of JMS messages arriving.
      Maybe I'm creating this bean completely wrong.

      2002-08-13 15:33:16,476 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand] Create, id is 0
      2002-08-13 15:33:16,476 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] Exists command executing: SELECT COUNT(*) FROM JMSMessageEntityBean WHERE id=?
      2002-08-13 15:33:16,507 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] Set parameter: idx=1, jdbcType=INTEGER, value=0
      2002-08-13 15:33:16,507 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] Create command executing: INSERT INTO JMSMessageEntityBean (message,ipaddress,datetime,id) VALUES (?,?,?,?)
      2002-08-13 15:33:16,507 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand] Exception
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.jaws.metadata.CMPFieldMetaData.getValue(CMPFieldMetaData.java:431)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getCMPFieldValue(JDBCCommand.java:654)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.setParameters(JDBCCreateEntityCommand.java:173)