1 Reply Latest reply on May 5, 2016 6:58 AM by David Lee

    ERROR - org.drools.persistence.SingleSessionCommandService - Could not commit session

    Jacky Chau Newbie

      org.drools.persistence.SingleSessionCommandService - Could not commit session

      java.lang.NullPointerException

        at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)

        at org.drools.persistence.info.WorkItemInfo.getWorkItem(WorkItemInfo.java:103)

        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalGetWorkItem(JPAWorkItemManager.java:187)

        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:115)

        at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)

        at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)

        at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)

        at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)

        at com.viator.vtravel2.jbpm.session.JBPMTaskWorkItemCompletioner.completeWorkItem(JBPMTaskWorkItemCompletioner.java:38)

        at com.viator.vtravel2.payment.PaymentProcessorCallbackImpl.taskPaymentResult(PaymentProcessorCallbackImpl.java:62)

        at com.viator.vtravel2.payment.PaymentProcessorImpl.taskPaymentResult(PaymentProcessorImpl.java:678)

        at com.viator.vtravel2.payment.PaymentProcessorImpl.paymentGroupProcessResult(PaymentProcessorImpl.java:642)

        at com.viator.vtravel2.payment.server.PaymentProcessorServerWorkflow.run(PaymentProcessorServerWorkflow.java:129)

        at com.viator.vtravel2.payment.server.PaymentProcessorServerImpl$ThisThreadExecutor.execute(PaymentProcessorServerImpl.java:587)

        at com.viator.vtravel2.payment.server.PaymentProcessorServerImpl.processPaymentGroups(PaymentProcessorServerImpl.java:108)

        at com.viator.vtravel2.payment.server.PaymentProcessorServerImpl$$FastClassByCGLIB$$100a979e.invoke(<generated>)

        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

        at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:618)

        at com.viator.vtravel2.payment.server.PaymentProcessorServerImpl$$EnhancerByCGLIB$$955b56e0.processPaymentGroups(<generated>)

        at com.viator.vtravel2.payment.PaymentProcessorImpl$1.run(PaymentProcessorImpl.java:446)

        at com.viator.vtravel2.payment.PaymentProcessorImpl$ThisThreadExecutor.execute(PaymentProcessorImpl.java:730)

        at com.viator.vtravel2.payment.PaymentProcessorImpl.performPaymentProcessing(PaymentProcessorImpl.java:439)

        at com.viator.vtravel2.payment.PaymentProcessorImpl.processTaskPayments(PaymentProcessorImpl.java:422)

        at com.viator.vtravel2.payment.PaymentProcessorImpl.processTaskPayments(PaymentProcessorImpl.java:349)

        at com.viator.vtravel2.booking.api.impl.BookingProcessorServiceImpl.processItineraryPayments(BookingProcessorServiceImpl.java:867)

        at com.viator.vtravel2.booking.api.impl.BookingProcessorServiceImpl.bookItinerary(BookingProcessorServiceImpl.java:532)

        at com.viator.vtravel2.booking.api.impl.BookingProcessorServiceImpl$$FastClassByCGLIB$$41fa0a4b.invoke(<generated>)

        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

        at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

        at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)

        at com.viator.vtravel2.booking.api.impl.BookingProcessorServiceImpl$$EnhancerByCGLIB$$80e30eff.bookItinerary(<generated>)

        at com.viator.vtravel2.api.impl.BookingServiceBOImpl.bookItinerary(BookingServiceBOImpl.java:197)

        at com.viator.vtravel2.api.impl.logging.LoggingBookingBO.bookItinerary(LoggingBookingBO.java:334)

        at com.viator.vtravel2.booking.AbstractBookingTest.bookItinerary(AbstractBookingTest.java:251)

        at com.viator.vtravel2.booking.AbstractBookingTest.bookItinerary(AbstractBookingTest.java:100)

        at com.viator.vtravel2.booking.AbstractBookingTest.bookItinerary(AbstractBookingTest.java:84)

        at com.viator.vtravel2.booking.onrequest.OnRequestBookingWithApprovalTest.setupItinerary(OnRequestBookingWithApprovalTest.java:56)

        at com.viator.vtravel2.booking.AbstractBookingTest.setup(AbstractBookingTest.java:78)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)

        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)

        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)

        at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)

        at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)

        at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)

        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)

        at com.viator.vtravel2.runner.OrderedRunner.runChild(OrderedRunner.java:15)

        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

        at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)

        at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)

        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)

        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)