POS and Authorize.net error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

POS and Authorize.net error

Vince Clark




We use auth.net all the time thru eCommerce. Having problems with POS.

Huge stack trace. Here is part of it:



2007-11-24 15:53:53,531 (Thread-148) [  ServiceDispatcher.java:527:ERROR]
---- exception report ----------------------------------------------------------
Could not commit transaction for service [authOrderPayments] call
Exception: org.ofbiz.entity.transaction.GenericTransactionException
Message: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
---- stack trace ---------------------------------------------------------------
org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:208)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:172)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:954)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2007-11-24 15:53:53,562 (Thread-148) [     PosTransaction.java:626:ERROR]
---- exception report ----------------------------------------------------------
Exception: org.ofbiz.base.util.GeneralException
Message: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
---- stack trace ---------------------------------------------------------------
org.ofbiz.base.util.GeneralException: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:958)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:595)
org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:954)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2007-11-24 15:53:53,562 (Thread-148) [      PaymentEvents.java:307:ERROR]
---- exception report ----------------------------------------------------------
Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
Exception: org.ofbiz.base.util.GeneralException
Message: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
---- stack trace ---------------------------------------------------------------
org.ofbiz.base.util.GeneralException: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:958)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:595)
org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:954)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------



Vince Clark
Global Era
The Freedom of Open Source
[hidden email]
(303) 493-6723
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
I would put some debug code in processCard
to see what is being sent in the properties.
or you can work you way thru
ccAuthCapture.

buildAIMProperties
is where reading in then properties file.
might check you have the correct info there.
/applications/accounting/config/payment.properties

Vince M. Clark sent the following on 11/24/2007 8:21 AM:

>
>
>
> We use auth.net all the time thru eCommerce. Having problems with POS.
>
> Huge stack trace. Here is part of it:
>
>
>
> 2007-11-24 15:53:53,531 (Thread-148) [  ServiceDispatcher.java:527:ERROR]
> ---- exception report ----------------------------------------------------------
> Could not commit transaction for service [authOrderPayments] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:208)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:172)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2007-11-24 15:53:53,562 (Thread-148) [     PosTransaction.java:626:ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:958)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2007-11-24 15:53:53,562 (Thread-148) [      PaymentEvents.java:307:ERROR]
> ---- exception report ----------------------------------------------------------
> Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
> Exception: org.ofbiz.base.util.GeneralException
> Message: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service: org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)) (Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null)))
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:958)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> org.ofbiz.service.GenericServiceException: Could not commit transaction for service [authOrderPayments] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [authOrderPaymentPreference]: Error processing payment authorization: org.ofbiz.base.util.GeneralException: Problems invoking payment processor! Will retry later. Order ID is: [FCCO10020 (Service target threw an unexpected exception (null))
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
>
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>
Reply | Threaded
Open this post in threaded view
|

RE: POS and Authorize.net error

Christopher L
That's a good way to go deduce the problem.  You might also consider putting
in code to output the error that is coming back from the third party
Authorize.Net classes.  Ofbiz doesn't generally relay error messages from
outside the immediate ofbiz code base.

Chris

-----Original Message-----
From: BJ Freeman [mailto:[hidden email]]
Sent: Saturday, November 24, 2007 10:59 AM
To: [hidden email]
Subject: Re: POS and Authorize.net error

I would put some debug code in processCard
to see what is being sent in the properties.
or you can work you way thru
ccAuthCapture.

buildAIMProperties
is where reading in then properties file.
might check you have the correct info there.
/applications/accounting/config/payment.properties

Vince M. Clark sent the following on 11/24/2007 8:21 AM:

>
>
>
> We use auth.net all the time thru eCommerce. Having problems with POS.
>
> Huge stack trace. Here is part of it:
>
>
>
> 2007-11-24 15:53:53,531 (Thread-148) [  ServiceDispatcher.java:527:ERROR]
> ---- exception report
----------------------------------------------------------
> Could not commit transaction for service [authOrderPayments] call
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back
instead because of: Error in Service [authOrderPaymentPreference]: Error
processing payment authorization: org.ofbiz.base.util.GeneralException:
Problems invoking payment processor! Will retry later. Order ID is:
[FCCO10020 (Service target threw an unexpected exception (null))
> ---- stack trace
---------------------------------------------------------------
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error,
could not commit transaction, was rolled back instead because of: Error in
Service [authOrderPaymentPreference]: Error processing payment
authorization: org.ofbiz.base.util.GeneralException: Problems invoking
payment processor! Will retry later. Order ID is: [FCCO10020 (Service target
threw an unexpected exception (null))
>
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:208
)
>
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:172
)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:954)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
ava:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
>
----------------------------------------------------------------------------
----
>
> 2007-11-24 15:53:53,562 (Thread-148) [     PosTransaction.java:626:ERROR]
> ---- exception report
----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: Error in authOrderPayments service:
org.ofbiz.service.GenericServiceException: Could not commit transaction for
service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)) (Could not commit transaction for service
[authOrderPayments] call: Roll back error, could not commit transaction, was
rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)))
> ---- stack trace
---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
org.ofbiz.service.GenericServiceException: Could not commit transaction for
service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)) (Could not commit transaction for service
[authOrderPayments] call: Roll back error, could not commit transaction, was
rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)))
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:958)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
ava:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> org.ofbiz.service.GenericServiceException: Could not commit transaction
for service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null))
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:954)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
ava:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
>
----------------------------------------------------------------------------
----
>
> 2007-11-24 15:53:53,562 (Thread-148) [      PaymentEvents.java:307:ERROR]
> ---- exception report
----------------------------------------------------------
> Error in authOrderPayments service:
org.ofbiz.service.GenericServiceException: Could not commit transaction for
service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)) (Could not commit transaction for service
[authOrderPayments] call: Roll back error, could not commit transaction, was
rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)))
> Exception: org.ofbiz.base.util.GeneralException
> Message: Error in authOrderPayments service:
org.ofbiz.service.GenericServiceException: Could not commit transaction for
service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)) (Could not commit transaction for service
[authOrderPayments] call: Roll back error, could not commit transaction, was
rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)))
> ---- stack trace
---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
org.ofbiz.service.GenericServiceException: Could not commit transaction for
service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)) (Could not commit transaction for service
[authOrderPayments] call: Roll back error, could not commit transaction, was
rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null)))
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:958)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
ava:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
> org.ofbiz.service.GenericServiceException: Could not commit transaction
for service [authOrderPayments] call: Roll back error, could not commit
transaction, was rolled back instead because of: Error in Service
[authOrderPaymentPreference]: Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
Will retry later. Order ID is: [FCCO10020 (Service target threw an
unexpected exception (null))
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:954)
>
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
va:860)
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
ava:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:595)
>
----------------------------------------------------------------------------
----
>
>
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>

Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
In reply to this post by BJ Freeman
actually if you look at the code.
it does not use any Authorize.net classes.
it is a complete re-write right down sending the data and retrieving it
from Authorize.net.
/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
AIMPaymentServices.java -> interfaces to ofbiz
AuthorizeResponse.java -> interfaces to Authorize.net
it takes some configuration in the
/applications/accounting/config/payment.properties

since the error is a null.
looks like the payment.properties probably have not be configured.

clearchris sent the following on 11/24/2007 1:20 PM:

> That's a good way to go deduce the problem.  You might also consider putting
> in code to output the error that is coming back from the third party
> Authorize.Net classes.  Ofbiz doesn't generally relay error messages from
> outside the immediate ofbiz code base.
>
> Chris
>
> -----Original Message-----
> From: BJ Freeman [mailto:[hidden email]]
> Sent: Saturday, November 24, 2007 10:59 AM
> To: [hidden email]
> Subject: Re: POS and Authorize.net error
>
> I would put some debug code in processCard
> to see what is being sent in the properties.
> or you can work you way thru
> ccAuthCapture.
>
> buildAIMProperties
> is where reading in then properties file.
> might check you have the correct info there.
> /applications/accounting/config/payment.properties
>
> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>
>>
>> We use auth.net all the time thru eCommerce. Having problems with POS.
>>
>> Huge stack trace. Here is part of it:
>>
>>
>>
>> 2007-11-24 15:53:53,531 (Thread-148) [  ServiceDispatcher.java:527:ERROR]
>> ---- exception report
> ----------------------------------------------------------
>> Could not commit transaction for service [authOrderPayments] call
>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
>> Message: Roll back error, could not commit transaction, was rolled back
> instead because of: Error in Service [authOrderPaymentPreference]: Error
> processing payment authorization: org.ofbiz.base.util.GeneralException:
> Problems invoking payment processor! Will retry later. Order ID is:
> [FCCO10020 (Service target threw an unexpected exception (null))
>> ---- stack trace
> ---------------------------------------------------------------
>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error,
> could not commit transaction, was rolled back instead because of: Error in
> Service [authOrderPaymentPreference]: Error processing payment
> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
> payment processor! Will retry later. Order ID is: [FCCO10020 (Service target
> threw an unexpected exception (null))
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:208
> )
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:172
> )
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>>
> ----------------------------------------------------------------------------
> ----
>> 2007-11-24 15:53:53,562 (Thread-148) [     PosTransaction.java:626:ERROR]
>> ---- exception report
> ----------------------------------------------------------
>> Exception: org.ofbiz.base.util.GeneralException
>> Message: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
>> ---- stack trace
> ---------------------------------------------------------------
>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:958)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null))
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>>
> ----------------------------------------------------------------------------
> ----
>> 2007-11-24 15:53:53,562 (Thread-148) [      PaymentEvents.java:307:ERROR]
>> ---- exception report
> ----------------------------------------------------------
>> Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
>> Exception: org.ofbiz.base.util.GeneralException
>> Message: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
>> ---- stack trace
> ---------------------------------------------------------------
>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:958)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null))
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>>
> ----------------------------------------------------------------------------
> ----
>>
>>
>> Vince Clark
>> Global Era
>> The Freedom of Open Source
>> [hidden email]
>> (303) 493-6723
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Vince Clark
payment.properties has been configured but I will triple check it. I agree that the null pointer suggests missing information.

properties files are read on startup, right? It doesn't require a build does it?

Vince Clark
Global Era
The Freedom of Open Source
[hidden email]
(303) 493-6723

----- Original Message -----
From: "BJ Freeman" <[hidden email]>
To: [hidden email]
Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error

actually if you look at the code.
it does not use any Authorize.net classes.
it is a complete re-write right down sending the data and retrieving it
from Authorize.net.
/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
AIMPaymentServices.java -> interfaces to ofbiz
AuthorizeResponse.java -> interfaces to Authorize.net
it takes some configuration in the
/applications/accounting/config/payment.properties

since the error is a null.
looks like the payment.properties probably have not be configured.

clearchris sent the following on 11/24/2007 1:20 PM:

> That's a good way to go deduce the problem. You might also consider putting
> in code to output the error that is coming back from the third party
> Authorize.Net classes. Ofbiz doesn't generally relay error messages from
> outside the immediate ofbiz code base.
>
> Chris
>
> -----Original Message-----
> From: BJ Freeman [mailto:[hidden email]]
> Sent: Saturday, November 24, 2007 10:59 AM
> To: [hidden email]
> Subject: Re: POS and Authorize.net error
>
> I would put some debug code in processCard
> to see what is being sent in the properties.
> or you can work you way thru
> ccAuthCapture.
>
> buildAIMProperties
> is where reading in then properties file.
> might check you have the correct info there.
> /applications/accounting/config/payment.properties
>
> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>
>>
>> We use auth.net all the time thru eCommerce. Having problems with POS.
>>
>> Huge stack trace. Here is part of it:
>>
>>
>>
>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java:527:ERROR]
>> ---- exception report
> ----------------------------------------------------------
>> Could not commit transaction for service [authOrderPayments] call
>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
>> Message: Roll back error, could not commit transaction, was rolled back
> instead because of: Error in Service [authOrderPaymentPreference]: Error
> processing payment authorization: org.ofbiz.base.util.GeneralException:
> Problems invoking payment processor! Will retry later. Order ID is:
> [FCCO10020 (Service target threw an unexpected exception (null))
>> ---- stack trace
> ---------------------------------------------------------------
>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error,
> could not commit transaction, was rolled back instead because of: Error in
> Service [authOrderPaymentPreference]: Error processing payment
> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
> payment processor! Will retry later. Order ID is: [FCCO10020 (Service target
> threw an unexpected exception (null))
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:208
> )
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:172
> )
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>>
> ----------------------------------------------------------------------------
> ----
>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java:626:ERROR]
>> ---- exception report
> ----------------------------------------------------------
>> Exception: org.ofbiz.base.util.GeneralException
>> Message: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
>> ---- stack trace
> ---------------------------------------------------------------
>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:958)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null))
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>>
> ----------------------------------------------------------------------------
> ----
>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java:307:ERROR]
>> ---- exception report
> ----------------------------------------------------------
>> Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
>> Exception: org.ofbiz.base.util.GeneralException
>> Message: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
>> ---- stack trace
> ---------------------------------------------------------------
>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
> org.ofbiz.service.GenericServiceException: Could not commit transaction for
> service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)) (Could not commit transaction for service
> [authOrderPayments] call: Roll back error, could not commit transaction, was
> rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null)))
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:958)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for service [authOrderPayments] call: Roll back error, could not commit
> transaction, was rolled back instead because of: Error in Service
> [authOrderPaymentPreference]: Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> unexpected exception (null))
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:954)
> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>> java.lang.Thread.run(Thread.java:595)
>>
> ----------------------------------------------------------------------------
> ----
>>
>>
>> Vince Clark
>> Global Era
>> The Freedom of Open Source
>> [hidden email]
>> (303) 493-6723
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
Properties are read each time a transaction is sent.
No build is necessary for properties.
buildAIMProperties
is called each transaction
that would be first place to start.
I usually build a separate class to send the props for debug info.
looks like the place to intercept is
right after buildAuthTransaction

Vince M. Clark sent the following on 11/24/2007 3:00 PM:

> payment.properties has been configured but I will triple check it. I agree that the null pointer suggests missing information.
>
> properties files are read on startup, right? It doesn't require a build does it?
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>
> ----- Original Message -----
> From: "BJ Freeman" <[hidden email]>
> To: [hidden email]
> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> actually if you look at the code.
> it does not use any Authorize.net classes.
> it is a complete re-write right down sending the data and retrieving it
> from Authorize.net.
> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
> AIMPaymentServices.java -> interfaces to ofbiz
> AuthorizeResponse.java -> interfaces to Authorize.net
> it takes some configuration in the
> /applications/accounting/config/payment.properties
>
> since the error is a null.
> looks like the payment.properties probably have not be configured.
>
> clearchris sent the following on 11/24/2007 1:20 PM:
>> That's a good way to go deduce the problem. You might also consider putting
>> in code to output the error that is coming back from the third party
>> Authorize.Net classes. Ofbiz doesn't generally relay error messages from
>> outside the immediate ofbiz code base.
>>
>> Chris
>>
>> -----Original Message-----
>> From: BJ Freeman [mailto:[hidden email]]
>> Sent: Saturday, November 24, 2007 10:59 AM
>> To: [hidden email]
>> Subject: Re: POS and Authorize.net error
>>
>> I would put some debug code in processCard
>> to see what is being sent in the properties.
>> or you can work you way thru
>> ccAuthCapture.
>>
>> buildAIMProperties
>> is where reading in then properties file.
>> might check you have the correct info there.
>> /applications/accounting/config/payment.properties
>>
>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>>
>>> We use auth.net all the time thru eCommerce. Having problems with POS.
>>>
>>> Huge stack trace. Here is part of it:
>>>
>>>
>>>
>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java:527:ERROR]
>>> ---- exception report
>> ----------------------------------------------------------
>>> Could not commit transaction for service [authOrderPayments] call
>>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
>>> Message: Roll back error, could not commit transaction, was rolled back
>> instead because of: Error in Service [authOrderPaymentPreference]: Error
>> processing payment authorization: org.ofbiz.base.util.GeneralException:
>> Problems invoking payment processor! Will retry later. Order ID is:
>> [FCCO10020 (Service target threw an unexpected exception (null))
>>> ---- stack trace
>> ---------------------------------------------------------------
>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error,
>> could not commit transaction, was rolled back instead because of: Error in
>> Service [authOrderPaymentPreference]: Error processing payment
>> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
>> payment processor! Will retry later. Order ID is: [FCCO10020 (Service target
>> threw an unexpected exception (null))
>> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:208
>> )
>> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:172
>> )
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>>
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:954)
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:860)
>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>> )
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>>
>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
>> ava:105)
>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>> java.lang.Thread.run(Thread.java:595)
>>>
>> ----------------------------------------------------------------------------
>> ----
>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java:626:ERROR]
>>> ---- exception report
>> ----------------------------------------------------------
>>> Exception: org.ofbiz.base.util.GeneralException
>>> Message: Error in authOrderPayments service:
>> org.ofbiz.service.GenericServiceException: Could not commit transaction for
>> service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)) (Could not commit transaction for service
>> [authOrderPayments] call: Roll back error, could not commit transaction, was
>> rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)))
>>> ---- stack trace
>> ---------------------------------------------------------------
>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
>> org.ofbiz.service.GenericServiceException: Could not commit transaction for
>> service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)) (Could not commit transaction for service
>> [authOrderPayments] call: Roll back error, could not commit transaction, was
>> rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)))
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:958)
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:860)
>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>> )
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>>
>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
>> ava:105)
>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>> java.lang.Thread.run(Thread.java:595)
>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null))
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>>
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:954)
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:860)
>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>> )
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>>
>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
>> ava:105)
>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>> java.lang.Thread.run(Thread.java:595)
>>>
>> ----------------------------------------------------------------------------
>> ----
>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java:307:ERROR]
>>> ---- exception report
>> ----------------------------------------------------------
>>> Error in authOrderPayments service:
>> org.ofbiz.service.GenericServiceException: Could not commit transaction for
>> service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)) (Could not commit transaction for service
>> [authOrderPayments] call: Roll back error, could not commit transaction, was
>> rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)))
>>> Exception: org.ofbiz.base.util.GeneralException
>>> Message: Error in authOrderPayments service:
>> org.ofbiz.service.GenericServiceException: Could not commit transaction for
>> service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)) (Could not commit transaction for service
>> [authOrderPayments] call: Roll back error, could not commit transaction, was
>> rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)))
>>> ---- stack trace
>> ---------------------------------------------------------------
>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments service:
>> org.ofbiz.service.GenericServiceException: Could not commit transaction for
>> service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)) (Could not commit transaction for service
>> [authOrderPayments] call: Roll back error, could not commit transaction, was
>> rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null)))
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:958)
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:860)
>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>> )
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>>
>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
>> ava:105)
>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>> java.lang.Thread.run(Thread.java:595)
>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for service [authOrderPayments] call: Roll back error, could not commit
>> transaction, was rolled back instead because of: Error in Service
>> [authOrderPaymentPreference]: Error processing payment authorization:
>> org.ofbiz.base.util.GeneralException: Problems invoking payment processor!
>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>> unexpected exception (null))
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:531)
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
>>>
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:954)
>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.ja
>> va:860)
>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>> )
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>> java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:208)
>>>
>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.j
>> ava:105)
>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>> java.lang.Thread.run(Thread.java:595)
>>>
>> ----------------------------------------------------------------------------
>> ----
>>>
>>> Vince Clark
>>> Global Era
>>> The Freedom of Open Source
>>> [hidden email]
>>> (303) 493-6723
>>>
>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Scott Gray
BJ, I don't believe that is correct, aren't properties cached so that the
file is read only once?  You usually need to restart OFBiz for property
changes to take effect.

Regards
Scott

On 25/11/2007, BJ Freeman <[hidden email]> wrote:

