Jira:-Problem with order Change: ofbiz 13, POS. If overpaid.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Jira:-Problem with order Change: ofbiz 13, POS. If overpaid.

Mandeep Mavi
This post has NOT been accepted by the mailing list yet.
Hi I am facing problem with error if customer pay more and their is change due. While pressing Finish button, It gives Problem with order change.

The error file is as below:

elper.java:916)
     [java] org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:871)
     [java] org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:371
)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
:209)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEvent
Config.java:106)
     [java] org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:119)
     [java] net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
     [java] java.lang.Thread.run(Thread.java:744)
     [java] --------------------------------------------------------------------
------------
     [java]
     [java] 2014-04-05 00:26:55,425 (Thread-37) [  ServiceDispatcher.java:523:ER
ROR] Error in Service [createAcctgTransForSalesInvoice]: Error trying to begin t
ransaction, could not process method: The current transaction is marked for roll
back, not beginning a new transaction and aborting current operation; the rollba
ckOnly was caused by: Error in simple-method [Set The Invoice Status [file:/C:/o
fbiz131/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServi
ces.xml#setInvoiceStatus]]: ; [Cannot change status to 'paid', invoice HOCI6 has
 an unapplied balance of -15]
     [java] 2014-04-05 00:26:55,425 (Thread-37) [    TransactionUtil.java:383:IN
FO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollba
ck only is already set.
     [java] 2014-04-05 00:26:55,426 (Thread-37) [  ServiceDispatcher.java:589:IN
FO ] Sync service [POSDispatcher/createAcctgTransForSalesInvoice] finished in [3
] milliseconds
     [java] 2014-04-05 00:26:55,426 (Thread-37) [     ServiceEcaRule.java:137:IN
FO ] For Service ECA [setInvoiceStatus] on [commit] got false for condition: [in
voiceTypeId][equals][CUST_RTN_INVOICE][true][String]
     [java] 2014-04-05 00:26:55,427 (Thread-37) [     ServiceEcaRule.java:137:IN
FO ] For Service ECA [setInvoiceStatus] on [commit] got false for condition: [st
atusId][equals][INVOICE_CANCELLED][true][String]
     [java] 2014-04-05 00:26:55,427 (Thread-37) [     ServiceEcaRule.java:137:IN
FO ] For Service ECA [setInvoiceStatus] on [commit] got false for condition: [st
atusId][equals][INVOICE_APPROVED][true][String]
     [java] 2014-04-05 00:26:55,427 (Thread-37) [     ServiceEcaRule.java:157:IN
FO ] Running Service ECA Service: loadSalesInvoiceFact, triggered by rule on Ser
vice: setInvoiceStatus
     [java] 2014-04-05 00:26:55,428 (Thread-37) [  ServiceDispatcher.java:500:IN
FO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'POSDispatche
r / setInvoiceStatus'
     [java] 2014-04-05 00:26:55,429 (Thread-37) [    TransactionUtil.java:383:IN
FO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollba
ck only is already set.
     [java] 2014-04-05 00:26:55,432 (Thread-37) [    InvoiceServices.java:813:ER
ROR]
     [java] ---- exception report ----------------------------------------------
------------
     [java] Service/other problem creating invoice from order items: org.ofbiz.s
ervice.GenericServiceException: Unable to enlist ServiceXaWrapper with transacti
on (No transaction manager or invalid status)
     [java] Exception: org.ofbiz.service.GenericServiceException
     [java] Message: Unable to enlist ServiceXaWrapper with transaction (No tran
saction manager or invalid status)
     [java] ---- cause ---------------------------------------------------------
------------
     [java] Exception: javax.transaction.xa.XAException
     [java] Message: No transaction manager or invalid status
     [java] ---- stack trace ---------------------------------------------------
------------
     [java] javax.transaction.xa.XAException: No transaction manager or invalid
status
     [java] org.ofbiz.entity.transaction.GenericXaResource.enlist(GenericXaResou
rce.java:56)
     [java] org.ofbiz.service.ServiceXaWrapper.enlist(ServiceXaWrapper.java:161)

     [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.ja
va:128)
     [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
     [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:1
90)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:4
92)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:2
20)
     [java] org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync
(GenericDispatcherFactory.java:83)
     [java] org.ofbiz.accounting.invoice.InvoiceServices.createInvoiceForOrder(I
nvoiceServices.java:796)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJ
avaEngine.java:100)
     [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngi
ne.java:57)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:3
88)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:2
20)
     [java] org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync
(GenericDispatcherFactory.java:83)
     [java] org.ofbiz.order.order.OrderChangeHelper.createOrderInvoice(OrderChan
geHelper.java:293)
     [java] org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHel
per.java:117)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:1153)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:916)
     [java] org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:871)
     [java] org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:371
)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
:209)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEvent
Config.java:106)
     [java] org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:119)
     [java] net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
     [java] java.lang.Thread.run(Thread.java:744)
     [java] --------------------------------------------------------------------
