4 Replies Latest reply on Jul 30, 2009 6:51 PM by henry donnell

    Error ...  could not bind value

    henry donnell Newbie

      22:52:00,208 DEBUG SQL:111 - select product0_.PRODUCT_ID as PRODUCT1_16_0_, product0_.AVAILABLE as AVAILABLE16_0_, product0_.DESCRIPTION as DESCRIPT3_16_0_, product0_.MANUFACTURER_ID as MANUFACT4_16_0_, product0_.MARKUP as MARKUP16_0_, product0_.ORIGINAL_ID as ORIGINAL6_16_0_, product0_.PRODUCT_CODE as PRODUCT7_16_0_, product0_.PURCHASE_COST as PURCHASE8_16_0_, product0_.QUANTITY_ON_HAND as QUANTITY9_16_0_, product0_.STATE as STATE16_0_ from APP.PRODUCT product0_ where product0_.PRODUCT_ID=?
      22:52:00,239 DEBUG SQL:111 - update APP.PRODUCT set AVAILABLE=?, DESCRIPTION=?, MANUFACTURER_ID=?, MARKUP=?, ORIGINAL_ID=?, PRODUCT_CODE=?, PURCHASE_COST=?, QUANTITY_ON_HAND=?, STATE=? where PRODUCT_ID=?
      22:52:00,239 DEBUG SQL:111 - select next_hi from APP.hibernate_unique_key for read only with rs
      22:52:00,254 DEBUG SQL:111 - update APP.hibernate_unique_key set next_hi = ? where next_hi = ?
      22:52:00,270 DEBUG SQL:111 - insert into APP.REVINFO (REVTSTMP, REV) values (?, ?)
      22:52:00,270 DEBUG SQL:111 - insert into APP.PRODUCT_AUD (REVTYPE, AVAILABLE, DESCRIPTION, MANUFACTURER_ID, MARKUP, ORIGINAL_ID, PRODUCT_CODE, PURCHASE_COST, QUANTITY_ON_HAND, STATE, PRODUCT_ID, REV) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
      22:52:00,286 INFO IntegerType:158 - could not bind value '{REV=DefaultRevisionEntity(id = 1, revisionDate = 29.07.2009 22:52:00), productId=3}' to parameter: 6; java.util.HashMap cannot be cast to java.lang.Integer
      22:52:00,286 ERROR JDBCTransaction:277 - exception calling user Synchronization
      java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Integer
      at org.hibernate.type.IntegerType.set(IntegerType.java:64)
      at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:154)
      at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:131)
      at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2025)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2271)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2688)
      at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
      at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
      at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
      at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
      at org.hibernate.envers.synchronization.AuditSync.beforeCompletion(AuditSync.java:167)
      at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTransactionCompletion(JDBCTransaction.java:274)
      at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:140)
      at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
      at javaapplication8.Main.save(Main.java:74)
      at javaapplication8.Main.main(Main.java:29)
      BUILD SUCCESSFUL (total time: 2 seconds)