>
> Properties are read each time a transaction is sent.
> No build is necessary for properties.
> buildAIMProperties
> is called each transaction
> that would be first place to start.
> I usually build a separate class to send the props for debug info.
> looks like the place to intercept is
> right after buildAuthTransaction
>
> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> > payment.properties has been configured but I will triple check it. I
> agree that the null pointer suggests missing information.
> >
> > properties files are read on startup, right? It doesn't require a build
> does it?
> >
> > Vince Clark
> > Global Era
> > The Freedom of Open Source
> > [hidden email]
> > (303) 493-6723
> >
> > ----- Original Message -----
> > From: "BJ Freeman" <[hidden email]>
> > To: [hidden email]
> > Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700) America/Denver
> > Subject: Re: POS and Authorize.net error
> >
> > actually if you look at the code.
> > it does not use any Authorize.net classes.
> > it is a complete re-write right down sending the data and retrieving it
> > from Authorize.net.
> >
> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
> > AIMPaymentServices.java -> interfaces to ofbiz
> > AuthorizeResponse.java -> interfaces to Authorize.net
> > it takes some configuration in the
> > /applications/accounting/config/payment.properties
> >
> > since the error is a null.
> > looks like the payment.properties probably have not be configured.
> >
> > clearchris sent the following on 11/24/2007 1:20 PM:
> >> That's a good way to go deduce the problem. You might also consider
> putting
> >> in code to output the error that is coming back from the third party
> >> Authorize.Net classes. Ofbiz doesn't generally relay error messages
> from
> >> outside the immediate ofbiz code base.
> >>
> >> Chris
> >>
> >> -----Original Message-----
> >> From: BJ Freeman [mailto:[hidden email]]
> >> Sent: Saturday, November 24, 2007 10:59 AM
> >> To: [hidden email]
> >> Subject: Re: POS and Authorize.net error
> >>
> >> I would put some debug code in processCard
> >> to see what is being sent in the properties.
> >> or you can work you way thru
> >> ccAuthCapture.
> >>
> >> buildAIMProperties
> >> is where reading in then properties file.
> >> might check you have the correct info there.
> >> /applications/accounting/config/payment.properties
> >>
> >> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> >>>
> >>> We use auth.net all the time thru eCommerce. Having problems with POS.
> >>>
> >>> Huge stack trace. Here is part of it:
> >>>
> >>>
> >>>
> >>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> :527:ERROR]
> >>> ---- exception report
> >> ----------------------------------------------------------
> >>> Could not commit transaction for service [authOrderPayments] call
> >>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> >>> Message: Roll back error, could not commit transaction, was rolled
> back
> >> instead because of: Error in Service [authOrderPaymentPreference]:
> Error
> >> processing payment authorization: org.ofbiz.base.util.GeneralException:
> >> Problems invoking payment processor! Will retry later. Order ID is:
> >> [FCCO10020 (Service target threw an unexpected exception (null))
> >>> ---- stack trace
> >> ---------------------------------------------------------------
> >>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back
> error,
> >> could not commit transaction, was rolled back instead because of: Error
> in
> >> Service [authOrderPaymentPreference]: Error processing payment
> >> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
> >> payment processor! Will retry later. Order ID is: [FCCO10020 (Service
> target
> >> threw an unexpected exception (null))
> >> org.ofbiz.entity.transaction.TransactionUtil.commit(
> TransactionUtil.java:208
> >> )
> >> org.ofbiz.entity.transaction.TransactionUtil.commit(
> TransactionUtil.java:172
> >> )
> >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> :524)
> >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> :208)
> >>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
> :150)
> >>>
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:954)
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:860)
> >>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39
> >> )
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl
> >> java:25)
> >>> java.lang.reflect.Method.invoke(Method.java:585)
> >>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> :208)
> >>>
> >> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> ButtonEventConfig.j
> >> ava:105)
> >>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>> java.lang.Thread.run(Thread.java:595)
> >>>
> >>
> ----------------------------------------------------------------------------
> >> ----
> >>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java:626:ERROR]
> >>> ---- exception report
> >> ----------------------------------------------------------
> >>> Exception: org.ofbiz.base.util.GeneralException
> >>> Message: Error in authOrderPayments service:
> >> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for
> >> service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)) (Could not commit transaction for service
> >> [authOrderPayments] call: Roll back error, could not commit
> transaction, was
> >> rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)))
> >>> ---- stack trace
> >> ---------------------------------------------------------------
> >>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> service:
> >> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for
> >> service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)) (Could not commit transaction for service
> >> [authOrderPayments] call: Roll back error, could not commit
> transaction, was
> >> rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)))
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:958)
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:860)
> >>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39
> >> )
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl
> >> java:25)
> >>> java.lang.reflect.Method.invoke(Method.java:585)
> >>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> :208)
> >>>
> >> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> ButtonEventConfig.j
> >> ava:105)
> >>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>> java.lang.Thread.run(Thread.java:595)
> >>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> >> for service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null))
> >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> :531)
> >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> :208)
> >>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
> :150)
> >>>
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:954)
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:860)
> >>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39
> >> )
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl
> >> java:25)
> >>> java.lang.reflect.Method.invoke(Method.java:585)
> >>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> :208)
> >>>
> >> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> ButtonEventConfig.j
> >> ava:105)
> >>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>> java.lang.Thread.run(Thread.java:595)
> >>>
> >>
> ----------------------------------------------------------------------------
> >> ----
> >>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java:307:ERROR]
> >>> ---- exception report
> >> ----------------------------------------------------------
> >>> Error in authOrderPayments service:
> >> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for
> >> service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)) (Could not commit transaction for service
> >> [authOrderPayments] call: Roll back error, could not commit
> transaction, was
> >> rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)))
> >>> Exception: org.ofbiz.base.util.GeneralException
> >>> Message: Error in authOrderPayments service:
> >> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for
> >> service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)) (Could not commit transaction for service
> >> [authOrderPayments] call: Roll back error, could not commit
> transaction, was
> >> rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)))
> >>> ---- stack trace
> >> ---------------------------------------------------------------
> >>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> service:
> >> org.ofbiz.service.GenericServiceException: Could not commit transaction
> for
> >> service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)) (Could not commit transaction for service
> >> [authOrderPayments] call: Roll back error, could not commit
> transaction, was
> >> rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null)))
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:958)
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:860)
> >>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39
> >> )
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl
> >> java:25)
> >>> java.lang.reflect.Method.invoke(Method.java:585)
> >>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> :208)
> >>>
> >> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> ButtonEventConfig.j
> >> ava:105)
> >>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>> java.lang.Thread.run(Thread.java:595)
> >>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> >> for service [authOrderPayments] call: Roll back error, could not commit
> >> transaction, was rolled back instead because of: Error in Service
> >> [authOrderPaymentPreference]: Error processing payment authorization:
> >> org.ofbiz.base.util.GeneralException: Problems invoking payment
> processor!
> >> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >> unexpected exception (null))
> >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> :531)
> >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> :208)
> >>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
> :150)
> >>>
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:954)
> >> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> CheckOutHelper.ja
> >> va:860)
> >>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39
> >> )
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl
> >> java:25)
> >>> java.lang.reflect.Method.invoke(Method.java:585)
> >>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> :208)
> >>>
> >> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> ButtonEventConfig.j
> >> ava:105)
> >>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>> java.lang.Thread.run(Thread.java:595)
> >>>
> >>
> ----------------------------------------------------------------------------
> >> ----
> >>>
> >>> Vince Clark
> >>> Global Era
> >>> The Freedom of Open Source
> >>> [hidden email]
> >>> (303) 493-6723
> >>>
> >>
> >>
> >>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
well now I have to and dig deeper.
:)
the ccAuth  does call the properties load
        Properties props = buildAIMProperties(context);
so this is done everytime ccAuth is called.
but there maybe a mechanism that I am not aware of that caches them.
I am aware that most properties are called once upon load of a class
but my knowledge stops there.



Scott Gray sent the following on 11/25/2007 12:35 AM:

> BJ, I don't believe that is correct, aren't properties cached so that the
> file is read only once?  You usually need to restart OFBiz for property
> changes to take effect.
>
> Regards
> Scott
>
> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
>> Properties are read each time a transaction is sent.
>> No build is necessary for properties.
>> buildAIMProperties
>> is called each transaction
>> that would be first place to start.
>> I usually build a separate class to send the props for debug info.
>> looks like the place to intercept is
>> right after buildAuthTransaction
>>
>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
>>> payment.properties has been configured but I will triple check it. I
>> agree that the null pointer suggests missing information.
>>> properties files are read on startup, right? It doesn't require a build
>> does it?
>>> Vince Clark
>>> Global Era
>>> The Freedom of Open Source
>>> [hidden email]
>>> (303) 493-6723
>>>
>>> ----- Original Message -----
>>> From: "BJ Freeman" <[hidden email]>
>>> To: [hidden email]
>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700) America/Denver
>>> Subject: Re: POS and Authorize.net error
>>>
>>> actually if you look at the code.
>>> it does not use any Authorize.net classes.
>>> it is a complete re-write right down sending the data and retrieving it
>>> from Authorize.net.
>>>
>> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
>>> AIMPaymentServices.java -> interfaces to ofbiz
>>> AuthorizeResponse.java -> interfaces to Authorize.net
>>> it takes some configuration in the
>>> /applications/accounting/config/payment.properties
>>>
>>> since the error is a null.
>>> looks like the payment.properties probably have not be configured.
>>>
>>> clearchris sent the following on 11/24/2007 1:20 PM:
>>>> That's a good way to go deduce the problem. You might also consider
>> putting
>>>> in code to output the error that is coming back from the third party
>>>> Authorize.Net classes. Ofbiz doesn't generally relay error messages
>> from
>>>> outside the immediate ofbiz code base.
>>>>
>>>> Chris
>>>>
>>>> -----Original Message-----
>>>> From: BJ Freeman [mailto:[hidden email]]
>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>> To: [hidden email]
>>>> Subject: Re: POS and Authorize.net error
>>>>
>>>> I would put some debug code in processCard
>>>> to see what is being sent in the properties.
>>>> or you can work you way thru
>>>> ccAuthCapture.
>>>>
>>>> buildAIMProperties
>>>> is where reading in then properties file.
>>>> might check you have the correct info there.
>>>> /applications/accounting/config/payment.properties
>>>>
>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>>>> We use auth.net all the time thru eCommerce. Having problems with POS.
>>>>>
>>>>> Huge stack trace. Here is part of it:
>>>>>
>>>>>
>>>>>
>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
>> :527:ERROR]
>>>>> ---- exception report
>>>> ----------------------------------------------------------
>>>>> Could not commit transaction for service [authOrderPayments] call
>>>>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
>>>>> Message: Roll back error, could not commit transaction, was rolled
>> back
>>>> instead because of: Error in Service [authOrderPaymentPreference]:
>> Error
>>>> processing payment authorization: org.ofbiz.base.util.GeneralException:
>>>> Problems invoking payment processor! Will retry later. Order ID is:
>>>> [FCCO10020 (Service target threw an unexpected exception (null))
>>>>> ---- stack trace
>>>> ---------------------------------------------------------------
>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back
>> error,
>>>> could not commit transaction, was rolled back instead because of: Error
>> in
>>>> Service [authOrderPaymentPreference]: Error processing payment
>>>> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
>>>> payment processor! Will retry later. Order ID is: [FCCO10020 (Service
>> target
>>>> threw an unexpected exception (null))
>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>> TransactionUtil.java:208
>>>> )
>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>> TransactionUtil.java:172
>>>> )
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>> :524)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>> :208)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
>> :150)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:954)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:860)
>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:39
>>>> )
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl
>>>> java:25)
>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>> :208)
>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>> ButtonEventConfig.j
>>>> ava:105)
>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>
>> ----------------------------------------------------------------------------
>>>> ----
>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java:626:ERROR]
>>>>> ---- exception report
>>>> ----------------------------------------------------------
>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>> Message: Error in authOrderPayments service:
>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for
>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)) (Could not commit transaction for service
>>>> [authOrderPayments] call: Roll back error, could not commit
>> transaction, was
>>>> rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)))
>>>>> ---- stack trace
>>>> ---------------------------------------------------------------
>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
>> service:
>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for
>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)) (Could not commit transaction for service
>>>> [authOrderPayments] call: Roll back error, could not commit
>> transaction, was
>>>> rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)))
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:958)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:860)
>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:39
>>>> )
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl
>>>> java:25)
>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>> :208)
>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>> ButtonEventConfig.j
>>>> ava:105)
>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>> transaction
>>>> for service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null))
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>> :531)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>> :208)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
>> :150)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:954)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:860)
>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:39
>>>> )
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl
>>>> java:25)
>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>> :208)
>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>> ButtonEventConfig.j
>>>> ava:105)
>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>
>> ----------------------------------------------------------------------------
>>>> ----
>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java:307:ERROR]
>>>>> ---- exception report
>>>> ----------------------------------------------------------
>>>>> Error in authOrderPayments service:
>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for
>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)) (Could not commit transaction for service
>>>> [authOrderPayments] call: Roll back error, could not commit
>> transaction, was
>>>> rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)))
>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>> Message: Error in authOrderPayments service:
>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for
>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)) (Could not commit transaction for service
>>>> [authOrderPayments] call: Roll back error, could not commit
>> transaction, was
>>>> rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)))
>>>>> ---- stack trace
>>>> ---------------------------------------------------------------
>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
>> service:
>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>> for
>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)) (Could not commit transaction for service
>>>> [authOrderPayments] call: Roll back error, could not commit
>> transaction, was
>>>> rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null)))
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:958)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:860)
>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:39
>>>> )
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl
>>>> java:25)
>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>> :208)
>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>> ButtonEventConfig.j
>>>> ava:105)
>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>> transaction
>>>> for service [authOrderPayments] call: Roll back error, could not commit
>>>> transaction, was rolled back instead because of: Error in Service
>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>> processor!
>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>> unexpected exception (null))
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>> :531)
>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>> :208)
>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
>> :150)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:954)
>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>> CheckOutHelper.ja
>>>> va:860)
>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:39
>>>> )
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl
>>>> java:25)
>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>> :208)
>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>> ButtonEventConfig.j
>>>> ava:105)
>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>
>> ----------------------------------------------------------------------------
>>>> ----
>>>>> Vince Clark
>>>>> Global Era
>>>>> The Freedom of Open Source
>>>>> [hidden email]
>>>>> (303) 493-6723
>>>>>
>>>>
>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
now I have eat my words
        if(configStr == null) {
            configStr = "payment.properties";
        }
so it is read only once.

sorry. In my codes for such drivers I don't do this.

BJ Freeman sent the following on 11/25/2007 6:55 AM:

> well now I have to and dig deeper.
> :)
> the ccAuth  does call the properties load
>         Properties props = buildAIMProperties(context);
> so this is done everytime ccAuth is called.
> but there maybe a mechanism that I am not aware of that caches them.
> I am aware that most properties are called once upon load of a class
> but my knowledge stops there.
>
>
>
> Scott Gray sent the following on 11/25/2007 12:35 AM:
>> BJ, I don't believe that is correct, aren't properties cached so that the
>> file is read only once?  You usually need to restart OFBiz for property
>> changes to take effect.
>>
>> Regards
>> Scott
>>
>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
>>> Properties are read each time a transaction is sent.
>>> No build is necessary for properties.
>>> buildAIMProperties
>>> is called each transaction
>>> that would be first place to start.
>>> I usually build a separate class to send the props for debug info.
>>> looks like the place to intercept is
>>> right after buildAuthTransaction
>>>
>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
>>>> payment.properties has been configured but I will triple check it. I
>>> agree that the null pointer suggests missing information.
>>>> properties files are read on startup, right? It doesn't require a build
>>> does it?
>>>> Vince Clark
>>>> Global Era
>>>> The Freedom of Open Source
>>>> [hidden email]
>>>> (303) 493-6723
>>>>
>>>> ----- Original Message -----
>>>> From: "BJ Freeman" <[hidden email]>
>>>> To: [hidden email]
>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700) America/Denver
>>>> Subject: Re: POS and Authorize.net error
>>>>
>>>> actually if you look at the code.
>>>> it does not use any Authorize.net classes.
>>>> it is a complete re-write right down sending the data and retrieving it
>>>> from Authorize.net.
>>>>
>>> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
>>>> AIMPaymentServices.java -> interfaces to ofbiz
>>>> AuthorizeResponse.java -> interfaces to Authorize.net
>>>> it takes some configuration in the
>>>> /applications/accounting/config/payment.properties
>>>>
>>>> since the error is a null.
>>>> looks like the payment.properties probably have not be configured.
>>>>
>>>> clearchris sent the following on 11/24/2007 1:20 PM:
>>>>> That's a good way to go deduce the problem. You might also consider
>>> putting
>>>>> in code to output the error that is coming back from the third party
>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error messages
>>> from
>>>>> outside the immediate ofbiz code base.
>>>>>
>>>>> Chris
>>>>>
>>>>> -----Original Message-----
>>>>> From: BJ Freeman [mailto:[hidden email]]
>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>> To: [hidden email]
>>>>> Subject: Re: POS and Authorize.net error
>>>>>
>>>>> I would put some debug code in processCard
>>>>> to see what is being sent in the properties.
>>>>> or you can work you way thru
>>>>> ccAuthCapture.
>>>>>
>>>>> buildAIMProperties
>>>>> is where reading in then properties file.
>>>>> might check you have the correct info there.
>>>>> /applications/accounting/config/payment.properties
>>>>>
>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>>>>> We use auth.net all the time thru eCommerce. Having problems with POS.
>>>>>>
>>>>>> Huge stack trace. Here is part of it:
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
>>> :527:ERROR]
>>>>>> ---- exception report
>>>>> ----------------------------------------------------------
>>>>>> Could not commit transaction for service [authOrderPayments] call
>>>>>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
>>>>>> Message: Roll back error, could not commit transaction, was rolled
>>> back
>>>>> instead because of: Error in Service [authOrderPaymentPreference]:
>>> Error
>>>>> processing payment authorization: org.ofbiz.base.util.GeneralException:
>>>>> Problems invoking payment processor! Will retry later. Order ID is:
>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
>>>>>> ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back
>>> error,
>>>>> could not commit transaction, was rolled back instead because of: Error
>>> in
>>>>> Service [authOrderPaymentPreference]: Error processing payment
>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
>>>>> payment processor! Will retry later. Order ID is: [FCCO10020 (Service
>>> target
>>>>> threw an unexpected exception (null))
>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>> TransactionUtil.java:208
>>>>> )
>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>> TransactionUtil.java:172
>>>>> )
>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>>> :524)
>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>>> :208)
>>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
>>> :150)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:954)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:860)
>>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39
>>>>> )
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl
>>>>> java:25)
>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>>> :208)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>> ButtonEventConfig.j
>>>>> ava:105)
>>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>
>>> ----------------------------------------------------------------------------
>>>>> ----
>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java:626:ERROR]
>>>>>> ---- exception report
>>>>> ----------------------------------------------------------
>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>> Message: Error in authOrderPayments service:
>>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>>> for
>>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)) (Could not commit transaction for service
>>>>> [authOrderPayments] call: Roll back error, could not commit
>>> transaction, was
>>>>> rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)))
>>>>>> ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
>>> service:
>>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>>> for
>>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)) (Could not commit transaction for service
>>>>> [authOrderPayments] call: Roll back error, could not commit
>>> transaction, was
>>>>> rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)))
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:958)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:860)
>>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39
>>>>> )
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl
>>>>> java:25)
>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>>> :208)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>> ButtonEventConfig.j
>>>>> ava:105)
>>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>> transaction
>>>>> for service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null))
>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>>> :531)
>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>>> :208)
>>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
>>> :150)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:954)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:860)
>>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39
>>>>> )
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl
>>>>> java:25)
>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>>> :208)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>> ButtonEventConfig.j
>>>>> ava:105)
>>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>
>>> ----------------------------------------------------------------------------
>>>>> ----
>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java:307:ERROR]
>>>>>> ---- exception report
>>>>> ----------------------------------------------------------
>>>>>> Error in authOrderPayments service:
>>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>>> for
>>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)) (Could not commit transaction for service
>>>>> [authOrderPayments] call: Roll back error, could not commit
>>> transaction, was
>>>>> rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)))
>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>> Message: Error in authOrderPayments service:
>>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>>> for
>>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)) (Could not commit transaction for service
>>>>> [authOrderPayments] call: Roll back error, could not commit
>>> transaction, was
>>>>> rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)))
>>>>>> ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
>>> service:
>>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
>>> for
>>>>> service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)) (Could not commit transaction for service
>>>>> [authOrderPayments] call: Roll back error, could not commit
>>> transaction, was
>>>>> rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null)))
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:958)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:860)
>>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39
>>>>> )
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl
>>>>> java:25)
>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>>> :208)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>> ButtonEventConfig.j
>>>>> ava:105)
>>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>> transaction
>>>>> for service [authOrderPayments] call: Roll back error, could not commit
>>>>> transaction, was rolled back instead because of: Error in Service
>>>>> [authOrderPaymentPreference]: Error processing payment authorization:
>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>> processor!
>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
>>>>> unexpected exception (null))
>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>>> :531)
>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
>>> :208)
>>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
>>> :150)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:954)
>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>> CheckOutHelper.ja
>>>>> va:860)
>>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39
>>>>> )
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl
>>>>> java:25)
>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
>>> :208)
>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>> ButtonEventConfig.j
>>>>> ava:105)
>>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>
>>> ----------------------------------------------------------------------------
>>>>> ----
>>>>>> Vince Clark
>>>>>> Global Era
>>>>>> The Freedom of Open Source
>>>>>> [hidden email]
>>>>>> (303) 493-6723
>>>>>>
>>>>>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Jacques Le Roux
Administrator
De : "BJ Freeman" <[hidden email]>


