kenny502 2009-03-18 10:29
浏览 285
已采纳

请教:jbpm运行中的问题:

运行带有JBPM的WEB应用,报错如下:
javax.servlet.ServletException: org.jbpm.persistence.JbpmPersistenceException: couldn't assign id to TaskInstance[AddExpenceAccount]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.workflow.servlet.ChinaFilter.doFilter(ChinaFilter.java:23)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause:
java.sql.SQLException: Field 'VERSION_' doesn't have a default value

这个可能什么原因啊?新手请教
[b]问题补充:[/b]
thank you very much ,i am tesing with your method.

  • 写回答

2条回答

  • playfish05 2009-03-18 10:33
    关注

    数据库字段有问题。可能你的sql建表没有设置默认值,但是插入时候也没有赋值。

    在mysql的严格模式下可能就会出这样的错误。

    MySQL 5 uses a strict mode which needs to be disabled.
    In Windows, Goto Start-->Programs-->MySQL->MySQL Instance Config Wizard. Follow through the Reconfigure Instance option-->Detailed Configuration-->Continue Next a few screens. At the bottom under Enable TCP/IP option there is 'Enable Strict Mode'. Deslect this option (no tick). Save changes and MySQL will restart.

    你也可以试试,删除数据表再重新建一下。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