javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Field ‘id’ doesn’t have a default value

salaboy.com | 4 months ago
  1. 0

    Using the jBPM Console NG – HR Example | .Salaboy

    salaboy.com | 1 year ago
    javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Field ‘id’ doesn’t have a default value
  2. 0

    Using the jBPM Console NG – HR Example | .Salaboy

    salaboy.com | 4 months ago
    javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Field ‘id’ doesn’t have a default value
  3. 0

    DataException when trying to persist Entity

    Stack Overflow | 2 years ago | Lucas
    javax.persistence.PersistenceException: org.hibernate.exception.DataException: data exception: string data, right truncation; table: NOTE column: DATE
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problems when clicking run/debug on PipelineList

    GitHub | 3 years ago | tomas-knap
    javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: SR133: Can not set NULL to not nullable column 'DB.INTLIB.EXEC_PIPELINE.context_id'
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.persistence.PersistenceException

    org.hibernate.exception.GenericJDBCException: Field ‘id’ doesn’t have a default value

    at org.hibernate.ejb.AbstractEntityManagerImpl.convert()
  2. Hibernate EJB
    AbstractEntityManagerImpl.persist
    1. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
    2. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
    3. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
    4. org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:859)[hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
    4 frames
  3. jBPM :: JPA Human Task Persistence
    JPATaskPersistenceContext.persistTask
    1. org.jbpm.services.task.persistence.JPATaskPersistenceContext.persistTask(JPATaskPersistenceContext.java:83)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    1 frame
  4. jBPM :: Human Task Core
    TaskCommandExecutorImpl$SelfExecutionCommandService.execute
    1. org.jbpm.services.task.impl.TaskInstanceServiceImpl.addTask(TaskInstanceServiceImpl.java:103)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    2. org.jbpm.services.task.commands.AddTaskCommand.execute(AddTaskCommand.java:105)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    3. org.jbpm.services.task.commands.AddTaskCommand.execute(AddTaskCommand.java:53)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    4. org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    4 frames
  5. Drools :: Core
    AbstractInterceptor.executeNext
    1. org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  6. jBPM :: JPA Human Task Persistence
    TaskTransactionInterceptor.execute
    1. org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:53)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    1 frame
  7. jBPM :: Human Task Core
    CommandBasedTaskService.addTask
    1. org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    2. org.jbpm.services.task.impl.command.CommandBasedTaskService.addTask(CommandBasedTaskService.java:471)[jbpm-human-task-core-6.0.1-20140120.jar:6.0.1-SNAPSHOT]
    2 frames
  8. jBPM :: RuntimeManager
    SynchronizedTaskService.addTask
    1. org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.addTask(SynchronizedTaskService.java:456)[jbpm-runtime-manager-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  9. jBPM :: Human Task WorkItems
    LocalHTWorkItemHandler.executeWorkItem
    1. org.jbpm.services.task.wih.LocalHTWorkItemHandler.executeWorkItem(LocalHTWorkItemHandler.java:60)[jbpm-human-task-workitems-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  10. Drools :: Persistence :: JPA
    JPAWorkItemManager.internalExecuteWorkItem
    1. org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:56)[drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  11. org.jbpm.workflow
    NodeInstanceImpl.trigger
    1. org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:124)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    2. org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    3. org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    4. org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    5. org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:66)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    6. org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:43)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    7. org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    7 frames
  12. org.jbpm.ruleflow
    RuleFlowProcessInstance.internalStart
    1. org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  13. org.jbpm.process
    ProcessInstanceImpl.start
    1. org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:222)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  14. org.jbpm.workflow
    WorkflowProcessInstanceImpl.start
    1. org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:358)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  15. org.jbpm.process
    ProcessRuntimeImpl.startProcess
    1. org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:189)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    2. org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:171)[jbpm-flow-6.0.1.Final.jar:6.0.1.Final]
    2 frames
  16. Drools :: Core
    AbstractInterceptor.executeNext
    1. org.drools.core.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1580)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    2. org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:366)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    3. org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:121)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    4. org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:40)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    5. org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    6. org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    6 frames
  17. Drools :: Persistence :: JPA
    SingleSessionCommandService$TransactionInterceptor.execute
    1. org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:527)[drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  18. Drools :: Core
    AbstractInterceptor.executeNext
    1. org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  19. Drools :: Persistence :: JPA
    SingleSessionCommandService.execute
    1. org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73)[drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]
    2. org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:375)[drools-persistence-jpa-6.0.1.Final.jar:6.0.1.Final]
    2 frames
  20. Drools :: Core
    CommandBasedStatefulKnowledgeSession.startProcess
    1. org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)[drools-core-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  21. org.jbpm.console
    FormModelerProcessStarterEntryPointImpl$Proxy$_$$_WeldClientProxy.startProcessFromRenderContext
    1. org.jbpm.console.ng.bd.backend.server.KieSessionEntryPointImpl.startProcess(KieSessionEntryPointImpl.java:74)[jbpm-console-ng-business-domain-backend-6.0.1.Final.jar:6.0.1.Final]
    2. org.jbpm.console.ng.bd.backend.server.KieSessionEntryPointImpl$Proxy$_$$_WeldClientProxy.startProcess(KieSessionEntryPointImpl$Proxy$_$$_WeldClientProxy.java)[jbpm-console-ng-business-domain-backend-6.0.1.Final.jar:6.0.1.Final]
    3. org.jbpm.console.ng.ht.backend.server.FormModelerProcessStarterEntryPointImpl.startProcessFromRenderContext(FormModelerProcessStarterEntryPointImpl.java:44)[jbpm-console-ng-human-tasks-backend-6.0.1.Final.jar:6.0.1.Final]
    4. org.jbpm.console.ng.ht.backend.server.FormModelerProcessStarterEntryPointImpl$Proxy$_$$_WeldClientProxy.startProcessFromRenderContext(FormModelerProcessStarterEntryPointImpl$Proxy$_$$_WeldClientProxy.java)[jbpm-console-ng-human-tasks-backend-6.0.1.Final.jar:6.0.1.Final]
    4 frames
  22. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[rt.jar:1.6.0_43]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[rt.jar:1.6.0_43]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[rt.jar:1.6.0_43]
    4. java.lang.reflect.Method.invoke(Method.java:597)[rt.jar:1.6.0_43]
    4 frames
  23. Errai::Bus
    RemoteServiceCallback.callback
    1. org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    2. org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:22)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    3. org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    3 frames
  24. org.jboss.errai
    CDIExtensionPoints$3.callback
    1. org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:499)[errai-weld-integration-2.4.3.Final.jar:2.4.3.Final]
    1 frame
  25. Errai::Bus
    DefaultBlockingServlet.doPost
    1. org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    2. org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:284)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    3. org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    4. org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:92)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    5. org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:109)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    6. org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:140)[errai-bus-2.4.3.Final.jar:2.4.3.Final]
    6 frames
  26. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:754)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
    2 frames
  27. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
    2 frames
  28. Weld Implementation
    ConversationPropagationFilter.doFilter
    1. org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)[weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
    1 frame
  29. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
    2 frames
  30. Solder Implementation
    CatchExceptionFilter.doFilter
    1. org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)[solder-impl-3.2.1.Final.jar:3.2.1.Final]
    1 frame
  31. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
    2 frames
  32. Solder API
    ServletEventBridgeFilter.doFilter
    1. org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)[solder-impl-3.2.1.Final.jar:3.2.1.Final]
    1 frame
  33. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
    2 frames
  34. jBPM Designer - Backend
    PluggableFilter.doFilter
    1. org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)[jbpm-designer-backend-6.0.1.Final.jar:6.0.1.Final]
    1 frame
  35. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
    2 frames
  36. UberFire Security Server
    UberFireSecurityFilter.doFilter
    1. org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)[uberfire-security-server-0.3.1.Final.jar:0.3.1.Final]
    1 frame
  37. Glassfish Core
    AuthenticatorBase.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)[jbossweb-7.0.13.Final.jar:]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)[jbossweb-7.0.13.Final.jar:]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)[jbossweb-7.0.13.Final.jar:]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)[jbossweb-7.0.13.Final.jar:]
    5 frames
  38. JPA
    WebNonTxEmCloserValve.invoke
    1. org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)[jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
    1 frame
  39. JBoss Web
    SecurityContextAssociationValve.invoke
    1. org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
    1 frame
  40. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[jbossweb-7.0.13.Final.jar:]
    3. org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416)[jbossweb-7.0.13.Final.jar:]
    4. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[jbossweb-7.0.13.Final.jar:]
    5. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)[jbossweb-7.0.13.Final.jar:]
    5 frames
  41. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[jbossweb-7.0.13.Final.jar:]
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)[jbossweb-7.0.13.Final.jar:]
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)[jbossweb-7.0.13.Final.jar:]
    3 frames
  42. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)[rt.jar:1.6.0_43]
    1 frame