> now I have eat my words
>         if(configStr == null) {
>             configStr = "payment.properties";
>         }
> so it is read only once.
>
> sorry. In my codes for such drivers I don't do this.

Yes faster but implies to reload at each changes in properties. Seems to be production oriented, could be parametrised with a
default in favor of development, ie not have to reload (easy to say, did not look at code ;o)

Jacques

>
> BJ Freeman sent the following on 11/25/2007 6:55 AM:
> > well now I have to and dig deeper.
> > :)
> > the ccAuth  does call the properties load
> >         Properties props = buildAIMProperties(context);
> > so this is done everytime ccAuth is called.
> > but there maybe a mechanism that I am not aware of that caches them.
> > I am aware that most properties are called once upon load of a class
> > but my knowledge stops there.
> >
> >
> >
> > Scott Gray sent the following on 11/25/2007 12:35 AM:
> >> BJ, I don't believe that is correct, aren't properties cached so that the
> >> file is read only once?  You usually need to restart OFBiz for property
> >> changes to take effect.
> >>
> >> Regards
> >> Scott
> >>
> >> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> >>> Properties are read each time a transaction is sent.
> >>> No build is necessary for properties.
> >>> buildAIMProperties
> >>> is called each transaction
> >>> that would be first place to start.
> >>> I usually build a separate class to send the props for debug info.
> >>> looks like the place to intercept is
> >>> right after buildAuthTransaction
> >>>
> >>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> >>>> payment.properties has been configured but I will triple check it. I
> >>> agree that the null pointer suggests missing information.
> >>>> properties files are read on startup, right? It doesn't require a build
> >>> does it?
> >>>> Vince Clark
> >>>> Global Era
> >>>> The Freedom of Open Source
> >>>> [hidden email]
> >>>> (303) 493-6723
> >>>>
> >>>> ----- Original Message -----
> >>>> From: "BJ Freeman" <[hidden email]>
> >>>> To: [hidden email]
> >>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700) America/Denver
> >>>> Subject: Re: POS and Authorize.net error
> >>>>
> >>>> actually if you look at the code.
> >>>> it does not use any Authorize.net classes.
> >>>> it is a complete re-write right down sending the data and retrieving it
> >>>> from Authorize.net.
> >>>>
> >>> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
> >>>> AIMPaymentServices.java -> interfaces to ofbiz
> >>>> AuthorizeResponse.java -> interfaces to Authorize.net
> >>>> it takes some configuration in the
> >>>> /applications/accounting/config/payment.properties
> >>>>
> >>>> since the error is a null.
> >>>> looks like the payment.properties probably have not be configured.
> >>>>
> >>>> clearchris sent the following on 11/24/2007 1:20 PM:
> >>>>> That's a good way to go deduce the problem. You might also consider
> >>> putting
> >>>>> in code to output the error that is coming back from the third party
> >>>>> Authorize.Net classes. Ofbiz doesn't generally relay error messages
> >>> from
> >>>>> outside the immediate ofbiz code base.
> >>>>>
> >>>>> Chris
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: BJ Freeman [mailto:[hidden email]]
> >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>> To: [hidden email]
> >>>>> Subject: Re: POS and Authorize.net error
> >>>>>
> >>>>> I would put some debug code in processCard
> >>>>> to see what is being sent in the properties.
> >>>>> or you can work you way thru
> >>>>> ccAuthCapture.
> >>>>>
> >>>>> buildAIMProperties
> >>>>> is where reading in then properties file.
> >>>>> might check you have the correct info there.
> >>>>> /applications/accounting/config/payment.properties
> >>>>>
> >>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> >>>>>> We use auth.net all the time thru eCommerce. Having problems with POS.
> >>>>>>
> >>>>>> Huge stack trace. Here is part of it:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> >>> :527:ERROR]
> >>>>>> ---- exception report
> >>>>> ----------------------------------------------------------
> >>>>>> Could not commit transaction for service [authOrderPayments] call
> >>>>>> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> >>>>>> Message: Roll back error, could not commit transaction, was rolled
> >>> back
> >>>>> instead because of: Error in Service [authOrderPaymentPreference]:
> >>> Error
> >>>>> processing payment authorization: org.ofbiz.base.util.GeneralException:
> >>>>> Problems invoking payment processor! Will retry later. Order ID is:
> >>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> >>>>>> ---- stack trace
> >>>>> ---------------------------------------------------------------
> >>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll back
> >>> error,
> >>>>> could not commit transaction, was rolled back instead because of: Error
> >>> in
> >>>>> Service [authOrderPaymentPreference]: Error processing payment
> >>>>> authorization: org.ofbiz.base.util.GeneralException: Problems invoking
> >>>>> payment processor! Will retry later. Order ID is: [FCCO10020 (Service
> >>> target
> >>>>> threw an unexpected exception (null))
> >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>> TransactionUtil.java:208
> >>>>> )
> >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>> TransactionUtil.java:172
> >>>>> )
> >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> >>> :524)
> >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> >>> :208)
> >>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
> >>> :150)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:954)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:860)
> >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>> NativeMethodAccessorImpl.java:39
> >>>>> )
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>> (DelegatingMethodAccessorImpl
> >>>>> java:25)
> >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> >>> :208)
> >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>> ButtonEventConfig.j
> >>>>> ava:105)
> >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>
> >>> ----------------------------------------------------------------------------
> >>>>> ----
> >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java:626:ERROR]
> >>>>>> ---- exception report
> >>>>> ----------------------------------------------------------
> >>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>> Message: Error in authOrderPayments service:
> >>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> >>> for
> >>>>> service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)) (Could not commit transaction for service
> >>>>> [authOrderPayments] call: Roll back error, could not commit
> >>> transaction, was
> >>>>> rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)))
> >>>>>> ---- stack trace
> >>>>> ---------------------------------------------------------------
> >>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> >>> service:
> >>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> >>> for
> >>>>> service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)) (Could not commit transaction for service
> >>>>> [authOrderPayments] call: Roll back error, could not commit
> >>> transaction, was
> >>>>> rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)))
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:958)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:860)
> >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>> NativeMethodAccessorImpl.java:39
> >>>>> )
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>> (DelegatingMethodAccessorImpl
> >>>>> java:25)
> >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> >>> :208)
> >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>> ButtonEventConfig.j
> >>>>> ava:105)
> >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>> transaction
> >>>>> for service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null))
> >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> >>> :531)
> >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> >>> :208)
> >>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
> >>> :150)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:954)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:860)
> >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>> NativeMethodAccessorImpl.java:39
> >>>>> )
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>> (DelegatingMethodAccessorImpl
> >>>>> java:25)
> >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> >>> :208)
> >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>> ButtonEventConfig.j
> >>>>> ava:105)
> >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>
> >>> ----------------------------------------------------------------------------
> >>>>> ----
> >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java:307:ERROR]
> >>>>>> ---- exception report
> >>>>> ----------------------------------------------------------
> >>>>>> Error in authOrderPayments service:
> >>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> >>> for
> >>>>> service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)) (Could not commit transaction for service
> >>>>> [authOrderPayments] call: Roll back error, could not commit
> >>> transaction, was
> >>>>> rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)))
> >>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>> Message: Error in authOrderPayments service:
> >>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> >>> for
> >>>>> service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)) (Could not commit transaction for service
> >>>>> [authOrderPayments] call: Roll back error, could not commit
> >>> transaction, was
> >>>>> rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)))
> >>>>>> ---- stack trace
> >>>>> ---------------------------------------------------------------
> >>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> >>> service:
> >>>>> org.ofbiz.service.GenericServiceException: Could not commit transaction
> >>> for
> >>>>> service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)) (Could not commit transaction for service
> >>>>> [authOrderPayments] call: Roll back error, could not commit
> >>> transaction, was
> >>>>> rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null)))
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:958)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:860)
> >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>> NativeMethodAccessorImpl.java:39
> >>>>> )
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>> (DelegatingMethodAccessorImpl
> >>>>> java:25)
> >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> >>> :208)
> >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>> ButtonEventConfig.j
> >>>>> ava:105)
> >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>> transaction
> >>>>> for service [authOrderPayments] call: Roll back error, could not commit
> >>>>> transaction, was rolled back instead because of: Error in Service
> >>>>> [authOrderPaymentPreference]: Error processing payment authorization:
> >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>> processor!
> >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> >>>>> unexpected exception (null))
> >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> >>> :531)
> >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java
> >>> :208)
> >>>>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java
> >>> :150)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:954)
> >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>> CheckOutHelper.ja
> >>>>> va:860)
> >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java:304)
> >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>> NativeMethodAccessorImpl.java:39
> >>>>> )
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>> (DelegatingMethodAccessorImpl
> >>>>> java:25)
> >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java
> >>> :208)
> >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>> ButtonEventConfig.j
> >>>>> ava:105)
> >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>
> >>> ----------------------------------------------------------------------------
> >>>>> ----
> >>>>>> Vince Clark
> >>>>>> Global Era
> >>>>>> The Freedom of Open Source
> >>>>>> [hidden email]
> >>>>>> (303) 493-6723
> >>>>>>
> >>>>>
> >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Scott Gray
Just to confirm, I had a look and it's cached just like all the others

Regards
Scott

On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:

>
> De : "BJ Freeman" <[hidden email]>
>
>
> > now I have eat my words
> >         if(configStr == null) {
> >             configStr = "payment.properties";
> >         }
> > so it is read only once.
> >
> > sorry. In my codes for such drivers I don't do this.
>
> Yes faster but implies to reload at each changes in properties. Seems to
> be production oriented, could be parametrised with a
> default in favor of development, ie not have to reload (easy to say, did
> not look at code ;o)
>
> Jacques
>
> >
> > BJ Freeman sent the following on 11/25/2007 6:55 AM:
> > > well now I have to and dig deeper.
> > > :)
> > > the ccAuth  does call the properties load
> > >         Properties props = buildAIMProperties(context);
> > > so this is done everytime ccAuth is called.
> > > but there maybe a mechanism that I am not aware of that caches them.
> > > I am aware that most properties are called once upon load of a class
> > > but my knowledge stops there.
> > >
> > >
> > >
> > > Scott Gray sent the following on 11/25/2007 12:35 AM:
> > >> BJ, I don't believe that is correct, aren't properties cached so that
> the
> > >> file is read only once?  You usually need to restart OFBiz for
> property
> > >> changes to take effect.
> > >>
> > >> Regards
> > >> Scott
> > >>
> > >> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> > >>> Properties are read each time a transaction is sent.
> > >>> No build is necessary for properties.
> > >>> buildAIMProperties
> > >>> is called each transaction
> > >>> that would be first place to start.
> > >>> I usually build a separate class to send the props for debug info.
> > >>> looks like the place to intercept is
> > >>> right after buildAuthTransaction
> > >>>
> > >>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> > >>>> payment.properties has been configured but I will triple check it.
> I
> > >>> agree that the null pointer suggests missing information.
> > >>>> properties files are read on startup, right? It doesn't require a
> build
> > >>> does it?
> > >>>> Vince Clark
> > >>>> Global Era
> > >>>> The Freedom of Open Source
> > >>>> [hidden email]
> > >>>> (303) 493-6723
> > >>>>
> > >>>> ----- Original Message -----
> > >>>> From: "BJ Freeman" <[hidden email]>
> > >>>> To: [hidden email]
> > >>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> America/Denver
> > >>>> Subject: Re: POS and Authorize.net error
> > >>>>
> > >>>> actually if you look at the code.
> > >>>> it does not use any Authorize.net classes.
> > >>>> it is a complete re-write right down sending the data and
> retrieving it
> > >>>> from Authorize.net.
> > >>>>
> > >>>
> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
> > >>>> AIMPaymentServices.java -> interfaces to ofbiz
> > >>>> AuthorizeResponse.java -> interfaces to Authorize.net
> > >>>> it takes some configuration in the
> > >>>> /applications/accounting/config/payment.properties
> > >>>>
> > >>>> since the error is a null.
> > >>>> looks like the payment.properties probably have not be configured.
> > >>>>
> > >>>> clearchris sent the following on 11/24/2007 1:20 PM:
> > >>>>> That's a good way to go deduce the problem. You might also
> consider
> > >>> putting
> > >>>>> in code to output the error that is coming back from the third
> party
> > >>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> messages
> > >>> from
> > >>>>> outside the immediate ofbiz code base.
> > >>>>>
> > >>>>> Chris
> > >>>>>
> > >>>>> -----Original Message-----
> > >>>>> From: BJ Freeman [mailto:[hidden email]]
> > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > >>>>> To: [hidden email]
> > >>>>> Subject: Re: POS and Authorize.net error
> > >>>>>
> > >>>>> I would put some debug code in processCard
> > >>>>> to see what is being sent in the properties.
> > >>>>> or you can work you way thru
> > >>>>> ccAuthCapture.
> > >>>>>
> > >>>>> buildAIMProperties
> > >>>>> is where reading in then properties file.
> > >>>>> might check you have the correct info there.
> > >>>>> /applications/accounting/config/payment.properties
> > >>>>>
> > >>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> > >>>>>> We use auth.net all the time thru eCommerce. Having problems with
> POS.
> > >>>>>>
> > >>>>>> Huge stack trace. Here is part of it:
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> > >>> :527:ERROR]
> > >>>>>> ---- exception report
> > >>>>> ----------------------------------------------------------
> > >>>>>> Could not commit transaction for service [authOrderPayments] call
> > >>>>>> Exception:
> org.ofbiz.entity.transaction.GenericTransactionException
> > >>>>>> Message: Roll back error, could not commit transaction, was
> rolled
> > >>> back
> > >>>>> instead because of: Error in Service [authOrderPaymentPreference]:
> > >>> Error
> > >>>>> processing payment authorization:
> org.ofbiz.base.util.GeneralException:
> > >>>>> Problems invoking payment processor! Will retry later. Order ID
> is:
> > >>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> > >>>>>> ---- stack trace
> > >>>>> ---------------------------------------------------------------
> > >>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> back
> > >>> error,
> > >>>>> could not commit transaction, was rolled back instead because of:
> Error
> > >>> in
> > >>>>> Service [authOrderPaymentPreference]: Error processing payment
> > >>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> invoking
> > >>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> (Service
> > >>> target
> > >>>>> threw an unexpected exception (null))
> > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > >>> TransactionUtil.java:208
> > >>>>> )
> > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > >>> TransactionUtil.java:172
> > >>>>> )
> > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java
> > >>> :524)
> > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java
> > >>> :208)
> > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> GenericDispatcher.java
> > >>> :150)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:954)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:860)
> > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> :304)
> > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>
> > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > >>> NativeMethodAccessorImpl.java:39
> > >>>>> )
> > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > >>> (DelegatingMethodAccessorImpl
> > >>>>> java:25)
> > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> ButtonEventConfig.java
> > >>> :208)
> > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > >>> ButtonEventConfig.j
> > >>>>> ava:105)
> > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > >>>>>> java.lang.Thread.run(Thread.java:595)
> > >>>>>>
> > >>>
> ----------------------------------------------------------------------------
> > >>>>> ----
> > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> :626:ERROR]
> > >>>>>> ---- exception report
> > >>>>> ----------------------------------------------------------
> > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > >>>>>> Message: Error in authOrderPayments service:
> > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> > >>> for
> > >>>>> service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)) (Could not commit transaction for
> service
> > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > >>> transaction, was
> > >>>>> rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)))
> > >>>>>> ---- stack trace
> > >>>>> ---------------------------------------------------------------
> > >>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> > >>> service:
> > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> > >>> for
> > >>>>> service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)) (Could not commit transaction for
> service
> > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > >>> transaction, was
> > >>>>> rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)))
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:958)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:860)
> > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> :304)
> > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>
> > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > >>> NativeMethodAccessorImpl.java:39
> > >>>>> )
> > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > >>> (DelegatingMethodAccessorImpl
> > >>>>> java:25)
> > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> ButtonEventConfig.java
> > >>> :208)
> > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > >>> ButtonEventConfig.j
> > >>>>> ava:105)
> > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > >>>>>> java.lang.Thread.run(Thread.java:595)
> > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > >>> transaction
> > >>>>> for service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null))
> > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java
> > >>> :531)
> > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java
> > >>> :208)
> > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> GenericDispatcher.java
> > >>> :150)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:954)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:860)
> > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> :304)
> > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>
> > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > >>> NativeMethodAccessorImpl.java:39
> > >>>>> )
> > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > >>> (DelegatingMethodAccessorImpl
> > >>>>> java:25)
> > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> ButtonEventConfig.java
> > >>> :208)
> > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > >>> ButtonEventConfig.j
> > >>>>> ava:105)
> > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > >>>>>> java.lang.Thread.run(Thread.java:595)
> > >>>>>>
> > >>>
> ----------------------------------------------------------------------------
> > >>>>> ----
> > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> :307:ERROR]
> > >>>>>> ---- exception report
> > >>>>> ----------------------------------------------------------
> > >>>>>> Error in authOrderPayments service:
> > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> > >>> for
> > >>>>> service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)) (Could not commit transaction for
> service
> > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > >>> transaction, was
> > >>>>> rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)))
> > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > >>>>>> Message: Error in authOrderPayments service:
> > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> > >>> for
> > >>>>> service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)) (Could not commit transaction for
> service
> > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > >>> transaction, was
> > >>>>> rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)))
> > >>>>>> ---- stack trace
> > >>>>> ---------------------------------------------------------------
> > >>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> > >>> service:
> > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> transaction
> > >>> for
> > >>>>> service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)) (Could not commit transaction for
> service
> > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > >>> transaction, was
> > >>>>> rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null)))
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:958)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:860)
> > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> :304)
> > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>
> > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > >>> NativeMethodAccessorImpl.java:39
> > >>>>> )
> > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > >>> (DelegatingMethodAccessorImpl
> > >>>>> java:25)
> > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> ButtonEventConfig.java
> > >>> :208)
> > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > >>> ButtonEventConfig.j
> > >>>>> ava:105)
> > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > >>>>>> java.lang.Thread.run(Thread.java:595)
> > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > >>> transaction
> > >>>>> for service [authOrderPayments] call: Roll back error, could not
> commit
> > >>>>> transaction, was rolled back instead because of: Error in Service
> > >>>>> [authOrderPaymentPreference]: Error processing payment
> authorization:
> > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > >>> processor!
> > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > >>>>> unexpected exception (null))
> > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java
> > >>> :531)
> > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java
> > >>> :208)
> > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> GenericDispatcher.java
> > >>> :150)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:954)
> > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > >>> CheckOutHelper.ja
> > >>>>> va:860)
> > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> :304)
> > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>
> > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > >>> NativeMethodAccessorImpl.java:39
> > >>>>> )
> > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > >>> (DelegatingMethodAccessorImpl
> > >>>>> java:25)
> > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> ButtonEventConfig.java
> > >>> :208)
> > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > >>> ButtonEventConfig.j
> > >>>>> ava:105)
> > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > >>>>>> java.lang.Thread.run(Thread.java:595)
> > >>>>>>
> > >>>
> ----------------------------------------------------------------------------
> > >>>>> ----
> > >>>>>> Vince Clark
> > >>>>>> Global Era
> > >>>>>> The Freedom of Open Source
> > >>>>>> [hidden email]
> > >>>>>> (303) 493-6723
> > >>>>>>
> > >>>>>
> > >
> > >
> > >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Jacques Le Roux
Administrator
De : "Scott Gray" <[hidden email]>
> Just to confirm, I had a look and it's cached just like all the others