------------
     [java]
     [java] 2014-04-05 00:26:55,433 (Thread-37) [  ServiceDispatcher.java:523:ER
ROR] Error in Service [createInvoiceForOrder]: Service/other problem creating in
voice from order items: org.ofbiz.service.GenericServiceException: Unable to enl
ist ServiceXaWrapper with transaction (No transaction manager or invalid status)

     [java] 2014-04-05 00:26:55,440 (Thread-37) [    TransactionUtil.java:341:ER
ROR]
     [java] ---- exception report ----------------------------------------------
------------
     [java] [TransactionUtil.rollback]
     [java] Exception: java.lang.Exception
     [java] Message: Stack Trace
     [java] ---- stack trace ---------------------------------------------------
------------
     [java] java.lang.Exception: Stack Trace
     [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUti
l.java:340)
     [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUti
l.java:317)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:5
27)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:2
20)
     [java] org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync
(GenericDispatcherFactory.java:83)
     [java] org.ofbiz.order.order.OrderChangeHelper.createOrderInvoice(OrderChan
geHelper.java:293)
     [java] org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHel
per.java:117)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:1153)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:916)
     [java] org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:871)
     [java] org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:371
)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
:209)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEvent
Config.java:106)
     [java] org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:119)
     [java] net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
     [java] java.lang.Thread.run(Thread.java:744)
     [java] --------------------------------------------------------------------
------------
     [java]
     [java] 2014-04-05 00:26:55,450 (Thread-37) [    TransactionUtil.java:351:IN
FO ] [TransactionUtil.rollback] transaction rolled back
     [java] 2014-04-05 00:26:55,451 (Thread-37) [  ServiceDispatcher.java:589:IN
FO ] Sync service [POSDispatcher/createInvoiceForOrder] finished in [1254] milli
seconds
     [java] 2014-04-05 00:26:55,452 (Thread-37) [  OrderChangeHelper.java:123:ER
ROR]
     [java] ---- exception report ----------------------------------------------
------------
     [java] Exception: org.ofbiz.service.GenericServiceException
     [java] Message: Service/other problem creating invoice from order items: or
g.ofbiz.service.GenericServiceException: Unable to enlist ServiceXaWrapper with
transaction (No transaction manager or invalid status)
     [java] ---- stack trace ---------------------------------------------------
------------
     [java] org.ofbiz.service.GenericServiceException: Service/other problem cre
ating invoice from order items: org.ofbiz.service.GenericServiceException: Unabl
e to enlist ServiceXaWrapper with transaction (No transaction manager or invalid
 status)
     [java] org.ofbiz.order.order.OrderChangeHelper.createOrderInvoice(OrderChan
geHelper.java:295)
     [java] org.ofbiz.order.order.OrderChangeHelper.completeOrder(OrderChangeHel
per.java:117)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:1153)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:916)
     [java] org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:871)
     [java] org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:371
)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
:209)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEvent
Config.java:106)
     [java] org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:119)
     [java] net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
     [java] java.lang.Thread.run(Thread.java:744)
     [java] --------------------------------------------------------------------
------------
     [java]
     [java] 2014-04-05 00:26:55,453 (Thread-37) [     PosTransaction.java:873:ER
ROR]
     [java] ---- exception report ----------------------------------------------
------------
     [java] Exception: org.ofbiz.base.util.GeneralException
     [java] Message: Problem with order change; see error logs
     [java] ---- stack trace ---------------------------------------------------
------------
     [java] org.ofbiz.base.util.GeneralException: Problem with order change; see
 error logs
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:1156)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:916)
     [java] org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:871)
     [java] org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:371
)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
:209)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEvent
Config.java:106)
     [java] org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:119)
     [java] net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
     [java] java.lang.Thread.run(Thread.java:744)
     [java] --------------------------------------------------------------------
------------
     [java]
     [java] 2014-04-05 00:26:55,454 (Thread-37) [      PaymentEvents.java:374:ER
ROR]
     [java] ---- exception report ----------------------------------------------
------------
     [java] Problem with order change; see error logs
     [java] Exception: org.ofbiz.base.util.GeneralException
     [java] Message: Problem with order change; see error logs
     [java] ---- stack trace ---------------------------------------------------
------------
     [java] org.ofbiz.base.util.GeneralException: Problem with order change; see
 error logs
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:1156)
     [java] org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutH
elper.java:916)
     [java] org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:871)
     [java] org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:371
)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:57)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:43)
     [java] java.lang.reflect.Method.invoke(Method.java:606)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
:209)
     [java] org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEvent
Config.java:106)
     [java] org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:119)
     [java] net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
     [java] java.lang.Thread.run(Thread.java:744)
     [java] --------------------------------------------------------------------
------------
     [java]
     [java] 2014-04-05 00:26:59,195 (AWT-EventQueue-0) [          PosScreen.java
:363:INFO ] Dialog closed; refreshing screen
     [java] 2014-04-05 00:26:59,206 (AWT-EventQueue-0) [  Log4jLoggerWriter.java
:68 :INFO ] [POS @ pos-1 TX:10010-110081] - is Aggregated Item(10000)

Regards