2 Replies Latest reply on Mar 20, 2017 10:58 AM by arulveera

    Unable to complete the task

    z564808896

      Hi,everybody,I'm trying to run the example-rewards by clicking the button on my web so I use Tomcat8 and servlet3.1,It's ok before taskService.complete,and I can find the record in the database.However,there is a java.lang.NullPointerException when execute taskService.complete(task.getId(), "john", null);Please help me solve the issue,thanks in advance.

      Here is the code and issue:

       

      List<TaskSummary> list = taskService.getTasksAssignedAsPotentialOwner("john", "en-UK");

        TaskSummary task = list.get(0);

        System.out.println("John is executing task " + task.getName());

        taskService.start(task.getId(), "john");

        taskService.complete(task.getId(), "john", null);

       

      John is executing task list
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:47 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:48 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:48 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:48 下午 bitronix.tm.twopc.Preparer prepare
      警告: executing transaction with 0 enlisted resource
      五月 03, 2016 5:30:48 下午 org.drools.persistence.SingleSessionCommandService rollbackTransaction
      警告: Could not commit session
      java.lang.NullPointerException
      at java.io.ByteArrayInputStream.<init>(Unknown Source)
      at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:116)
      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:213)
      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:141)
      at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:75)
      at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35)
      at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:584)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:377)
      at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:152)
      at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:78)
      at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:120)
      at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:226)
      at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:387)
      at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:186)
      at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:76)
      at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:39)
      at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:146)
      at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
      at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)
      at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:173)
      at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:133)
      at com.sample.HelloServlet.complete(HelloServlet.java:101)
      at com.sample.HelloServlet.start(HelloServlet.java:93)
      at com.sample.HelloServlet.receive(HelloServlet.java:79)
      at com.sample.HelloServlet.doGet(HelloServlet.java:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Unknown Source)

      五月 03, 2016 5:30:48 下午 org.jbpm.services.task.persistence.TaskTransactionInterceptor rollbackTransaction
      警告: Could not commit session
      java.lang.NullPointerException
      at java.io.ByteArrayInputStream.<init>(Unknown Source)
      at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:116)
      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:213)
      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:141)
      at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:75)
      at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35)
      at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:584)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:377)
      at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:152)
      at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:78)
      at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:120)
      at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:226)
      at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:387)
      at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:186)
      at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:76)
      at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:39)
      at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:146)
      at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
      at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)
      at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:173)
      at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:133)
      at com.sample.HelloServlet.complete(HelloServlet.java:101)
      at com.sample.HelloServlet.start(HelloServlet.java:93)
      at com.sample.HelloServlet.receive(HelloServlet.java:79)
      at com.sample.HelloServlet.doGet(HelloServlet.java:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Unknown Source)

      五月 03, 2016 5:30:48 下午 org.apache.catalina.core.StandardWrapperValve invoke
      严重: Servlet.service() for servlet [com.sample.HelloServlet] in context with path [/webtest2] threw exception
      java.lang.NullPointerException
      at java.io.ByteArrayInputStream.<init>(Unknown Source)
      at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:116)
      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:213)
      at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:141)
      at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:75)
      at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35)
      at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:584)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:377)
      at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:152)
      at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:78)
      at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:120)
      at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:226)
      at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:387)
      at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:186)
      at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:76)
      at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:39)
      at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:146)
      at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
      at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)
      at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)
      at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:173)
      at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:133)
      at com.sample.HelloServlet.complete(HelloServlet.java:101)
      at com.sample.HelloServlet.start(HelloServlet.java:93)
      at com.sample.HelloServlet.receive(HelloServlet.java:79)
      at com.sample.HelloServlet.doGet(HelloServlet.java:69)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Unknown Source)

      ###################五月 03, 2016 5:32:59 下午 org.apache.catalina.core.StandardContext reload
      信息: Reloading Context with name [/webtest2] has started
      五月 03, 2016 5:32:59 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
      警告: The web application [webtest2] appears to have started a thread named [bitronix-disk-force-batcher] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
      java.lang.Object.wait(Native Method)
      java.lang.Object.wait(Unknown Source)
      bitronix.tm.journal.DiskForceWaitQueue.waitUntilNotEmpty(DiskForceWaitQueue.java:79)
      bitronix.tm.journal.DiskForceBatcherThread.runForceBatch(DiskForceBatcherThread.java:91)
      bitronix.tm.journal.DiskForceBatcherThread.run(DiskForceBatcherThread.java:114)
      五月 03, 2016 5:32:59 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
      警告: The web application [webtest2] appears to have started a thread named [bitronix-scheduler] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
      java.lang.Thread.sleep(Native Method)
      bitronix.tm.timer.TaskScheduler.run(TaskScheduler.java:194)
      五月 03, 2016 5:33:02 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance
      警告: Name = jbpm-ds Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "15" for "maxActive" property, which is being ignored.
      五月 03, 2016 5:33:02 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance
      警告: Name = jbpm-ds Property maxWait is not used in DBCP2 , use maxWaitMillis instead. maxWaitMillis default value is -1. You have set value of "10000" for "maxWait" property, which is being ignored.
      五月 03, 2016 5:33:02 下午 org.apache.jasper.servlet.TldScanner scanJars
      信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
      五月 03, 2016 5:33:02 下午 org.apache.catalina.core.StandardContext reload
      信息: Reloading Context with name [/webtest2] is completed
      五月 03, 2016 5:42:08 下午 org.apache.catalina.core.StandardContext reload
      信息: Reloading Context with name [/webtest2] has started
      五月 03, 2016 5:42:12 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance
      警告: Name = jbpm-ds Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "15" for "maxActive" property, which is being ignored.
      五月 03, 2016 5:42:12 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance
      警告: Name = jbpm-ds Property maxWait is not used in DBCP2 , use maxWaitMillis instead. maxWaitMillis default value is -1. You have set value of "10000" for "maxWait" property, which is being ignored.
      五月 03, 2016 5:42:12 下午 org.apache.jasper.servlet.TldScanner scanJars
      信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
      五月 03, 2016 5:42:12 下午 org.apache.catalina.core.StandardContext reload
      信息: Reloading Context with name [/webtest2] is completed
      五月 03, 2016 6:01:49 下午 org.apache.catalina.core.StandardContext reload
      信息: Reloading Context with name [/webtest2] has started
      五月 03, 2016 6:02:02 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance
      警告: Name = jbpm-ds Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "15" for "maxActive" property, which is being ignored.
      五月 03, 2016 6:02:02 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance
      警告: Name = jbpm-ds Property maxWait is not used in DBCP2 , use maxWaitMillis instead. maxWaitMillis default value is -1. You have set value of "10000" for "maxWait" property, which is being ignored.
      五月 03, 2016 6:02:02 下午 org.apache.jasper.servlet.TldScanner scanJars
      信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
      五月 03, 2016 6:02:02 下午 org.apache.catalina.core.StandardContext reload
      信息: Reloading Context with name [/webtest2] is completed

        • 1. Re: Unable to complete the task
          arulveera

          Hello David,

          Even I'm facing the same issue when I try to complete human task. were you able solve the issue. If yes, could you please share your solution with us.

           

          I have created a question in stackoverflow as well. Apparently,  no one answered yet. If possible, could you please throw some light on the below link.

           

           

          jBPM 6.5 + Tomcat 8 + Bitronix Transaction + Oracle 11G configuration | Could not commit session java.lang.NullPointerEx…

          • 2. Re: Unable to complete the task
            arulveera

            Finally, After a long hauling effort, my boss gave me a hint to try adding transaction synchronization registry to the CATALINA_OPTS (you know boss is always right :D).

            -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry

            After the changes, your tomcat setenv.sh or setenv.bat should look something like below.

            set CATALINA_OPTS=-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=%CATALINA_HOME% -Dbitronix.tm.configuration=%CATALINA_HOME%\conf\btm-config.properties -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry -Djava.security.auth.login.config=%CATALINA_HOME%\webapps\jbpm-console\WEB-INF\classes\login.config -Dorg.jboss.logging.provider=jdk -Dorg.kie.task.insecure=true -Dorg.kie.server.persistence.ds=java:comp/env/jdbc/jbpm -Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.BitronixJtaPlatform -Dorg.kie.server.id=tomcat-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/jbpm-console/rest/controller -Dkie.maven.settings.custom=/path/to/your/maven/settings.xml -Dorg.drools.server.filter.classes=true