To be clear, of course I meant this (parametrised with a default value in favor of development) not only for this parameters but for
properties files in general.
I would like to have opinions about that before opening a Jira issue. I wonder if this has not be thought about  before...

Jacques

>
> Regards
> Scott
>
> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
> >
> > De : "BJ Freeman" <[hidden email]>
> >
> >
> > > now I have eat my words
> > >         if(configStr == null) {
> > >             configStr = "payment.properties";
> > >         }
> > > so it is read only once.
> > >
> > > sorry. In my codes for such drivers I don't do this.
> >
> > Yes faster but implies to reload at each changes in properties. Seems to
> > be production oriented, could be parametrised with a
> > default in favor of development, ie not have to reload (easy to say, did
> > not look at code ;o)
> >
> > Jacques
> >
> > >
> > > BJ Freeman sent the following on 11/25/2007 6:55 AM:
> > > > well now I have to and dig deeper.
> > > > :)
> > > > the ccAuth  does call the properties load
> > > >         Properties props = buildAIMProperties(context);
> > > > so this is done everytime ccAuth is called.
> > > > but there maybe a mechanism that I am not aware of that caches them.
> > > > I am aware that most properties are called once upon load of a class
> > > > but my knowledge stops there.
> > > >
> > > >
> > > >
> > > > Scott Gray sent the following on 11/25/2007 12:35 AM:
> > > >> BJ, I don't believe that is correct, aren't properties cached so that
> > the
> > > >> file is read only once?  You usually need to restart OFBiz for
> > property
> > > >> changes to take effect.
> > > >>
> > > >> Regards
> > > >> Scott
> > > >>
> > > >> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> > > >>> Properties are read each time a transaction is sent.
> > > >>> No build is necessary for properties.
> > > >>> buildAIMProperties
> > > >>> is called each transaction
> > > >>> that would be first place to start.
> > > >>> I usually build a separate class to send the props for debug info.
> > > >>> looks like the place to intercept is
> > > >>> right after buildAuthTransaction
> > > >>>
> > > >>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> > > >>>> payment.properties has been configured but I will triple check it.
> > I
> > > >>> agree that the null pointer suggests missing information.
> > > >>>> properties files are read on startup, right? It doesn't require a
> > build
> > > >>> does it?
> > > >>>> Vince Clark
> > > >>>> Global Era
> > > >>>> The Freedom of Open Source
> > > >>>> [hidden email]
> > > >>>> (303) 493-6723
> > > >>>>
> > > >>>> ----- Original Message -----
> > > >>>> From: "BJ Freeman" <[hidden email]>
> > > >>>> To: [hidden email]
> > > >>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> > America/Denver
> > > >>>> Subject: Re: POS and Authorize.net error
> > > >>>>
> > > >>>> actually if you look at the code.
> > > >>>> it does not use any Authorize.net classes.
> > > >>>> it is a complete re-write right down sending the data and
> > retrieving it
> > > >>>> from Authorize.net.
> > > >>>>
> > > >>>
> > /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/
> > > >>>> AIMPaymentServices.java -> interfaces to ofbiz
> > > >>>> AuthorizeResponse.java -> interfaces to Authorize.net
> > > >>>> it takes some configuration in the
> > > >>>> /applications/accounting/config/payment.properties
> > > >>>>
> > > >>>> since the error is a null.
> > > >>>> looks like the payment.properties probably have not be configured.
> > > >>>>
> > > >>>> clearchris sent the following on 11/24/2007 1:20 PM:
> > > >>>>> That's a good way to go deduce the problem. You might also
> > consider
> > > >>> putting
> > > >>>>> in code to output the error that is coming back from the third
> > party
> > > >>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> > messages
> > > >>> from
> > > >>>>> outside the immediate ofbiz code base.
> > > >>>>>
> > > >>>>> Chris
> > > >>>>>
> > > >>>>> -----Original Message-----
> > > >>>>> From: BJ Freeman [mailto:[hidden email]]
> > > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > > >>>>> To: [hidden email]
> > > >>>>> Subject: Re: POS and Authorize.net error
> > > >>>>>
> > > >>>>> I would put some debug code in processCard
> > > >>>>> to see what is being sent in the properties.
> > > >>>>> or you can work you way thru
> > > >>>>> ccAuthCapture.
> > > >>>>>
> > > >>>>> buildAIMProperties
> > > >>>>> is where reading in then properties file.
> > > >>>>> might check you have the correct info there.
> > > >>>>> /applications/accounting/config/payment.properties
> > > >>>>>
> > > >>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> > > >>>>>> We use auth.net all the time thru eCommerce. Having problems with
> > POS.
> > > >>>>>>
> > > >>>>>> Huge stack trace. Here is part of it:
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> > > >>> :527:ERROR]
> > > >>>>>> ---- exception report
> > > >>>>> ----------------------------------------------------------
> > > >>>>>> Could not commit transaction for service [authOrderPayments] call
> > > >>>>>> Exception:
> > org.ofbiz.entity.transaction.GenericTransactionException
> > > >>>>>> Message: Roll back error, could not commit transaction, was
> > rolled
> > > >>> back
> > > >>>>> instead because of: Error in Service [authOrderPaymentPreference]:
> > > >>> Error
> > > >>>>> processing payment authorization:
> > org.ofbiz.base.util.GeneralException:
> > > >>>>> Problems invoking payment processor! Will retry later. Order ID
> > is:
> > > >>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> > > >>>>>> ---- stack trace
> > > >>>>> ---------------------------------------------------------------
> > > >>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> > back
> > > >>> error,
> > > >>>>> could not commit transaction, was rolled back instead because of:
> > Error
> > > >>> in
> > > >>>>> Service [authOrderPaymentPreference]: Error processing payment
> > > >>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> > invoking
> > > >>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> > (Service
> > > >>> target
> > > >>>>> threw an unexpected exception (null))
> > > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > > >>> TransactionUtil.java:208
> > > >>>>> )
> > > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > > >>> TransactionUtil.java:172
> > > >>>>> )
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :524)
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :208)
> > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java
> > > >>> :150)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:954)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>>
> > > >>>
> > ----------------------------------------------------------------------------
> > > >>>>> ----
> > > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> > :626:ERROR]
> > > >>>>>> ---- exception report
> > > >>>>> ----------------------------------------------------------
> > > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > > >>>>>> Message: Error in authOrderPayments service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)))
> > > >>>>>> ---- stack trace
> > > >>>>> ---------------------------------------------------------------
> > > >>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> > > >>> service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)))
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:958)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > >>> transaction
> > > >>>>> for service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null))
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :531)
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :208)
> > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java
> > > >>> :150)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:954)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>>
> > > >>>
> > ----------------------------------------------------------------------------
> > > >>>>> ----
> > > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> > :307:ERROR]
> > > >>>>>> ---- exception report
> > > >>>>> ----------------------------------------------------------
> > > >>>>>> Error in authOrderPayments service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)))
> > > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > > >>>>>> Message: Error in authOrderPayments service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)))
> > > >>>>>> ---- stack trace
> > > >>>>> ---------------------------------------------------------------
> > > >>>>>> org.ofbiz.base.util.GeneralException: Error in authOrderPayments
> > > >>> service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null)))
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:958)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > >>> transaction
> > > >>>>> for service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw an
> > > >>>>> unexpected exception (null))
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :531)
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :208)
> > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java
> > > >>> :150)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:954)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>>
> > > >>>
> > ----------------------------------------------------------------------------
> > > >>>>> ----
> > > >>>>>> Vince Clark
> > > >>>>>> Global Era
> > > >>>>>> The Freedom of Open Source
> > > >>>>>> [hidden email]
> > > >>>>>> (303) 493-6723
> > > >>>>>>
> > > >>>>>
> > > >
> > > >
> > > >
> > >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

RE: POS and Authorize.net error

SkipDever
Developers have for ever looked for ways to make their lives easier and it
is my view that we must avoid this when the benefit is small and it adds
overhead.  Adding a reload properties parameter will add overhead and
additional work and the benefits are dubious.

In production, this will never or only very rarely be used and its benefit
does not justify the work in my opinion.

In developement, there is some limited benefit, but if each of us looks back
and counts the number of times we had to stop and restart the server to get
a changed property to reload, I expect that the answer will be rarely.

Skip

-----Original Message-----
From: Jacques Le Roux [mailto:[hidden email]]
Sent: Sunday, November 25, 2007 1:13 PM
To: [hidden email]
Subject: Re: POS and Authorize.net error


De : "Scott Gray" <[hidden email]>
> Just to confirm, I had a look and it's cached just like all the others

To be clear, of course I meant this (parametrised with a default value in
favor of development) not only for this parameters but for
properties files in general.
I would like to have opinions about that before opening a Jira issue. I
wonder if this has not be thought about  before...

Jacques

>
> Regards
> Scott
>
> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
> >
> > De : "BJ Freeman" <[hidden email]>
> >
> >
> > > now I have eat my words
> > >         if(configStr == null) {
> > >             configStr = "payment.properties";
> > >         }
> > > so it is read only once.
> > >
> > > sorry. In my codes for such drivers I don't do this.
> >
> > Yes faster but implies to reload at each changes in properties. Seems to
> > be production oriented, could be parametrised with a
> > default in favor of development, ie not have to reload (easy to say, did
> > not look at code ;o)
> >
> > Jacques
> >
> > >
> > > BJ Freeman sent the following on 11/25/2007 6:55 AM:
> > > > well now I have to and dig deeper.
> > > > :)
> > > > the ccAuth  does call the properties load
> > > >         Properties props = buildAIMProperties(context);
> > > > so this is done everytime ccAuth is called.
> > > > but there maybe a mechanism that I am not aware of that caches them.
> > > > I am aware that most properties are called once upon load of a class
> > > > but my knowledge stops there.
> > > >
> > > >
> > > >
> > > > Scott Gray sent the following on 11/25/2007 12:35 AM:
> > > >> BJ, I don't believe that is correct, aren't properties cached so
that

> > the
> > > >> file is read only once?  You usually need to restart OFBiz for
> > property
> > > >> changes to take effect.
> > > >>
> > > >> Regards
> > > >> Scott
> > > >>
> > > >> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> > > >>> Properties are read each time a transaction is sent.
> > > >>> No build is necessary for properties.
> > > >>> buildAIMProperties
> > > >>> is called each transaction
> > > >>> that would be first place to start.
> > > >>> I usually build a separate class to send the props for debug info.
> > > >>> looks like the place to intercept is
> > > >>> right after buildAuthTransaction
> > > >>>
> > > >>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> > > >>>> payment.properties has been configured but I will triple check
it.

> > I
> > > >>> agree that the null pointer suggests missing information.
> > > >>>> properties files are read on startup, right? It doesn't require a
> > build
> > > >>> does it?
> > > >>>> Vince Clark
> > > >>>> Global Era
> > > >>>> The Freedom of Open Source
> > > >>>> [hidden email]
> > > >>>> (303) 493-6723
> > > >>>>
> > > >>>> ----- Original Message -----
> > > >>>> From: "BJ Freeman" <[hidden email]>
> > > >>>> To: [hidden email]
> > > >>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> > America/Denver
> > > >>>> Subject: Re: POS and Authorize.net error
> > > >>>>
> > > >>>> actually if you look at the code.
> > > >>>> it does not use any Authorize.net classes.
> > > >>>> it is a complete re-write right down sending the data and
> > retrieving it
> > > >>>> from Authorize.net.
> > > >>>>
> > > >>>
> >
/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
/
> > > >>>> AIMPaymentServices.java -> interfaces to ofbiz
> > > >>>> AuthorizeResponse.java -> interfaces to Authorize.net
> > > >>>> it takes some configuration in the
> > > >>>> /applications/accounting/config/payment.properties
> > > >>>>
> > > >>>> since the error is a null.
> > > >>>> looks like the payment.properties probably have not be
configured.

> > > >>>>
> > > >>>> clearchris sent the following on 11/24/2007 1:20 PM:
> > > >>>>> That's a good way to go deduce the problem. You might also
> > consider
> > > >>> putting
> > > >>>>> in code to output the error that is coming back from the third
> > party
> > > >>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> > messages
> > > >>> from
> > > >>>>> outside the immediate ofbiz code base.
> > > >>>>>
> > > >>>>> Chris
> > > >>>>>
> > > >>>>> -----Original Message-----
> > > >>>>> From: BJ Freeman [mailto:[hidden email]]
> > > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > > >>>>> To: [hidden email]
> > > >>>>> Subject: Re: POS and Authorize.net error
> > > >>>>>
> > > >>>>> I would put some debug code in processCard
> > > >>>>> to see what is being sent in the properties.
> > > >>>>> or you can work you way thru
> > > >>>>> ccAuthCapture.
> > > >>>>>
> > > >>>>> buildAIMProperties
> > > >>>>> is where reading in then properties file.
> > > >>>>> might check you have the correct info there.
> > > >>>>> /applications/accounting/config/payment.properties
> > > >>>>>
> > > >>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> > > >>>>>> We use auth.net all the time thru eCommerce. Having problems
with

> > POS.
> > > >>>>>>
> > > >>>>>> Huge stack trace. Here is part of it:
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> > > >>> :527:ERROR]
> > > >>>>>> ---- exception report
> > > >>>>> ----------------------------------------------------------
> > > >>>>>> Could not commit transaction for service [authOrderPayments]
call
> > > >>>>>> Exception:
> > org.ofbiz.entity.transaction.GenericTransactionException
> > > >>>>>> Message: Roll back error, could not commit transaction, was
> > rolled
> > > >>> back
> > > >>>>> instead because of: Error in Service
[authOrderPaymentPreference]:

> > > >>> Error
> > > >>>>> processing payment authorization:
> > org.ofbiz.base.util.GeneralException:
> > > >>>>> Problems invoking payment processor! Will retry later. Order ID
> > is:
> > > >>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> > > >>>>>> ---- stack trace
> > > >>>>> ---------------------------------------------------------------
> > > >>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> > back
> > > >>> error,
> > > >>>>> could not commit transaction, was rolled back instead because
of:

> > Error
> > > >>> in
> > > >>>>> Service [authOrderPaymentPreference]: Error processing payment
> > > >>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> > invoking
> > > >>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> > (Service
> > > >>> target
> > > >>>>> threw an unexpected exception (null))
> > > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > > >>> TransactionUtil.java:208
> > > >>>>> )
> > > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > > >>> TransactionUtil.java:172
> > > >>>>> )
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :524)
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :208)
> > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java
> > > >>> :150)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:954)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>>
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>>
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java

> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>>
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>>
> > > >>>
>
> --------------------------------------------------------------------------
--

> > > >>>>> ----
> > > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> > :626:ERROR]
> > > >>>>>> ---- exception report
> > > >>>>> ----------------------------------------------------------
> > > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > > >>>>>> Message: Error in authOrderPayments service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an
> > > >>>>> unexpected exception (null)))
> > > >>>>>> ---- stack trace
> > > >>>>> ---------------------------------------------------------------
> > > >>>>>> org.ofbiz.base.util.GeneralException: Error in
authOrderPayments
> > > >>> service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an
> > > >>>>> unexpected exception (null)))
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:958)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>>
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>>
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java

> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>>
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > >>> transaction
> > > >>>>> for service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null))
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :531)
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :208)
> > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java
> > > >>> :150)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:954)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>>
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>>
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java

> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>>
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>>
> > > >>>
>
> --------------------------------------------------------------------------
--

> > > >>>>> ----
> > > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> > :307:ERROR]
> > > >>>>>> ---- exception report
> > > >>>>> ----------------------------------------------------------
> > > >>>>>> Error in authOrderPayments service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an
> > > >>>>> unexpected exception (null)))
> > > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > > >>>>>> Message: Error in authOrderPayments service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an
> > > >>>>> unexpected exception (null)))
> > > >>>>>> ---- stack trace
> > > >>>>> ---------------------------------------------------------------
> > > >>>>>> org.ofbiz.base.util.GeneralException: Error in
authOrderPayments
> > > >>> service:
> > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > transaction
> > > >>> for
> > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > service
> > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > >>> transaction, was
> > > >>>>> rolled back instead because of: Error in Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an
> > > >>>>> unexpected exception (null)))
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:958)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>>
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>>
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java

> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>>
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > >>> transaction
> > > >>>>> for service [authOrderPayments] call: Roll back error, could not
> > commit
> > > >>>>> transaction, was rolled back instead because of: Error in
Service
> > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > authorization:
> > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > >>> processor!
> > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
an

> > > >>>>> unexpected exception (null))
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :531)
> > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java
> > > >>> :208)
> > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java
> > > >>> :150)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:954)
> > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > >>> CheckOutHelper.ja
> > > >>>>> va:860)
> > > >>>>>>
org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > >>>>>>
org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java

> > :304)
> > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >>>>>>
> > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > >>> NativeMethodAccessorImpl.java:39
> > > >>>>> )
> > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >>> (DelegatingMethodAccessorImpl
> > > >>>>> java:25)
> > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > ButtonEventConfig.java
> > > >>> :208)
> > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > >>> ButtonEventConfig.j
> > > >>>>> ava:105)
> > > >>>>>>
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > >>>>>>
> > > >>>
>
> --------------------------------------------------------------------------
--

> > > >>>>> ----
> > > >>>>>> Vince Clark
> > > >>>>>> Global Era
> > > >>>>>> The Freedom of Open Source
> > > >>>>>> [hidden email]
> > > >>>>>> (303) 493-6723
> > > >>>>>>
> > > >>>>>
> > > >
> > > >
> > > >
> > >
> >
> >
>


Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Jacques Le Roux
Administrator
De : "skip@thedevers" <[hidden email]>

> Developers have for ever looked for ways to make their lives easier and it
> is my view that we must avoid this when the benefit is small and it adds
> overhead.  Adding a reload properties parameter will add overhead and
> additional work and the benefits are dubious.
>
> In production, this will never or only very rarely be used and its benefit
> does not justify the work in my opinion.
>
> In developement, there is some limited benefit, but if each of us looks back
> and counts the number of times we had to stop and restart the server to get
> a changed property to reload, I expect that the answer will be rarely.
>
> Skip

I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
because you need to wait a better hour to relaunch ;o)
If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
forget it (and the burden of changes)...

Jacques

