3 Replies Latest reply on Nov 28, 2001 5:13 AM by Alain Coetmeur

    NumberFormatException with Date cmp field

    Papick Newbie

      hi,

      using jBoss 2.4.2 and 2.4.3 I get a NumberFormatException when a CMP field is a Date.
      Its a very simple customer cmp bean. works fine
      when using 2.4.1 version.

      any idea?
      i looked at the mappings (standardjaws), looks good.

      [customer] java.rmi.ServerException: Load failed; nested exception is:
      [customer] java.lang.NumberFormatException: 30 00:00:00.0
      [customer] java.lang.NumberFormatException: 30 00:00:00.0
      [customer] at java.lang.Integer.parseInt(Unknown Source)
      [customer] at java.lang.Integer.parseInt(Unknown Source)
      [customer] at java.sql.Date.valueOf(Unknown Source)
      [customer] at org.hsqldb.Column.convertString(Column.java:1001)
      [customer] at org.hsqldb.Column.convertObject(Column.java:1084)
      [customer] at org.hsqldb.jdbcPreparedStatement.setObject(jdbcPreparedStatement.java:589)
      [customer] at org.jboss.pool.jdbc.PreparedStatementInPool.setObject(PreparedStatementInPool.java:282)
      [customer] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:334)
      [customer] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setPrimaryKeyParameters(JDBCCommand.java:365)
      [customer] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.setParameters(JDBCLoadEntityCommand.java:163)
      [customer] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159)
      [customer] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
      [customer] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistenceManager.java:156)
      [customer] at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:362)
      [customer] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:286)
      [customer] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:208)
      [customer] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:136)
      [customer] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [customer] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
      [customer] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [customer] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
      [customer] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [customer] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:427)
      [customer] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:395)
      [customer] at java.lang.reflect.Method.invoke(Native Method)
      [customer] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      [customer] at sun.rmi.transport.Transport$1.run(Unknown Source)
      [customer] at java.security.AccessController.doPrivileged(Native Method)
      [customer] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
      [customer] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      [customer] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
      [customer] at java.lang.Thread.run(Unknown Source)