jbpm_问题

最近在搞JBPM   写了一个demo

 

17:38:47,609 [main] WARN  JDBCExceptionReporter : SQL Error: 1406, SQLState: 22001
17:38:47,609 [main] ERROR JDBCExceptionReporter : Data too long for column 'ISTERMINATIONIMPLICIT_' at row 1
org.hibernate.exception.DataException: could not insert: [org.jbpm.graph.def.ProcessDefinition]
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:75)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1986)
	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2405)
	at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:37)
	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:269)
	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
	at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
	at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
	at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:544)
	at org.hibernate.impl.SessionImpl.save(SessionImpl.java:533)
	at org.hibernate.impl.SessionImpl.save(SessionImpl.java:529)
	at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:77)
	at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
	at org.com.jbpm.test1.JBPM_DeployProcessDefition.main(JBPM_DeployProcessDefition.java:36)
Caused by: java.sql.SQLException: Data too long for column 'ISTERMINATIONIMPLICIT_' at row 1
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1167)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1278)
	at com.mysql.jdbc.Connection.execSQL(Connection.java:2251)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1772)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1619)
	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1968)
	... 17 more
17:38:47,609 [main] DEBUG JbpmContext : closing JbpmContext

 

  eclipse3.2 +jpbm3.1

 因为之前在 myeclipse 装jbpm desinger时有问题,

 

但在myeclise 中建一个demo 时就不会报上面的错,

 

按理来说,hibernate 会自动把boolean 转为 1 / 0 存入数据库,在mysql 中是bit(1)

 

 哪位大哥知道,帮助啊!

 

 

--------------->>>>>>>>>>>>>.

今天晚上终于试好了,是与JDK的版本有关,我机器上有JDK.4,1.5.1.6

1.4 是不能用的,

 

我一直用的是JDK1.6 ,没想到是它报的错,后来换成1.5 就OK了。

可能是转换成java对象时不对 .

 

 JDK1。6 和1.5 以前记录是有些区别的,难道区别有这么大,这可是一个很大的错误。

 

 

 

 

你可能感兴趣的:(java,Hibernate,mysql,jdbc,jbpm)