> -----Original Message-----
> From: Jacques Le Roux [mailto:[hidden email]]
> Sent: Sunday, November 25, 2007 1:13 PM
> To: [hidden email]
> Subject: Re: POS and Authorize.net error
>
>
> De : "Scott Gray" <[hidden email]>
> > Just to confirm, I had a look and it's cached just like all the others
>
> To be clear, of course I meant this (parametrised with a default value in
> favor of development) not only for this parameters but for
> properties files in general.
> I would like to have opinions about that before opening a Jira issue. I
> wonder if this has not be thought about  before...
>
> Jacques
>
> >
> > Regards
> > Scott
> >
> > On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
> > >
> > > De : "BJ Freeman" <[hidden email]>
> > >
> > >
> > > > now I have eat my words
> > > >         if(configStr == null) {
> > > >             configStr = "payment.properties";
> > > >         }
> > > > so it is read only once.
> > > >
> > > > sorry. In my codes for such drivers I don't do this.
> > >
> > > Yes faster but implies to reload at each changes in properties. Seems to
> > > be production oriented, could be parametrised with a
> > > default in favor of development, ie not have to reload (easy to say, did
> > > not look at code ;o)
> > >
> > > Jacques
> > >
> > > >
> > > > BJ Freeman sent the following on 11/25/2007 6:55 AM:
> > > > > well now I have to and dig deeper.
> > > > > :)
> > > > > the ccAuth  does call the properties load
> > > > >         Properties props = buildAIMProperties(context);
> > > > > so this is done everytime ccAuth is called.
> > > > > but there maybe a mechanism that I am not aware of that caches them.
> > > > > I am aware that most properties are called once upon load of a class
> > > > > but my knowledge stops there.
> > > > >
> > > > >
> > > > >
> > > > > Scott Gray sent the following on 11/25/2007 12:35 AM:
> > > > >> BJ, I don't believe that is correct, aren't properties cached so
> that
> > > the
> > > > >> file is read only once?  You usually need to restart OFBiz for
> > > property
> > > > >> changes to take effect.
> > > > >>
> > > > >> Regards
> > > > >> Scott
> > > > >>
> > > > >> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> > > > >>> Properties are read each time a transaction is sent.
> > > > >>> No build is necessary for properties.
> > > > >>> buildAIMProperties
> > > > >>> is called each transaction
> > > > >>> that would be first place to start.
> > > > >>> I usually build a separate class to send the props for debug info.
> > > > >>> looks like the place to intercept is
> > > > >>> right after buildAuthTransaction
> > > > >>>
> > > > >>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> > > > >>>> payment.properties has been configured but I will triple check
> it.
> > > I
> > > > >>> agree that the null pointer suggests missing information.
> > > > >>>> properties files are read on startup, right? It doesn't require a
> > > build
> > > > >>> does it?
> > > > >>>> Vince Clark
> > > > >>>> Global Era
> > > > >>>> The Freedom of Open Source
> > > > >>>> [hidden email]
> > > > >>>> (303) 493-6723
> > > > >>>>
> > > > >>>> ----- Original Message -----
> > > > >>>> From: "BJ Freeman" <[hidden email]>
> > > > >>>> To: [hidden email]
> > > > >>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> > > America/Denver
> > > > >>>> Subject: Re: POS and Authorize.net error
> > > > >>>>
> > > > >>>> actually if you look at the code.
> > > > >>>> it does not use any Authorize.net classes.
> > > > >>>> it is a complete re-write right down sending the data and
> > > retrieving it
> > > > >>>> from Authorize.net.
> > > > >>>>
> > > > >>>
> > >
> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
> /
> > > > >>>> AIMPaymentServices.java -> interfaces to ofbiz
> > > > >>>> AuthorizeResponse.java -> interfaces to Authorize.net
> > > > >>>> it takes some configuration in the
> > > > >>>> /applications/accounting/config/payment.properties
> > > > >>>>
> > > > >>>> since the error is a null.
> > > > >>>> looks like the payment.properties probably have not be
> configured.
> > > > >>>>
> > > > >>>> clearchris sent the following on 11/24/2007 1:20 PM:
> > > > >>>>> That's a good way to go deduce the problem. You might also
> > > consider
> > > > >>> putting
> > > > >>>>> in code to output the error that is coming back from the third
> > > party
> > > > >>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> > > messages
> > > > >>> from
> > > > >>>>> outside the immediate ofbiz code base.
> > > > >>>>>
> > > > >>>>> Chris
> > > > >>>>>
> > > > >>>>> -----Original Message-----
> > > > >>>>> From: BJ Freeman [mailto:[hidden email]]
> > > > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > > > >>>>> To: [hidden email]
> > > > >>>>> Subject: Re: POS and Authorize.net error
> > > > >>>>>
> > > > >>>>> I would put some debug code in processCard
> > > > >>>>> to see what is being sent in the properties.
> > > > >>>>> or you can work you way thru
> > > > >>>>> ccAuthCapture.
> > > > >>>>>
> > > > >>>>> buildAIMProperties
> > > > >>>>> is where reading in then properties file.
> > > > >>>>> might check you have the correct info there.
> > > > >>>>> /applications/accounting/config/payment.properties
> > > > >>>>>
> > > > >>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> > > > >>>>>> We use auth.net all the time thru eCommerce. Having problems
> with
> > > POS.
> > > > >>>>>>
> > > > >>>>>> Huge stack trace. Here is part of it:
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> > > > >>> :527:ERROR]
> > > > >>>>>> ---- exception report
> > > > >>>>> ----------------------------------------------------------
> > > > >>>>>> Could not commit transaction for service [authOrderPayments]
> call
> > > > >>>>>> Exception:
> > > org.ofbiz.entity.transaction.GenericTransactionException
> > > > >>>>>> Message: Roll back error, could not commit transaction, was
> > > rolled
> > > > >>> back
> > > > >>>>> instead because of: Error in Service
> [authOrderPaymentPreference]:
> > > > >>> Error
> > > > >>>>> processing payment authorization:
> > > org.ofbiz.base.util.GeneralException:
> > > > >>>>> Problems invoking payment processor! Will retry later. Order ID
> > > is:
> > > > >>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> > > > >>>>>> ---- stack trace
> > > > >>>>> ---------------------------------------------------------------
> > > > >>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> > > back
> > > > >>> error,
> > > > >>>>> could not commit transaction, was rolled back instead because
> of:
> > > Error
> > > > >>> in
> > > > >>>>> Service [authOrderPaymentPreference]: Error processing payment
> > > > >>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> > > invoking
> > > > >>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> > > (Service
> > > > >>> target
> > > > >>>>> threw an unexpected exception (null))
> > > > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > > > >>> TransactionUtil.java:208
> > > > >>>>> )
> > > > >>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> > > > >>> TransactionUtil.java:172
> > > > >>>>> )
> > > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > > ServiceDispatcher.java
> > > > >>> :524)
> > > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > > ServiceDispatcher.java
> > > > >>> :208)
> > > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > > GenericDispatcher.java
> > > > >>> :150)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:954)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:860)
> > > > >>>>>>
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > > >>>>>>
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > > :304)
> > > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >>>>>>
> > > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > >>> NativeMethodAccessorImpl.java:39
> > > > >>>>> )
> > > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > >>> (DelegatingMethodAccessorImpl
> > > > >>>>> java:25)
> > > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > > ButtonEventConfig.java
> > > > >>> :208)
> > > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > > >>> ButtonEventConfig.j
> > > > >>>>> ava:105)
> > > > >>>>>>
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > > >>>>>>
> > > > >>>
> >
> > --------------------------------------------------------------------------
> --
> > > > >>>>> ----
> > > > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> > > :626:ERROR]
> > > > >>>>>> ---- exception report
> > > > >>>>> ----------------------------------------------------------
> > > > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > > > >>>>>> Message: Error in authOrderPayments service:
> > > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > transaction
> > > > >>> for
> > > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > > service
> > > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > > >>> transaction, was
> > > > >>>>> rolled back instead because of: Error in Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)))
> > > > >>>>>> ---- stack trace
> > > > >>>>> ---------------------------------------------------------------
> > > > >>>>>> org.ofbiz.base.util.GeneralException: Error in
> authOrderPayments
> > > > >>> service:
> > > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > transaction
> > > > >>> for
> > > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > > service
> > > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > > >>> transaction, was
> > > > >>>>> rolled back instead because of: Error in Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)))
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:958)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:860)
> > > > >>>>>>
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > > >>>>>>
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > > :304)
> > > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >>>>>>
> > > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > >>> NativeMethodAccessorImpl.java:39
> > > > >>>>> )
> > > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > >>> (DelegatingMethodAccessorImpl
> > > > >>>>> java:25)
> > > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > > ButtonEventConfig.java
> > > > >>> :208)
> > > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > > >>> ButtonEventConfig.j
> > > > >>>>> ava:105)
> > > > >>>>>>
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > > >>> transaction
> > > > >>>>> for service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null))
> > > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > > ServiceDispatcher.java
> > > > >>> :531)
> > > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > > ServiceDispatcher.java
> > > > >>> :208)
> > > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > > GenericDispatcher.java
> > > > >>> :150)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:954)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:860)
> > > > >>>>>>
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > > >>>>>>
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > > :304)
> > > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >>>>>>
> > > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > >>> NativeMethodAccessorImpl.java:39
> > > > >>>>> )
> > > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > >>> (DelegatingMethodAccessorImpl
> > > > >>>>> java:25)
> > > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > > ButtonEventConfig.java
> > > > >>> :208)
> > > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > > >>> ButtonEventConfig.j
> > > > >>>>> ava:105)
> > > > >>>>>>
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > > >>>>>>
> > > > >>>
> >
> > --------------------------------------------------------------------------
> --
> > > > >>>>> ----
> > > > >>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> > > :307:ERROR]
> > > > >>>>>> ---- exception report
> > > > >>>>> ----------------------------------------------------------
> > > > >>>>>> Error in authOrderPayments service:
> > > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > transaction
> > > > >>> for
> > > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > > service
> > > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > > >>> transaction, was
> > > > >>>>> rolled back instead because of: Error in Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)))
> > > > >>>>>> Exception: org.ofbiz.base.util.GeneralException
> > > > >>>>>> Message: Error in authOrderPayments service:
> > > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > transaction
> > > > >>> for
> > > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > > service
> > > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > > >>> transaction, was
> > > > >>>>> rolled back instead because of: Error in Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)))
> > > > >>>>>> ---- stack trace
> > > > >>>>> ---------------------------------------------------------------
> > > > >>>>>> org.ofbiz.base.util.GeneralException: Error in
> authOrderPayments
> > > > >>> service:
> > > > >>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > transaction
> > > > >>> for
> > > > >>>>> service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)) (Could not commit transaction for
> > > service
> > > > >>>>> [authOrderPayments] call: Roll back error, could not commit
> > > > >>> transaction, was
> > > > >>>>> rolled back instead because of: Error in Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null)))
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:958)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:860)
> > > > >>>>>>
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > > >>>>>>
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > > :304)
> > > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >>>>>>
> > > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > >>> NativeMethodAccessorImpl.java:39
> > > > >>>>> )
> > > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > >>> (DelegatingMethodAccessorImpl
> > > > >>>>> java:25)
> > > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > > ButtonEventConfig.java
> > > > >>> :208)
> > > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > > >>> ButtonEventConfig.j
> > > > >>>>> ava:105)
> > > > >>>>>>
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > > >>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> > > > >>> transaction
> > > > >>>>> for service [authOrderPayments] call: Roll back error, could not
> > > commit
> > > > >>>>> transaction, was rolled back instead because of: Error in
> Service
> > > > >>>>> [authOrderPaymentPreference]: Error processing payment
> > > authorization:
> > > > >>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> > > > >>> processor!
> > > > >>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> an
> > > > >>>>> unexpected exception (null))
> > > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > > ServiceDispatcher.java
> > > > >>> :531)
> > > > >>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> > > ServiceDispatcher.java
> > > > >>> :208)
> > > > >>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> > > GenericDispatcher.java
> > > > >>> :150)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:954)
> > > > >>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> > > > >>> CheckOutHelper.ja
> > > > >>>>> va:860)
> > > > >>>>>>
> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> > > > >>>>>>
> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> > > :304)
> > > > >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >>>>>>
> > > > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > >>> NativeMethodAccessorImpl.java:39
> > > > >>>>> )
> > > > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > >>> (DelegatingMethodAccessorImpl
> > > > >>>>> java:25)
> > > > >>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> > > > >>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> > > ButtonEventConfig.java
> > > > >>> :208)
> > > > >>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> > > > >>> ButtonEventConfig.j
> > > > >>>>> ava:105)
> > > > >>>>>>
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> > > > >>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> > > > >>>>>> java.lang.Thread.run(Thread.java:595)
> > > > >>>>>>
> > > > >>>
> >
> > --------------------------------------------------------------------------
> --
> > > > >>>>> ----
> > > > >>>>>> Vince Clark
> > > > >>>>>> Global Era
> > > > >>>>>> The Freedom of Open Source
> > > > >>>>>> [hidden email]
> > > > >>>>>> (303) 493-6723
> > > > >>>>>>
> > > > >>>>>
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
not sure why an hour to re-launch, unless a system with not much memory
and sub 350mhz cpu.
Mine relauch is about 10-45 seconds

Jacques Le Roux sent the following on 11/25/2007 2:04 PM:

> De : "skip@thedevers" <[hidden email]>
>> Developers have for ever looked for ways to make their lives easier and it
>> is my view that we must avoid this when the benefit is small and it adds
>> overhead.  Adding a reload properties parameter will add overhead and
>> additional work and the benefits are dubious.
>>
>> In production, this will never or only very rarely be used and its benefit
>> does not justify the work in my opinion.
>>
>> In developement, there is some limited benefit, but if each of us looks back
>> and counts the number of times we had to stop and restart the server to get
>> a changed property to reload, I expect that the answer will be rarely.
>>
>> Skip
>
> I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
> because you need to wait a better hour to relaunch ;o)
> If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
> forget it (and the burden of changes)...
>
> Jacques
>
>> -----Original Message-----
>> From: Jacques Le Roux [mailto:[hidden email]]
>> Sent: Sunday, November 25, 2007 1:13 PM
>> To: [hidden email]
>> Subject: Re: POS and Authorize.net error
>>
>>
>> De : "Scott Gray" <[hidden email]>
>>> Just to confirm, I had a look and it's cached just like all the others
>> To be clear, of course I meant this (parametrised with a default value in
>> favor of development) not only for this parameters but for
>> properties files in general.
>> I would like to have opinions about that before opening a Jira issue. I
>> wonder if this has not be thought about  before...
>>
>> Jacques
>>
>>> Regards
>>> Scott
>>>
>>> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
>>>> De : "BJ Freeman" <[hidden email]>
>>>>
>>>>
>>>>> now I have eat my words
>>>>>         if(configStr == null) {
>>>>>             configStr = "payment.properties";
>>>>>         }
>>>>> so it is read only once.
>>>>>
>>>>> sorry. In my codes for such drivers I don't do this.
>>>> Yes faster but implies to reload at each changes in properties. Seems to
>>>> be production oriented, could be parametrised with a
>>>> default in favor of development, ie not have to reload (easy to say, did
>>>> not look at code ;o)
>>>>
>>>> Jacques
>>>>
>>>>> BJ Freeman sent the following on 11/25/2007 6:55 AM:
>>>>>> well now I have to and dig deeper.
>>>>>> :)
>>>>>> the ccAuth  does call the properties load
>>>>>>         Properties props = buildAIMProperties(context);
>>>>>> so this is done everytime ccAuth is called.
>>>>>> but there maybe a mechanism that I am not aware of that caches them.
>>>>>> I am aware that most properties are called once upon load of a class
>>>>>> but my knowledge stops there.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Scott Gray sent the following on 11/25/2007 12:35 AM:
>>>>>>> BJ, I don't believe that is correct, aren't properties cached so
>> that
>>>> the
>>>>>>> file is read only once?  You usually need to restart OFBiz for
>>>> property
>>>>>>> changes to take effect.
>>>>>>>
>>>>>>> Regards
>>>>>>> Scott
>>>>>>>
>>>>>>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
>>>>>>>> Properties are read each time a transaction is sent.
>>>>>>>> No build is necessary for properties.
>>>>>>>> buildAIMProperties
>>>>>>>> is called each transaction
>>>>>>>> that would be first place to start.
>>>>>>>> I usually build a separate class to send the props for debug info.
>>>>>>>> looks like the place to intercept is
>>>>>>>> right after buildAuthTransaction
>>>>>>>>
>>>>>>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
>>>>>>>>> payment.properties has been configured but I will triple check
>> it.
>>>> I
>>>>>>>> agree that the null pointer suggests missing information.
>>>>>>>>> properties files are read on startup, right? It doesn't require a
>>>> build
>>>>>>>> does it?
>>>>>>>>> Vince Clark
>>>>>>>>> Global Era
>>>>>>>>> The Freedom of Open Source
>>>>>>>>> [hidden email]
>>>>>>>>> (303) 493-6723
>>>>>>>>>
>>>>>>>>> ----- Original Message -----
>>>>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>>>> To: [hidden email]
>>>>>>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
>>>> America/Denver
>>>>>>>>> Subject: Re: POS and Authorize.net error
>>>>>>>>>
>>>>>>>>> actually if you look at the code.
>>>>>>>>> it does not use any Authorize.net classes.
>>>>>>>>> it is a complete re-write right down sending the data and
>>>> retrieving it
>>>>>>>>> from Authorize.net.
>>>>>>>>>
>> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
>> /
>>>>>>>>> AIMPaymentServices.java -> interfaces to ofbiz
>>>>>>>>> AuthorizeResponse.java -> interfaces to Authorize.net
>>>>>>>>> it takes some configuration in the
>>>>>>>>> /applications/accounting/config/payment.properties
>>>>>>>>>
>>>>>>>>> since the error is a null.
>>>>>>>>> looks like the payment.properties probably have not be
>> configured.
>>>>>>>>> clearchris sent the following on 11/24/2007 1:20 PM:
>>>>>>>>>> That's a good way to go deduce the problem. You might also
>>>> consider
>>>>>>>> putting
>>>>>>>>>> in code to output the error that is coming back from the third
>>>> party
>>>>>>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
>>>> messages
>>>>>>>> from
>>>>>>>>>> outside the immediate ofbiz code base.
>>>>>>>>>>
>>>>>>>>>> Chris
>>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: BJ Freeman [mailto:[hidden email]]
>>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>>>>>>> To: [hidden email]
>>>>>>>>>> Subject: Re: POS and Authorize.net error
>>>>>>>>>>
>>>>>>>>>> I would put some debug code in processCard
>>>>>>>>>> to see what is being sent in the properties.
>>>>>>>>>> or you can work you way thru
>>>>>>>>>> ccAuthCapture.
>>>>>>>>>>
>>>>>>>>>> buildAIMProperties
>>>>>>>>>> is where reading in then properties file.
>>>>>>>>>> might check you have the correct info there.
>>>>>>>>>> /applications/accounting/config/payment.properties
>>>>>>>>>>
>>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>>>>>>>>>> We use auth.net all the time thru eCommerce. Having problems
>> with
>>>> POS.
>>>>>>>>>>> Huge stack trace. Here is part of it:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
>>>>>>>> :527:ERROR]
>>>>>>>>>>> ---- exception report
>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>> Could not commit transaction for service [authOrderPayments]
>> call
>>>>>>>>>>> Exception:
>>>> org.ofbiz.entity.transaction.GenericTransactionException
>>>>>>>>>>> Message: Roll back error, could not commit transaction, was
>>>> rolled
>>>>>>>> back
>>>>>>>>>> instead because of: Error in Service
>> [authOrderPaymentPreference]:
>>>>>>>> Error
>>>>>>>>>> processing payment authorization:
>>>> org.ofbiz.base.util.GeneralException:
>>>>>>>>>> Problems invoking payment processor! Will retry later. Order ID
>>>> is:
>>>>>>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
>>>>>>>>>>> ---- stack trace
>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
>>>> back
>>>>>>>> error,
>>>>>>>>>> could not commit transaction, was rolled back instead because
>> of:
>>>> Error
>>>>>>>> in
>>>>>>>>>> Service [authOrderPaymentPreference]: Error processing payment
>>>>>>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
>>>> invoking
>>>>>>>>>> payment processor! Will retry later. Order ID is: [FCCO10020
>>>> (Service
>>>>>>>> target
>>>>>>>>>> threw an unexpected exception (null))
>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>>>>>>> TransactionUtil.java:208
>>>>>>>>>> )
>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>>>>>>> TransactionUtil.java:172
>>>>>>>>>> )
>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>> ServiceDispatcher.java
>>>>>>>> :524)
>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>> ServiceDispatcher.java
>>>>>>>> :208)
>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>> GenericDispatcher.java
>>>>>>>> :150)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:954)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>> :304)
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>> )
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>> java:25)
>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>> ButtonEventConfig.java
>>>>>>>> :208)
>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>> ButtonEventConfig.j
>>>>>>>>>> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>
>>> --------------------------------------------------------------------------
>> --
>>>>>>>>>> ----
>>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
>>>> :626:ERROR]
>>>>>>>>>>> ---- exception report
>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>>>>>>> Message: Error in authOrderPayments service:
>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>> transaction
>>>>>>>> for
>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>> service
>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>> transaction, was
>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>> ---- stack trace
>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
>> authOrderPayments
>>>>>>>> service:
>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>> transaction
>>>>>>>> for
>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>> service
>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>> transaction, was
>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:958)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>> :304)
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>> )
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>> java:25)
>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>> ButtonEventConfig.java
>>>>>>>> :208)
>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>> ButtonEventConfig.j
>>>>>>>>>> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>>>> transaction
>>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null))
>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>> ServiceDispatcher.java
>>>>>>>> :531)
>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>> ServiceDispatcher.java
>>>>>>>> :208)
>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>> GenericDispatcher.java
>>>>>>>> :150)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:954)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>> :304)
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>> )
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>> java:25)
>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>> ButtonEventConfig.java
>>>>>>>> :208)
>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>> ButtonEventConfig.j
>>>>>>>>>> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>
>>> --------------------------------------------------------------------------
>> --
>>>>>>>>>> ----
>>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
>>>> :307:ERROR]
>>>>>>>>>>> ---- exception report
>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>> Error in authOrderPayments service:
>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>> transaction
>>>>>>>> for
>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>> service
>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>> transaction, was
>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>>>>>>> Message: Error in authOrderPayments service:
>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>> transaction
>>>>>>>> for
>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>> service
>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>> transaction, was
>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>> ---- stack trace
>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
>> authOrderPayments
>>>>>>>> service:
>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>> transaction
>>>>>>>> for
>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>> service
>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>> transaction, was
>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:958)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>> :304)
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>> )
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>> java:25)
>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>> ButtonEventConfig.java
>>>>>>>> :208)
>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>> ButtonEventConfig.j
>>>>>>>>>> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>>>> transaction
>>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
>>>> commit
>>>>>>>>>> transaction, was rolled back instead because of: Error in
>> Service
>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>> authorization:
>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>> processor!
>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>> an
>>>>>>>>>> unexpected exception (null))
>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>> ServiceDispatcher.java
>>>>>>>> :531)
>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>> ServiceDispatcher.java
>>>>>>>> :208)
>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>> GenericDispatcher.java
>>>>>>>> :150)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:954)
>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>> CheckOutHelper.ja
>>>>>>>>>> va:860)
>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>> :304)
>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>> )
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>> java:25)
>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>> ButtonEventConfig.java
>>>>>>>> :208)
>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>> ButtonEventConfig.j
>>>>>>>>>> ava:105)
>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>
>>> --------------------------------------------------------------------------
>> --
>>>>>>>>>> ----
>>>>>>>>>>> Vince Clark
>>>>>>>>>>> Global Era
>>>>>>>>>>> The Freedom of Open Source
>>>>>>>>>>> [hidden email]
>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Jacques Le Roux
Administrator
Sorry BJ, I was not clear,

I meant a decent hour to reload. It's delicate to reload for a change in a properties file (sometimes some translations need
amendments) when the server is busy (most of the time day horus), and you have to wait a better hour for that (last evening or
morning first hours)

Jacquer

De : "BJ Freeman" <[hidden email]>

> not sure why an hour to re-launch, unless a system with not much memory
> and sub 350mhz cpu.
> Mine relauch is about 10-45 seconds
>
> Jacques Le Roux sent the following on 11/25/2007 2:04 PM:
> > De : "skip@thedevers" <[hidden email]>
> >> Developers have for ever looked for ways to make their lives easier and it
> >> is my view that we must avoid this when the benefit is small and it adds
> >> overhead.  Adding a reload properties parameter will add overhead and
> >> additional work and the benefits are dubious.
> >>
> >> In production, this will never or only very rarely be used and its benefit
> >> does not justify the work in my opinion.
> >>
> >> In developement, there is some limited benefit, but if each of us looks back
> >> and counts the number of times we had to stop and restart the server to get
> >> a changed property to reload, I expect that the answer will be rarely.
> >>
> >> Skip
> >
> > I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
> > because you need to wait a better hour to relaunch ;o)
> > If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
> > forget it (and the burden of changes)...
> >
> > Jacques
> >
> >> -----Original Message-----
> >> From: Jacques Le Roux [mailto:[hidden email]]
> >> Sent: Sunday, November 25, 2007 1:13 PM
> >> To: [hidden email]
> >> Subject: Re: POS and Authorize.net error
> >>
> >>
> >> De : "Scott Gray" <[hidden email]>
> >>> Just to confirm, I had a look and it's cached just like all the others
> >> To be clear, of course I meant this (parametrised with a default value in
> >> favor of development) not only for this parameters but for
> >> properties files in general.
> >> I would like to have opinions about that before opening a Jira issue. I
> >> wonder if this has not be thought about  before...
> >>
> >> Jacques
> >>
> >>> Regards
> >>> Scott
> >>>
> >>> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
> >>>> De : "BJ Freeman" <[hidden email]>
> >>>>
> >>>>
> >>>>> now I have eat my words
> >>>>>         if(configStr == null) {
> >>>>>             configStr = "payment.properties";
> >>>>>         }
> >>>>> so it is read only once.
> >>>>>
> >>>>> sorry. In my codes for such drivers I don't do this.
> >>>> Yes faster but implies to reload at each changes in properties. Seems to
> >>>> be production oriented, could be parametrised with a
> >>>> default in favor of development, ie not have to reload (easy to say, did
> >>>> not look at code ;o)
> >>>>
> >>>> Jacques
> >>>>
> >>>>> BJ Freeman sent the following on 11/25/2007 6:55 AM:
> >>>>>> well now I have to and dig deeper.
> >>>>>> :)
> >>>>>> the ccAuth  does call the properties load
> >>>>>>         Properties props = buildAIMProperties(context);
> >>>>>> so this is done everytime ccAuth is called.
> >>>>>> but there maybe a mechanism that I am not aware of that caches them.
> >>>>>> I am aware that most properties are called once upon load of a class
> >>>>>> but my knowledge stops there.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Scott Gray sent the following on 11/25/2007 12:35 AM:
> >>>>>>> BJ, I don't believe that is correct, aren't properties cached so
> >> that
> >>>> the
> >>>>>>> file is read only once?  You usually need to restart OFBiz for
> >>>> property
> >>>>>>> changes to take effect.
> >>>>>>>
> >>>>>>> Regards
> >>>>>>> Scott
> >>>>>>>
> >>>>>>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> >>>>>>>> Properties are read each time a transaction is sent.
> >>>>>>>> No build is necessary for properties.
> >>>>>>>> buildAIMProperties
> >>>>>>>> is called each transaction
> >>>>>>>> that would be first place to start.
> >>>>>>>> I usually build a separate class to send the props for debug info.
> >>>>>>>> looks like the place to intercept is
> >>>>>>>> right after buildAuthTransaction
> >>>>>>>>
> >>>>>>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> >>>>>>>>> payment.properties has been configured but I will triple check
> >> it.
> >>>> I
> >>>>>>>> agree that the null pointer suggests missing information.
> >>>>>>>>> properties files are read on startup, right? It doesn't require a
> >>>> build
> >>>>>>>> does it?
> >>>>>>>>> Vince Clark
> >>>>>>>>> Global Era
> >>>>>>>>> The Freedom of Open Source
> >>>>>>>>> [hidden email]
> >>>>>>>>> (303) 493-6723
> >>>>>>>>>
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "BJ Freeman" <[hidden email]>
> >>>>>>>>> To: [hidden email]
> >>>>>>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> >>>> America/Denver
> >>>>>>>>> Subject: Re: POS and Authorize.net error
> >>>>>>>>>
> >>>>>>>>> actually if you look at the code.
> >>>>>>>>> it does not use any Authorize.net classes.
> >>>>>>>>> it is a complete re-write right down sending the data and
> >>>> retrieving it
> >>>>>>>>> from Authorize.net.
> >>>>>>>>>
> >> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
> >> /
> >>>>>>>>> AIMPaymentServices.java -> interfaces to ofbiz
> >>>>>>>>> AuthorizeResponse.java -> interfaces to Authorize.net
> >>>>>>>>> it takes some configuration in the
> >>>>>>>>> /applications/accounting/config/payment.properties
> >>>>>>>>>
> >>>>>>>>> since the error is a null.
> >>>>>>>>> looks like the payment.properties probably have not be
> >> configured.
> >>>>>>>>> clearchris sent the following on 11/24/2007 1:20 PM:
> >>>>>>>>>> That's a good way to go deduce the problem. You might also
> >>>> consider
> >>>>>>>> putting
> >>>>>>>>>> in code to output the error that is coming back from the third
> >>>> party
> >>>>>>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> >>>> messages
> >>>>>>>> from
> >>>>>>>>>> outside the immediate ofbiz code base.
> >>>>>>>>>>
> >>>>>>>>>> Chris
> >>>>>>>>>>
> >>>>>>>>>> -----Original Message-----
> >>>>>>>>>> From: BJ Freeman [mailto:[hidden email]]
> >>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>>>>>>> To: [hidden email]
> >>>>>>>>>> Subject: Re: POS and Authorize.net error
> >>>>>>>>>>
> >>>>>>>>>> I would put some debug code in processCard
> >>>>>>>>>> to see what is being sent in the properties.
> >>>>>>>>>> or you can work you way thru
> >>>>>>>>>> ccAuthCapture.
> >>>>>>>>>>
> >>>>>>>>>> buildAIMProperties
> >>>>>>>>>> is where reading in then properties file.
> >>>>>>>>>> might check you have the correct info there.
> >>>>>>>>>> /applications/accounting/config/payment.properties
> >>>>>>>>>>
> >>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> >>>>>>>>>>> We use auth.net all the time thru eCommerce. Having problems
> >> with
> >>>> POS.
> >>>>>>>>>>> Huge stack trace. Here is part of it:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> >>>>>>>> :527:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Could not commit transaction for service [authOrderPayments]
> >> call
> >>>>>>>>>>> Exception:
> >>>> org.ofbiz.entity.transaction.GenericTransactionException
> >>>>>>>>>>> Message: Roll back error, could not commit transaction, was
> >>>> rolled
> >>>>>>>> back
> >>>>>>>>>> instead because of: Error in Service
> >> [authOrderPaymentPreference]:
> >>>>>>>> Error
> >>>>>>>>>> processing payment authorization:
> >>>> org.ofbiz.base.util.GeneralException:
> >>>>>>>>>> Problems invoking payment processor! Will retry later. Order ID
> >>>> is:
> >>>>>>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> >>>> back
> >>>>>>>> error,
> >>>>>>>>>> could not commit transaction, was rolled back instead because
> >> of:
> >>>> Error
> >>>>>>>> in
> >>>>>>>>>> Service [authOrderPaymentPreference]: Error processing payment
> >>>>>>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> >>>> invoking
> >>>>>>>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> >>>> (Service
> >>>>>>>> target
> >>>>>>>>>> threw an unexpected exception (null))
> >>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>>>>>>> TransactionUtil.java:208
> >>>>>>>>>> )
> >>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>>>>>>> TransactionUtil.java:172
> >>>>>>>>>> )
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :524)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> >>>> :626:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>>>>>>> Message: Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
> >> authOrderPayments
> >>>>>>>> service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:958)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>>>>>> transaction
> >>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null))
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :531)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> >>>> :307:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>>>>>>> Message: Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
> >> authOrderPayments
> >>>>>>>> service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:958)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>>>>>> transaction
> >>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null))
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :531)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> Vince Clark
> >>>>>>>>>>> Global Era
> >>>>>>>>>>> The Freedom of Open Source
> >>>>>>>>>>> [hidden email]
> >>>>>>>>>>> (303) 493-6723
> >>>>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> >
> >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Vince Clark
This error is not isolated to POS. I can reproduce thru ordermgr. I have checked payment.properties and also tested with a payment.properties file that is in another instance that works. That instance is based on release branch 4.0 and works fine. The instance I am having trouble with is based on trunk rev 598739.

Is there anything else I could be missing from a configuration perspective? The Auth.net services are part of the build from trunk right? I don't have to include any other jars or change build.xml settings?

It should be very straightforward.
Checkout
Build
Edit payment.properties with valid test account (or real account)
Add payment methods to store

Vince Clark
Global Era
The Freedom of Open Source
[hidden email]
(303) 493-6723

----- Original Message -----
From: "Jacques Le Roux" <[hidden email]>
To: [hidden email]
Sent: Monday, November 26, 2007 4:17:44 AM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error

Sorry BJ, I was not clear,

I meant a decent hour to reload. It's delicate to reload for a change in a properties file (sometimes some translations need
amendments) when the server is busy (most of the time day horus), and you have to wait a better hour for that (last evening or
morning first hours)

Jacquer

De : "BJ Freeman" <[hidden email]>

> not sure why an hour to re-launch, unless a system with not much memory
> and sub 350mhz cpu.
> Mine relauch is about 10-45 seconds
>
> Jacques Le Roux sent the following on 11/25/2007 2:04 PM:
> > De : "skip@thedevers" <[hidden email]>
> >> Developers have for ever looked for ways to make their lives easier and it
> >> is my view that we must avoid this when the benefit is small and it adds
> >> overhead. Adding a reload properties parameter will add overhead and
> >> additional work and the benefits are dubious.
> >>
> >> In production, this will never or only very rarely be used and its benefit
> >> does not justify the work in my opinion.
> >>
> >> In developement, there is some limited benefit, but if each of us looks back
> >> and counts the number of times we had to stop and restart the server to get
> >> a changed property to reload, I expect that the answer will be rarely.
> >>
> >> Skip
> >
> > I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
> > because you need to wait a better hour to relaunch ;o)
> > If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
> > forget it (and the burden of changes)...
> >
> > Jacques
> >
> >> -----Original Message-----
> >> From: Jacques Le Roux [mailto:[hidden email]]
> >> Sent: Sunday, November 25, 2007 1:13 PM
> >> To: [hidden email]
> >> Subject: Re: POS and Authorize.net error
> >>
> >>
> >> De : "Scott Gray" <[hidden email]>
> >>> Just to confirm, I had a look and it's cached just like all the others
> >> To be clear, of course I meant this (parametrised with a default value in
> >> favor of development) not only for this parameters but for
> >> properties files in general.
> >> I would like to have opinions about that before opening a Jira issue. I
> >> wonder if this has not be thought about before...
> >>
> >> Jacques
> >>
> >>> Regards
> >>> Scott
> >>>
> >>> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
> >>>> De : "BJ Freeman" <[hidden email]>
> >>>>
> >>>>
> >>>>> now I have eat my words
> >>>>> if(configStr == null) {
> >>>>> configStr = "payment.properties";
> >>>>> }
> >>>>> so it is read only once.
> >>>>>
> >>>>> sorry. In my codes for such drivers I don't do this.
> >>>> Yes faster but implies to reload at each changes in properties. Seems to
> >>>> be production oriented, could be parametrised with a
> >>>> default in favor of development, ie not have to reload (easy to say, did
> >>>> not look at code ;o)
> >>>>
> >>>> Jacques
> >>>>
> >>>>> BJ Freeman sent the following on 11/25/2007 6:55 AM:
> >>>>>> well now I have to and dig deeper.
> >>>>>> :)
> >>>>>> the ccAuth does call the properties load
> >>>>>> Properties props = buildAIMProperties(context);
> >>>>>> so this is done everytime ccAuth is called.
> >>>>>> but there maybe a mechanism that I am not aware of that caches them.
> >>>>>> I am aware that most properties are called once upon load of a class
> >>>>>> but my knowledge stops there.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Scott Gray sent the following on 11/25/2007 12:35 AM:
> >>>>>>> BJ, I don't believe that is correct, aren't properties cached so
> >> that
> >>>> the
> >>>>>>> file is read only once? You usually need to restart OFBiz for
> >>>> property
> >>>>>>> changes to take effect.
> >>>>>>>
> >>>>>>> Regards
> >>>>>>> Scott
> >>>>>>>
> >>>>>>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> >>>>>>>> Properties are read each time a transaction is sent.
> >>>>>>>> No build is necessary for properties.
> >>>>>>>> buildAIMProperties
> >>>>>>>> is called each transaction
> >>>>>>>> that would be first place to start.
> >>>>>>>> I usually build a separate class to send the props for debug info.
> >>>>>>>> looks like the place to intercept is
> >>>>>>>> right after buildAuthTransaction
> >>>>>>>>
> >>>>>>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> >>>>>>>>> payment.properties has been configured but I will triple check
> >> it.
> >>>> I
> >>>>>>>> agree that the null pointer suggests missing information.
> >>>>>>>>> properties files are read on startup, right? It doesn't require a
> >>>> build
> >>>>>>>> does it?
> >>>>>>>>> Vince Clark
> >>>>>>>>> Global Era
> >>>>>>>>> The Freedom of Open Source
> >>>>>>>>> [hidden email]
> >>>>>>>>> (303) 493-6723
> >>>>>>>>>
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "BJ Freeman" <[hidden email]>
> >>>>>>>>> To: [hidden email]
> >>>>>>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> >>>> America/Denver
> >>>>>>>>> Subject: Re: POS and Authorize.net error
> >>>>>>>>>
> >>>>>>>>> actually if you look at the code.
> >>>>>>>>> it does not use any Authorize.net classes.
> >>>>>>>>> it is a complete re-write right down sending the data and
> >>>> retrieving it
> >>>>>>>>> from Authorize.net.
> >>>>>>>>>
> >> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
> >> /
> >>>>>>>>> AIMPaymentServices.java -> interfaces to ofbiz
> >>>>>>>>> AuthorizeResponse.java -> interfaces to Authorize.net
> >>>>>>>>> it takes some configuration in the
> >>>>>>>>> /applications/accounting/config/payment.properties
> >>>>>>>>>
> >>>>>>>>> since the error is a null.
> >>>>>>>>> looks like the payment.properties probably have not be
> >> configured.
> >>>>>>>>> clearchris sent the following on 11/24/2007 1:20 PM:
> >>>>>>>>>> That's a good way to go deduce the problem. You might also
> >>>> consider
> >>>>>>>> putting
> >>>>>>>>>> in code to output the error that is coming back from the third
> >>>> party
> >>>>>>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> >>>> messages
> >>>>>>>> from
> >>>>>>>>>> outside the immediate ofbiz code base.
> >>>>>>>>>>
> >>>>>>>>>> Chris
> >>>>>>>>>>
> >>>>>>>>>> -----Original Message-----
> >>>>>>>>>> From: BJ Freeman [mailto:[hidden email]]
> >>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>>>>>>> To: [hidden email]
> >>>>>>>>>> Subject: Re: POS and Authorize.net error
> >>>>>>>>>>
> >>>>>>>>>> I would put some debug code in processCard
> >>>>>>>>>> to see what is being sent in the properties.
> >>>>>>>>>> or you can work you way thru
> >>>>>>>>>> ccAuthCapture.
> >>>>>>>>>>
> >>>>>>>>>> buildAIMProperties
> >>>>>>>>>> is where reading in then properties file.
> >>>>>>>>>> might check you have the correct info there.
> >>>>>>>>>> /applications/accounting/config/payment.properties
> >>>>>>>>>>
> >>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> >>>>>>>>>>> We use auth.net all the time thru eCommerce. Having problems
> >> with
> >>>> POS.
> >>>>>>>>>>> Huge stack trace. Here is part of it:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> >>>>>>>> :527:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Could not commit transaction for service [authOrderPayments]
> >> call
> >>>>>>>>>>> Exception:
> >>>> org.ofbiz.entity.transaction.GenericTransactionException
> >>>>>>>>>>> Message: Roll back error, could not commit transaction, was
> >>>> rolled
> >>>>>>>> back
> >>>>>>>>>> instead because of: Error in Service
> >> [authOrderPaymentPreference]:
> >>>>>>>> Error
> >>>>>>>>>> processing payment authorization:
> >>>> org.ofbiz.base.util.GeneralException:
> >>>>>>>>>> Problems invoking payment processor! Will retry later. Order ID
> >>>> is:
> >>>>>>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> >>>> back
> >>>>>>>> error,
> >>>>>>>>>> could not commit transaction, was rolled back instead because
> >> of:
> >>>> Error
> >>>>>>>> in
> >>>>>>>>>> Service [authOrderPaymentPreference]: Error processing payment
> >>>>>>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> >>>> invoking
> >>>>>>>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> >>>> (Service
> >>>>>>>> target
> >>>>>>>>>> threw an unexpected exception (null))
> >>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>>>>>>> TransactionUtil.java:208
> >>>>>>>>>> )
> >>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>>>>>>> TransactionUtil.java:172
> >>>>>>>>>> )
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :524)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> >>>> :626:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>>>>>>> Message: Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
> >> authOrderPayments
> >>>>>>>> service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:958)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>>>>>> transaction
> >>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null))
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :531)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> >>>> :307:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>>>>>>> Message: Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
> >> authOrderPayments
> >>>>>>>> service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:958)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>>>>>> transaction
> >>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null))
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :531)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> Vince Clark
> >>>>>>>>>>> Global Era
> >>>>>>>>>>> The Freedom of Open Source
> >>>>>>>>>>> [hidden email]
> >>>>>>>>>>> (303) 493-6723
> >>>>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> >
> >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

Vince Clark
OK I found some better log information that reveals the real source of the problem:

[ AIMPaymentServices.java:371:INFO ] Could not complete Authorize.Net transaction: org.ofbiz.base.util.HttpClientException: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found)


Vince Clark
Global Era
The Freedom of Open Source
[hidden email]
(303) 493-6723

----- Original Message -----
From: "Vince M. Clark" <[hidden email]>
To: [hidden email], "Jacques Le Roux" <[hidden email]>
Sent: Tuesday, November 27, 2007 12:44:12 PM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error

This error is not isolated to POS. I can reproduce thru ordermgr. I have checked payment.properties and also tested with a payment.properties file that is in another instance that works. That instance is based on release branch 4.0 and works fine. The instance I am having trouble with is based on trunk rev 598739.

Is there anything else I could be missing from a configuration perspective? The Auth.net services are part of the build from trunk right? I don't have to include any other jars or change build.xml settings?

It should be very straightforward.
Checkout
Build
Edit payment.properties with valid test account (or real account)
Add payment methods to store

Vince Clark
Global Era
The Freedom of Open Source
[hidden email]
(303) 493-6723

----- Original Message -----
From: "Jacques Le Roux" <[hidden email]>
To: [hidden email]
Sent: Monday, November 26, 2007 4:17:44 AM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error

Sorry BJ, I was not clear,

I meant a decent hour to reload. It's delicate to reload for a change in a properties file (sometimes some translations need
amendments) when the server is busy (most of the time day horus), and you have to wait a better hour for that (last evening or
morning first hours)

Jacquer

De : "BJ Freeman" <[hidden email]>

> not sure why an hour to re-launch, unless a system with not much memory
> and sub 350mhz cpu.
> Mine relauch is about 10-45 seconds
>
> Jacques Le Roux sent the following on 11/25/2007 2:04 PM:
> > De : "skip@thedevers" <[hidden email]>
> >> Developers have for ever looked for ways to make their lives easier and it
> >> is my view that we must avoid this when the benefit is small and it adds
> >> overhead. Adding a reload properties parameter will add overhead and
> >> additional work and the benefits are dubious.
> >>
> >> In production, this will never or only very rarely be used and its benefit
> >> does not justify the work in my opinion.
> >>
> >> In developement, there is some limited benefit, but if each of us looks back
> >> and counts the number of times we had to stop and restart the server to get
> >> a changed property to reload, I expect that the answer will be rarely.
> >>
> >> Skip
> >
> > I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
> > because you need to wait a better hour to relaunch ;o)
> > If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
> > forget it (and the burden of changes)...
> >
> > Jacques
> >
> >> -----Original Message-----
> >> From: Jacques Le Roux [mailto:[hidden email]]
> >> Sent: Sunday, November 25, 2007 1:13 PM
> >> To: [hidden email]
> >> Subject: Re: POS and Authorize.net error
> >>
> >>
> >> De : "Scott Gray" <[hidden email]>
> >>> Just to confirm, I had a look and it's cached just like all the others
> >> To be clear, of course I meant this (parametrised with a default value in
> >> favor of development) not only for this parameters but for
> >> properties files in general.
> >> I would like to have opinions about that before opening a Jira issue. I
> >> wonder if this has not be thought about before...
> >>
> >> Jacques
> >>
> >>> Regards
> >>> Scott
> >>>
> >>> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
> >>>> De : "BJ Freeman" <[hidden email]>
> >>>>
> >>>>
> >>>>> now I have eat my words
> >>>>> if(configStr == null) {
> >>>>> configStr = "payment.properties";
> >>>>> }
> >>>>> so it is read only once.
> >>>>>
> >>>>> sorry. In my codes for such drivers I don't do this.
> >>>> Yes faster but implies to reload at each changes in properties. Seems to
> >>>> be production oriented, could be parametrised with a
> >>>> default in favor of development, ie not have to reload (easy to say, did
> >>>> not look at code ;o)
> >>>>
> >>>> Jacques
> >>>>
> >>>>> BJ Freeman sent the following on 11/25/2007 6:55 AM:
> >>>>>> well now I have to and dig deeper.
> >>>>>> :)
> >>>>>> the ccAuth does call the properties load
> >>>>>> Properties props = buildAIMProperties(context);
> >>>>>> so this is done everytime ccAuth is called.
> >>>>>> but there maybe a mechanism that I am not aware of that caches them.
> >>>>>> I am aware that most properties are called once upon load of a class
> >>>>>> but my knowledge stops there.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Scott Gray sent the following on 11/25/2007 12:35 AM:
> >>>>>>> BJ, I don't believe that is correct, aren't properties cached so
> >> that
> >>>> the
> >>>>>>> file is read only once? You usually need to restart OFBiz for
> >>>> property
> >>>>>>> changes to take effect.
> >>>>>>>
> >>>>>>> Regards
> >>>>>>> Scott
> >>>>>>>
> >>>>>>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
> >>>>>>>> Properties are read each time a transaction is sent.
> >>>>>>>> No build is necessary for properties.
> >>>>>>>> buildAIMProperties
> >>>>>>>> is called each transaction
> >>>>>>>> that would be first place to start.
> >>>>>>>> I usually build a separate class to send the props for debug info.
> >>>>>>>> looks like the place to intercept is
> >>>>>>>> right after buildAuthTransaction
> >>>>>>>>
> >>>>>>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
> >>>>>>>>> payment.properties has been configured but I will triple check
> >> it.
> >>>> I
> >>>>>>>> agree that the null pointer suggests missing information.
> >>>>>>>>> properties files are read on startup, right? It doesn't require a
> >>>> build
> >>>>>>>> does it?
> >>>>>>>>> Vince Clark
> >>>>>>>>> Global Era
> >>>>>>>>> The Freedom of Open Source
> >>>>>>>>> [hidden email]
> >>>>>>>>> (303) 493-6723
> >>>>>>>>>
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "BJ Freeman" <[hidden email]>
> >>>>>>>>> To: [hidden email]
> >>>>>>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
> >>>> America/Denver
> >>>>>>>>> Subject: Re: POS and Authorize.net error
> >>>>>>>>>
> >>>>>>>>> actually if you look at the code.
> >>>>>>>>> it does not use any Authorize.net classes.
> >>>>>>>>> it is a complete re-write right down sending the data and
> >>>> retrieving it
> >>>>>>>>> from Authorize.net.
> >>>>>>>>>
> >> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
> >> /
> >>>>>>>>> AIMPaymentServices.java -> interfaces to ofbiz
> >>>>>>>>> AuthorizeResponse.java -> interfaces to Authorize.net
> >>>>>>>>> it takes some configuration in the
> >>>>>>>>> /applications/accounting/config/payment.properties
> >>>>>>>>>
> >>>>>>>>> since the error is a null.
> >>>>>>>>> looks like the payment.properties probably have not be
> >> configured.
> >>>>>>>>> clearchris sent the following on 11/24/2007 1:20 PM:
> >>>>>>>>>> That's a good way to go deduce the problem. You might also
> >>>> consider
> >>>>>>>> putting
> >>>>>>>>>> in code to output the error that is coming back from the third
> >>>> party
> >>>>>>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
> >>>> messages
> >>>>>>>> from
> >>>>>>>>>> outside the immediate ofbiz code base.
> >>>>>>>>>>
> >>>>>>>>>> Chris
> >>>>>>>>>>
> >>>>>>>>>> -----Original Message-----
> >>>>>>>>>> From: BJ Freeman [mailto:[hidden email]]
> >>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>>>>>>> To: [hidden email]
> >>>>>>>>>> Subject: Re: POS and Authorize.net error
> >>>>>>>>>>
> >>>>>>>>>> I would put some debug code in processCard
> >>>>>>>>>> to see what is being sent in the properties.
> >>>>>>>>>> or you can work you way thru
> >>>>>>>>>> ccAuthCapture.
> >>>>>>>>>>
> >>>>>>>>>> buildAIMProperties
> >>>>>>>>>> is where reading in then properties file.
> >>>>>>>>>> might check you have the correct info there.
> >>>>>>>>>> /applications/accounting/config/payment.properties
> >>>>>>>>>>
> >>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
> >>>>>>>>>>> We use auth.net all the time thru eCommerce. Having problems
> >> with
> >>>> POS.
> >>>>>>>>>>> Huge stack trace. Here is part of it:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
> >>>>>>>> :527:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Could not commit transaction for service [authOrderPayments]
> >> call
> >>>>>>>>>>> Exception:
> >>>> org.ofbiz.entity.transaction.GenericTransactionException
> >>>>>>>>>>> Message: Roll back error, could not commit transaction, was
> >>>> rolled
> >>>>>>>> back
> >>>>>>>>>> instead because of: Error in Service
> >> [authOrderPaymentPreference]:
> >>>>>>>> Error
> >>>>>>>>>> processing payment authorization:
> >>>> org.ofbiz.base.util.GeneralException:
> >>>>>>>>>> Problems invoking payment processor! Will retry later. Order ID
> >>>> is:
> >>>>>>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
> >>>> back
> >>>>>>>> error,
> >>>>>>>>>> could not commit transaction, was rolled back instead because
> >> of:
> >>>> Error
> >>>>>>>> in
> >>>>>>>>>> Service [authOrderPaymentPreference]: Error processing payment
> >>>>>>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
> >>>> invoking
> >>>>>>>>>> payment processor! Will retry later. Order ID is: [FCCO10020
> >>>> (Service
> >>>>>>>> target
> >>>>>>>>>> threw an unexpected exception (null))
> >>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>>>>>>> TransactionUtil.java:208
> >>>>>>>>>> )
> >>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
> >>>>>>>> TransactionUtil.java:172
> >>>>>>>>>> )
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :524)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
> >>>> :626:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>>>>>>> Message: Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
> >> authOrderPayments
> >>>>>>>> service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:958)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>>>>>> transaction
> >>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null))
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :531)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
> >>>> :307:ERROR]
> >>>>>>>>>>> ---- exception report
> >>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>> Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
> >>>>>>>>>>> Message: Error in authOrderPayments service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>>> ---- stack trace
> >>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
> >> authOrderPayments
> >>>>>>>> service:
> >>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>> transaction
> >>>>>>>> for
> >>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
> >>>> service
> >>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
> >>>>>>>> transaction, was
> >>>>>>>>>> rolled back instead because of: Error in Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null)))
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:958)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
> >>>>>>>> transaction
> >>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
> >>>> commit
> >>>>>>>>>> transaction, was rolled back instead because of: Error in
> >> Service
> >>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
> >>>> authorization:
> >>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
> >>>>>>>> processor!
> >>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
> >> an
> >>>>>>>>>> unexpected exception (null))
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :531)
> >>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
> >>>> ServiceDispatcher.java
> >>>>>>>> :208)
> >>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
> >>>> GenericDispatcher.java
> >>>>>>>> :150)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:954)
> >>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
> >>>>>>>> CheckOutHelper.ja
> >>>>>>>>>> va:860)
> >> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
> >> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
> >>>> :304)
> >>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>>>>>
> >>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>>> NativeMethodAccessorImpl.java:39
> >>>>>>>>>> )
> >>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>>>>>>> (DelegatingMethodAccessorImpl
> >>>>>>>>>> java:25)
> >>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
> >>>> ButtonEventConfig.java
> >>>>>>>> :208)
> >>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
> >>>>>>>> ButtonEventConfig.j
> >>>>>>>>>> ava:105)
> >> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> >>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> >>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
> >>>>>>>>>>>
> >>> --------------------------------------------------------------------------
> >> --
> >>>>>>>>>> ----
> >>>>>>>>>>> Vince Clark
> >>>>>>>>>>> Global Era
> >>>>>>>>>>> The Freedom of Open Source
> >>>>>>>>>>> [hidden email]
> >>>>>>>>>>> (303) 493-6723
> >>>>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> >
> >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
there is a code change in the trunk
in the commit log New Revision: 585788



Vince M. Clark sent the following on 11/27/2007 11:59 AM:

> OK I found some better log information that reveals the real source of the problem:
>
> [ AIMPaymentServices.java:371:INFO ] Could not complete Authorize.Net transaction: org.ofbiz.base.util.HttpClientException: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found)
>
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>
> ----- Original Message -----
> From: "Vince M. Clark" <[hidden email]>
> To: [hidden email], "Jacques Le Roux" <[hidden email]>
> Sent: Tuesday, November 27, 2007 12:44:12 PM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> This error is not isolated to POS. I can reproduce thru ordermgr. I have checked payment.properties and also tested with a payment.properties file that is in another instance that works. That instance is based on release branch 4.0 and works fine. The instance I am having trouble with is based on trunk rev 598739.
>
> Is there anything else I could be missing from a configuration perspective? The Auth.net services are part of the build from trunk right? I don't have to include any other jars or change build.xml settings?
>
> It should be very straightforward.
> Checkout
> Build
> Edit payment.properties with valid test account (or real account)
> Add payment methods to store
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>
> ----- Original Message -----
> From: "Jacques Le Roux" <[hidden email]>
> To: [hidden email]
> Sent: Monday, November 26, 2007 4:17:44 AM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> Sorry BJ, I was not clear,
>
> I meant a decent hour to reload. It's delicate to reload for a change in a properties file (sometimes some translations need
> amendments) when the server is busy (most of the time day horus), and you have to wait a better hour for that (last evening or
> morning first hours)
>
> Jacquer
>
> De : "BJ Freeman" <[hidden email]>
>> not sure why an hour to re-launch, unless a system with not much memory
>> and sub 350mhz cpu.
>> Mine relauch is about 10-45 seconds
>>
>> Jacques Le Roux sent the following on 11/25/2007 2:04 PM:
>>> De : "skip@thedevers" <[hidden email]>
>>>> Developers have for ever looked for ways to make their lives easier and it
>>>> is my view that we must avoid this when the benefit is small and it adds
>>>> overhead. Adding a reload properties parameter will add overhead and
>>>> additional work and the benefits are dubious.
>>>>
>>>> In production, this will never or only very rarely be used and its benefit
>>>> does not justify the work in my opinion.
>>>>
>>>> In developement, there is some limited benefit, but if each of us looks back
>>>> and counts the number of times we had to stop and restart the server to get
>>>> a changed property to reload, I expect that the answer will be rarely.
>>>>
>>>> Skip
>>> I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
>>> because you need to wait a better hour to relaunch ;o)
>>> If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
>>> forget it (and the burden of changes)...
>>>
>>> Jacques
>>>
>>>> -----Original Message-----
>>>> From: Jacques Le Roux [mailto:[hidden email]]
>>>> Sent: Sunday, November 25, 2007 1:13 PM
>>>> To: [hidden email]
>>>> Subject: Re: POS and Authorize.net error
>>>>
>>>>
>>>> De : "Scott Gray" <[hidden email]>
>>>>> Just to confirm, I had a look and it's cached just like all the others
>>>> To be clear, of course I meant this (parametrised with a default value in
>>>> favor of development) not only for this parameters but for
>>>> properties files in general.
>>>> I would like to have opinions about that before opening a Jira issue. I
>>>> wonder if this has not be thought about before...
>>>>
>>>> Jacques
>>>>
>>>>> Regards
>>>>> Scott
>>>>>
>>>>> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
>>>>>> De : "BJ Freeman" <[hidden email]>
>>>>>>
>>>>>>
>>>>>>> now I have eat my words
>>>>>>> if(configStr == null) {
>>>>>>> configStr = "payment.properties";
>>>>>>> }
>>>>>>> so it is read only once.
>>>>>>>
>>>>>>> sorry. In my codes for such drivers I don't do this.
>>>>>> Yes faster but implies to reload at each changes in properties. Seems to
>>>>>> be production oriented, could be parametrised with a
>>>>>> default in favor of development, ie not have to reload (easy to say, did
>>>>>> not look at code ;o)
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>> BJ Freeman sent the following on 11/25/2007 6:55 AM:
>>>>>>>> well now I have to and dig deeper.
>>>>>>>> :)
>>>>>>>> the ccAuth does call the properties load
>>>>>>>> Properties props = buildAIMProperties(context);
>>>>>>>> so this is done everytime ccAuth is called.
>>>>>>>> but there maybe a mechanism that I am not aware of that caches them.
>>>>>>>> I am aware that most properties are called once upon load of a class
>>>>>>>> but my knowledge stops there.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Scott Gray sent the following on 11/25/2007 12:35 AM:
>>>>>>>>> BJ, I don't believe that is correct, aren't properties cached so
>>>> that
>>>>>> the
>>>>>>>>> file is read only once? You usually need to restart OFBiz for
>>>>>> property
>>>>>>>>> changes to take effect.
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Scott
>>>>>>>>>
>>>>>>>>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
>>>>>>>>>> Properties are read each time a transaction is sent.
>>>>>>>>>> No build is necessary for properties.
>>>>>>>>>> buildAIMProperties
>>>>>>>>>> is called each transaction
>>>>>>>>>> that would be first place to start.
>>>>>>>>>> I usually build a separate class to send the props for debug info.
>>>>>>>>>> looks like the place to intercept is
>>>>>>>>>> right after buildAuthTransaction
>>>>>>>>>>
>>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
>>>>>>>>>>> payment.properties has been configured but I will triple check
>>>> it.
>>>>>> I
>>>>>>>>>> agree that the null pointer suggests missing information.
>>>>>>>>>>> properties files are read on startup, right? It doesn't require a
>>>>>> build
>>>>>>>>>> does it?
>>>>>>>>>>> Vince Clark
>>>>>>>>>>> Global Era
>>>>>>>>>>> The Freedom of Open Source
>>>>>>>>>>> [hidden email]
>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>
>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>>>>>> To: [hidden email]
>>>>>>>>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
>>>>>> America/Denver
>>>>>>>>>>> Subject: Re: POS and Authorize.net error
>>>>>>>>>>>
>>>>>>>>>>> actually if you look at the code.
>>>>>>>>>>> it does not use any Authorize.net classes.
>>>>>>>>>>> it is a complete re-write right down sending the data and
>>>>>> retrieving it
>>>>>>>>>>> from Authorize.net.
>>>>>>>>>>>
>>>> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
>>>> /
>>>>>>>>>>> AIMPaymentServices.java -> interfaces to ofbiz
>>>>>>>>>>> AuthorizeResponse.java -> interfaces to Authorize.net
>>>>>>>>>>> it takes some configuration in the
>>>>>>>>>>> /applications/accounting/config/payment.properties
>>>>>>>>>>>
>>>>>>>>>>> since the error is a null.
>>>>>>>>>>> looks like the payment.properties probably have not be
>>>> configured.
>>>>>>>>>>> clearchris sent the following on 11/24/2007 1:20 PM:
>>>>>>>>>>>> That's a good way to go deduce the problem. You might also
>>>>>> consider
>>>>>>>>>> putting
>>>>>>>>>>>> in code to output the error that is coming back from the third
>>>>>> party
>>>>>>>>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
>>>>>> messages
>>>>>>>>>> from
>>>>>>>>>>>> outside the immediate ofbiz code base.
>>>>>>>>>>>>
>>>>>>>>>>>> Chris
>>>>>>>>>>>>
>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>> From: BJ Freeman [mailto:[hidden email]]
>>>>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>>>>>>>>> To: [hidden email]
>>>>>>>>>>>> Subject: Re: POS and Authorize.net error
>>>>>>>>>>>>
>>>>>>>>>>>> I would put some debug code in processCard
>>>>>>>>>>>> to see what is being sent in the properties.
>>>>>>>>>>>> or you can work you way thru
>>>>>>>>>>>> ccAuthCapture.
>>>>>>>>>>>>
>>>>>>>>>>>> buildAIMProperties
>>>>>>>>>>>> is where reading in then properties file.
>>>>>>>>>>>> might check you have the correct info there.
>>>>>>>>>>>> /applications/accounting/config/payment.properties
>>>>>>>>>>>>
>>>>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>>>>>>>>>>>> We use auth.net all the time thru eCommerce. Having problems
>>>> with
>>>>>> POS.
>>>>>>>>>>>>> Huge stack trace. Here is part of it:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
>>>>>>>>>> :527:ERROR]
>>>>>>>>>>>>> ---- exception report
>>>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>>>> Could not commit transaction for service [authOrderPayments]
>>>> call
>>>>>>>>>>>>> Exception:
>>>>>> org.ofbiz.entity.transaction.GenericTransactionException
>>>>>>>>>>>>> Message: Roll back error, could not commit transaction, was
>>>>>> rolled
>>>>>>>>>> back
>>>>>>>>>>>> instead because of: Error in Service
>>>> [authOrderPaymentPreference]:
>>>>>>>>>> Error
>>>>>>>>>>>> processing payment authorization:
>>>>>> org.ofbiz.base.util.GeneralException:
>>>>>>>>>>>> Problems invoking payment processor! Will retry later. Order ID
>>>>>> is:
>>>>>>>>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
>>>>>>>>>>>>> ---- stack trace
>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
>>>>>> back
>>>>>>>>>> error,
>>>>>>>>>>>> could not commit transaction, was rolled back instead because
>>>> of:
>>>>>> Error
>>>>>>>>>> in
>>>>>>>>>>>> Service [authOrderPaymentPreference]: Error processing payment
>>>>>>>>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
>>>>>> invoking
>>>>>>>>>>>> payment processor! Will retry later. Order ID is: [FCCO10020
>>>>>> (Service
>>>>>>>>>> target
>>>>>>>>>>>> threw an unexpected exception (null))
>>>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>>>>>>>>> TransactionUtil.java:208
>>>>>>>>>>>> )
>>>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>>>>>>>>> TransactionUtil.java:172
>>>>>>>>>>>> )
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :524)
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :208)
>>>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>>>> GenericDispatcher.java
>>>>>>>>>> :150)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:954)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>
>>>>> --------------------------------------------------------------------------
>>>> --
>>>>>>>>>>>> ----
>>>>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
>>>>>> :626:ERROR]
>>>>>>>>>>>>> ---- exception report
>>>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>>>>>>>>> Message: Error in authOrderPayments service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>>> ---- stack trace
>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
>>>> authOrderPayments
>>>>>>>>>> service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:958)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>>>>>> transaction
>>>>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null))
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :531)
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :208)
>>>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>>>> GenericDispatcher.java
>>>>>>>>>> :150)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:954)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>
>>>>> --------------------------------------------------------------------------
>>>> --
>>>>>>>>>>>> ----
>>>>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
>>>>>> :307:ERROR]
>>>>>>>>>>>>> ---- exception report
>>>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>>>> Error in authOrderPayments service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>>>>>>>>> Message: Error in authOrderPayments service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>>> ---- stack trace
>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
>>>> authOrderPayments
>>>>>>>>>> service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:958)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>>>>>> transaction
>>>>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null))
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :531)
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :208)
>>>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>>>> GenericDispatcher.java
>>>>>>>>>> :150)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:954)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>
>>>>> --------------------------------------------------------------------------
>>>> --
>>>>>>>>>>>> ----
>>>>>>>>>>>>> Vince Clark
>>>>>>>>>>>>> Global Era
>>>>>>>>>>>>> The Freedom of Open Source
>>>>>>>>>>>>> [hidden email]
>>>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>>>
>>>>>>>>
>>>
>>>
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS and Authorize.net error

BJ Freeman
In reply to this post by Vince Clark
seems to be lost
this is a resend.

there is a code change in the trunk
in the commit log New Revision: 585788



Vince M. Clark sent the following on 11/27/2007 11:59 AM:

> OK I found some better log information that reveals the real source of the problem:
>
> [ AIMPaymentServices.java:371:INFO ] Could not complete Authorize.Net transaction: org.ofbiz.base.util.HttpClientException: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found)
>
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>
> ----- Original Message -----
> From: "Vince M. Clark" <[hidden email]>
> To: [hidden email], "Jacques Le Roux" <[hidden email]>
> Sent: Tuesday, November 27, 2007 12:44:12 PM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> This error is not isolated to POS. I can reproduce thru ordermgr. I have checked payment.properties and also tested with a payment.properties file that is in another instance that works. That instance is based on release branch 4.0 and works fine. The instance I am having trouble with is based on trunk rev 598739.
>
> Is there anything else I could be missing from a configuration perspective? The Auth.net services are part of the build from trunk right? I don't have to include any other jars or change build.xml settings?
>
> It should be very straightforward.
> Checkout
> Build
> Edit payment.properties with valid test account (or real account)
> Add payment methods to store
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> [hidden email]
> (303) 493-6723
>
> ----- Original Message -----
> From: "Jacques Le Roux" <[hidden email]>
> To: [hidden email]
> Sent: Monday, November 26, 2007 4:17:44 AM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> Sorry BJ, I was not clear,
>
> I meant a decent hour to reload. It's delicate to reload for a change in a properties file (sometimes some translations need
> amendments) when the server is busy (most of the time day horus), and you have to wait a better hour for that (last evening or
> morning first hours)
>
> Jacquer
>
> De : "BJ Freeman" <[hidden email]>
>> not sure why an hour to re-launch, unless a system with not much memory
>> and sub 350mhz cpu.
>> Mine relauch is about 10-45 seconds
>>
>> Jacques Le Roux sent the following on 11/25/2007 2:04 PM:
>>> De : "skip@thedevers" <[hidden email]>
>>>> Developers have for ever looked for ways to make their lives easier and it
>>>> is my view that we must avoid this when the benefit is small and it adds
>>>> overhead. Adding a reload properties parameter will add overhead and
>>>> additional work and the benefits are dubious.
>>>>
>>>> In production, this will never or only very rarely be used and its benefit
>>>> does not justify the work in my opinion.
>>>>
>>>> In developement, there is some limited benefit, but if each of us looks back
>>>> and counts the number of times we had to stop and restart the server to get
>>>> a changed property to reload, I expect that the answer will be rarely.
>>>>
>>>> Skip
>>> I saw it in some cases in production too. But I agree that the overload does not worth the lazy benefit (actually it was more
>>> because you need to wait a better hour to relaunch ;o)
>>> If somebody see a benefit during development please feel free to express yourself, otherwise sorry for the disturbance and just
>>> forget it (and the burden of changes)...
>>>
>>> Jacques
>>>
>>>> -----Original Message-----
>>>> From: Jacques Le Roux [mailto:[hidden email]]
>>>> Sent: Sunday, November 25, 2007 1:13 PM
>>>> To: [hidden email]
>>>> Subject: Re: POS and Authorize.net error
>>>>
>>>>
>>>> De : "Scott Gray" <[hidden email]>
>>>>> Just to confirm, I had a look and it's cached just like all the others
>>>> To be clear, of course I meant this (parametrised with a default value in
>>>> favor of development) not only for this parameters but for
>>>> properties files in general.
>>>> I would like to have opinions about that before opening a Jira issue. I
>>>> wonder if this has not be thought about before...
>>>>
>>>> Jacques
>>>>
>>>>> Regards
>>>>> Scott
>>>>>
>>>>> On 26/11/2007, Jacques Le Roux <[hidden email]> wrote:
>>>>>> De : "BJ Freeman" <[hidden email]>
>>>>>>
>>>>>>
>>>>>>> now I have eat my words
>>>>>>> if(configStr == null) {
>>>>>>> configStr = "payment.properties";
>>>>>>> }
>>>>>>> so it is read only once.
>>>>>>>
>>>>>>> sorry. In my codes for such drivers I don't do this.
>>>>>> Yes faster but implies to reload at each changes in properties. Seems to
>>>>>> be production oriented, could be parametrised with a
>>>>>> default in favor of development, ie not have to reload (easy to say, did
>>>>>> not look at code ;o)
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>> BJ Freeman sent the following on 11/25/2007 6:55 AM:
>>>>>>>> well now I have to and dig deeper.
>>>>>>>> :)
>>>>>>>> the ccAuth does call the properties load
>>>>>>>> Properties props = buildAIMProperties(context);
>>>>>>>> so this is done everytime ccAuth is called.
>>>>>>>> but there maybe a mechanism that I am not aware of that caches them.
>>>>>>>> I am aware that most properties are called once upon load of a class
>>>>>>>> but my knowledge stops there.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Scott Gray sent the following on 11/25/2007 12:35 AM:
>>>>>>>>> BJ, I don't believe that is correct, aren't properties cached so
>>>> that
>>>>>> the
>>>>>>>>> file is read only once? You usually need to restart OFBiz for
>>>>>> property
>>>>>>>>> changes to take effect.
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Scott
>>>>>>>>>
>>>>>>>>> On 25/11/2007, BJ Freeman <[hidden email]> wrote:
>>>>>>>>>> Properties are read each time a transaction is sent.
>>>>>>>>>> No build is necessary for properties.
>>>>>>>>>> buildAIMProperties
>>>>>>>>>> is called each transaction
>>>>>>>>>> that would be first place to start.
>>>>>>>>>> I usually build a separate class to send the props for debug info.
>>>>>>>>>> looks like the place to intercept is
>>>>>>>>>> right after buildAuthTransaction
>>>>>>>>>>
>>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 3:00 PM:
>>>>>>>>>>> payment.properties has been configured but I will triple check
>>>> it.
>>>>>> I
>>>>>>>>>> agree that the null pointer suggests missing information.
>>>>>>>>>>> properties files are read on startup, right? It doesn't require a
>>>>>> build
>>>>>>>>>> does it?
>>>>>>>>>>> Vince Clark
>>>>>>>>>>> Global Era
>>>>>>>>>>> The Freedom of Open Source
>>>>>>>>>>> [hidden email]
>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>
>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>>>>>> To: [hidden email]
>>>>>>>>>>> Sent: Saturday, November 24, 2007 4:05:08 PM (GMT-0700)
>>>>>> America/Denver
>>>>>>>>>>> Subject: Re: POS and Authorize.net error
>>>>>>>>>>>
>>>>>>>>>>> actually if you look at the code.
>>>>>>>>>>> it does not use any Authorize.net classes.
>>>>>>>>>>> it is a complete re-write right down sending the data and
>>>>>> retrieving it
>>>>>>>>>>> from Authorize.net.
>>>>>>>>>>>
>>>> /applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet
>>>> /
>>>>>>>>>>> AIMPaymentServices.java -> interfaces to ofbiz
>>>>>>>>>>> AuthorizeResponse.java -> interfaces to Authorize.net
>>>>>>>>>>> it takes some configuration in the
>>>>>>>>>>> /applications/accounting/config/payment.properties
>>>>>>>>>>>
>>>>>>>>>>> since the error is a null.
>>>>>>>>>>> looks like the payment.properties probably have not be
>>>> configured.
>>>>>>>>>>> clearchris sent the following on 11/24/2007 1:20 PM:
>>>>>>>>>>>> That's a good way to go deduce the problem. You might also
>>>>>> consider
>>>>>>>>>> putting
>>>>>>>>>>>> in code to output the error that is coming back from the third
>>>>>> party
>>>>>>>>>>>> Authorize.Net classes. Ofbiz doesn't generally relay error
>>>>>> messages
>>>>>>>>>> from
>>>>>>>>>>>> outside the immediate ofbiz code base.
>>>>>>>>>>>>
>>>>>>>>>>>> Chris
>>>>>>>>>>>>
>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>> From: BJ Freeman [mailto:[hidden email]]
>>>>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>>>>>>>>> To: [hidden email]
>>>>>>>>>>>> Subject: Re: POS and Authorize.net error
>>>>>>>>>>>>
>>>>>>>>>>>> I would put some debug code in processCard
>>>>>>>>>>>> to see what is being sent in the properties.
>>>>>>>>>>>> or you can work you way thru
>>>>>>>>>>>> ccAuthCapture.
>>>>>>>>>>>>
>>>>>>>>>>>> buildAIMProperties
>>>>>>>>>>>> is where reading in then properties file.
>>>>>>>>>>>> might check you have the correct info there.
>>>>>>>>>>>> /applications/accounting/config/payment.properties
>>>>>>>>>>>>
>>>>>>>>>>>> Vince M. Clark sent the following on 11/24/2007 8:21 AM:
>>>>>>>>>>>>> We use auth.net all the time thru eCommerce. Having problems
>>>> with
>>>>>> POS.
>>>>>>>>>>>>> Huge stack trace. Here is part of it:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2007-11-24 15:53:53,531 (Thread-148) [ ServiceDispatcher.java
>>>>>>>>>> :527:ERROR]
>>>>>>>>>>>>> ---- exception report
>>>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>>>> Could not commit transaction for service [authOrderPayments]
>>>> call
>>>>>>>>>>>>> Exception:
>>>>>> org.ofbiz.entity.transaction.GenericTransactionException
>>>>>>>>>>>>> Message: Roll back error, could not commit transaction, was
>>>>>> rolled
>>>>>>>>>> back
>>>>>>>>>>>> instead because of: Error in Service
>>>> [authOrderPaymentPreference]:
>>>>>>>>>> Error
>>>>>>>>>>>> processing payment authorization:
>>>>>> org.ofbiz.base.util.GeneralException:
>>>>>>>>>>>> Problems invoking payment processor! Will retry later. Order ID
>>>>>> is:
>>>>>>>>>>>> [FCCO10020 (Service target threw an unexpected exception (null))
>>>>>>>>>>>>> ---- stack trace
>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> org.ofbiz.entity.transaction.GenericTransactionException: Roll
>>>>>> back
>>>>>>>>>> error,
>>>>>>>>>>>> could not commit transaction, was rolled back instead because
>>>> of:
>>>>>> Error
>>>>>>>>>> in
>>>>>>>>>>>> Service [authOrderPaymentPreference]: Error processing payment
>>>>>>>>>>>> authorization: org.ofbiz.base.util.GeneralException: Problems
>>>>>> invoking
>>>>>>>>>>>> payment processor! Will retry later. Order ID is: [FCCO10020
>>>>>> (Service
>>>>>>>>>> target
>>>>>>>>>>>> threw an unexpected exception (null))
>>>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>>>>>>>>> TransactionUtil.java:208
>>>>>>>>>>>> )
>>>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.commit(
>>>>>>>>>> TransactionUtil.java:172
>>>>>>>>>>>> )
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :524)
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :208)
>>>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>>>> GenericDispatcher.java
>>>>>>>>>> :150)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:954)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>
>>>>> --------------------------------------------------------------------------
>>>> --
>>>>>>>>>>>> ----
>>>>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PosTransaction.java
>>>>>> :626:ERROR]
>>>>>>>>>>>>> ---- exception report
>>>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>>>>>>>>> Message: Error in authOrderPayments service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>>> ---- stack trace
>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
>>>> authOrderPayments
>>>>>>>>>> service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:958)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>>>>>> transaction
>>>>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null))
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :531)
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :208)
>>>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>>>> GenericDispatcher.java
>>>>>>>>>> :150)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:954)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>
>>>>> --------------------------------------------------------------------------
>>>> --
>>>>>>>>>>>> ----
>>>>>>>>>>>>> 2007-11-24 15:53:53,562 (Thread-148) [ PaymentEvents.java
>>>>>> :307:ERROR]
>>>>>>>>>>>>> ---- exception report
>>>>>>>>>>>> ----------------------------------------------------------
>>>>>>>>>>>>> Error in authOrderPayments service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>>> Exception: org.ofbiz.base.util.GeneralException
>>>>>>>>>>>>> Message: Error in authOrderPayments service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>>> ---- stack trace
>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Error in
>>>> authOrderPayments
>>>>>>>>>> service:
>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>> transaction
>>>>>>>>>> for
>>>>>>>>>>>> service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)) (Could not commit transaction for
>>>>>> service
>>>>>>>>>>>> [authOrderPayments] call: Roll back error, could not commit
>>>>>>>>>> transaction, was
>>>>>>>>>>>> rolled back instead because of: Error in Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null)))
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:958)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>> org.ofbiz.service.GenericServiceException: Could not commit
>>>>>>>>>> transaction
>>>>>>>>>>>> for service [authOrderPayments] call: Roll back error, could not
>>>>>> commit
>>>>>>>>>>>> transaction, was rolled back instead because of: Error in
>>>> Service
>>>>>>>>>>>> [authOrderPaymentPreference]: Error processing payment
>>>>>> authorization:
>>>>>>>>>>>> org.ofbiz.base.util.GeneralException: Problems invoking payment
>>>>>>>>>> processor!
>>>>>>>>>>>> Will retry later. Order ID is: [FCCO10020 (Service target threw
>>>> an
>>>>>>>>>>>> unexpected exception (null))
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :531)
>>>>>>>>>>>>> org.ofbiz.service.ServiceDispatcher.runSync(
>>>>>> ServiceDispatcher.java
>>>>>>>>>> :208)
>>>>>>>>>>>>> org.ofbiz.service.GenericDispatcher.runSync(
>>>>>> GenericDispatcher.java
>>>>>>>>>> :150)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:954)
>>>>>>>>>>>> org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(
>>>>>>>>>> CheckOutHelper.ja
>>>>>>>>>>>> va:860)
>>>> org.ofbiz.pos.PosTransaction.processSale(PosTransaction.java:624)
>>>> org.ofbiz.pos.event.PaymentEvents.processSale(PaymentEvents.java
>>>>>> :304)
>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>>>
>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>>>>> NativeMethodAccessorImpl.java:39
>>>>>>>>>>>> )
>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
>>>>>>>>>> (DelegatingMethodAccessorImpl
>>>>>>>>>>>> java:25)
>>>>>>>>>>>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invoke(
>>>>>> ButtonEventConfig.java
>>>>>>>>>> :208)
>>>>>>>>>>>> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(
>>>>>>>>>> ButtonEventConfig.j
>>>>>>>>>>>> ava:105)
>>>> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
>>>>>>>>>>>>> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
>>>>>>>>>>>>> java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>
>>>>> --------------------------------------------------------------------------
>>>> --
>>>>>>>>>>>> ----
>>>>>>>>>>>>> Vince Clark
>>>>>>>>>>>>> Global Era
>>>>>>>>>>>>> The Freedom of Open Source
>>>>>>>>>>>>> [hidden email]
>>>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>>>
>>>>>>>>
>>>
>>>
>>>
>
>

12