You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Vince M. Clark" <vc...@globalera.com> on 2007/11/24 17:21:06 UTC
POS and Authorize.net error
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
vclark@globalera.com
(303) 493-6723
Re: POS and Authorize.net error
Posted by JohnBrown <mi...@softasap.net>.
Hi Vince,
Thank you for update.
Vince Clark wrote:
>
> We have gone thru the exercise of generating our own certs, but haven't
> tried changing the trustAny variable to false.
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> vclark@globalera.com
> (303) 493-6723
>
> ----- Original Message -----
> From: "JohnBrown" <mi...@softasap.net>
> To: user@ofbiz.apache.org
> Sent: Thursday, February 21, 2008 9:34:31 AM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
>
> Hi I use rev.610611 it is a month old or so. And I think I had
> trustAny=false
> there. Well, if change it to "true" it connected to gateway etc. as it was
> in your case. I was just wondering if you got it working with either
> authority or self signed cert. In other words with trustAny = false value.
>
>
> Vince Clark wrote:
>>
>> What rev are you running. When I ran into this error I changed
>> HttpClientException.java and set trustAny=true. After I changed that I
>> noticed that the same change was also committed to trunk. This was a
>> couple of months ago. If you want to keep the trusted cert restriction
>> you
>> will need to go thru the steps on the docs site to generate your own cert
>> and add it to your keystore. I think that information is in the technical
>> production setup guide. I don't think it is absolutely necessary to have
>> the cert signed by an authority but I'm just a hack on this topic, not an
>> expert.
>>
>> Vince Clark
>> Global Era
>> The Freedom of Open Source
>> vclark@globalera.com
>> (303) 493-6723
>>
>> ----- Original Message -----
>> From: "JohnBrown" <mi...@softasap.net>
>> To: user@ofbiz.apache.org
>> Sent: Thursday, February 21, 2008 7:09:38 AM (GMT-0700) America/Denver
>> Subject: Re: POS and Authorize.net error
>>
>>
>> Hi Vince,
>>
>> Had you any luck to get it working with signed CA there after? Please,
>> let
>> me know how it has ended up. Thanks.
>>
>>
>> Vince Clark wrote:
>>>
>>> Here is what I have found. The trusted certificate error comes from
>>> HttpClient.java/HttpClientException.java.
>>>
>>> In HttpClient.java I changed trustAny from trustAny=false to
>>> trustAny=true.
>>>
>>> This gets us by for testing with Authorize.net test servers. Not sure if
>>> it will fly in production without a "trusted" certificate, or whether
>>> that
>>> cert must be signed by a CA. Anyone?
>>>
>>>
>>> ----- Original Message -----
>>> From: "BJ Freeman" <bj...@free-man.net>
>>> To: user@ofbiz.apache.org
>>> Sent: Tuesday, November 27, 2007 4:59:21 PM (GMT-0700) America/Denver
>>> Subject: Re: POS and Authorize.net error
>>>
>>> Oh the ver 4.0 has the cvv code but the trunk does not.
>>>
>>>
>>> BJ Freeman sent the following on 11/27/2007 3:57 PM:
>>>> there are differences between the one in the ver 4.0 and trunk
>>>> both were updated about the same day. .
>>>> the trunk one checks further to see if the test property is null
>>>> if it is then it returns test is true.
>>>> where ver 4.0 looks only for a TRUE to mark it as a test.
>>>> if null will allow the processes to run as non test.
>>>>
>>>> David E Jones sent the following on 11/27/2007 2:58 PM:
>>>>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>>>>
>>>>>> No. Once I realized I had a cert issue I started reading up on
>>>>>> related
>>>>>> ML postings and the Technical Production Setup Guide.
>>>>>>
>>>>>> In the past we were running on OpenTaps when we setup Authorize.net.
>>>>>> I
>>>>>> guess all the SSL config is already done for you in Open Taps because
>>>>>> we never had to mess with it.
>>>>> Actually I think this is a new feature, and one recently required by
>>>>> Authorize.net because they had some cut-off date after which they
>>>>> would
>>>>> not process transactions without an encrypted connection.
>>>>>
>>>>> -David
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15612168.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15613826.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15618715.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
We have gone thru the exercise of generating our own certs, but haven't tried changing the trustAny variable to false.
Vince Clark
Global Era
The Freedom of Open Source
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "JohnBrown" <mi...@softasap.net>
To: user@ofbiz.apache.org
Sent: Thursday, February 21, 2008 9:34:31 AM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error
Hi I use rev.610611 it is a month old or so. And I think I had trustAny=false
there. Well, if change it to "true" it connected to gateway etc. as it was
in your case. I was just wondering if you got it working with either
authority or self signed cert. In other words with trustAny = false value.
Vince Clark wrote:
>
> What rev are you running. When I ran into this error I changed
> HttpClientException.java and set trustAny=true. After I changed that I
> noticed that the same change was also committed to trunk. This was a
> couple of months ago. If you want to keep the trusted cert restriction you
> will need to go thru the steps on the docs site to generate your own cert
> and add it to your keystore. I think that information is in the technical
> production setup guide. I don't think it is absolutely necessary to have
> the cert signed by an authority but I'm just a hack on this topic, not an
> expert.
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> vclark@globalera.com
> (303) 493-6723
>
> ----- Original Message -----
> From: "JohnBrown" <mi...@softasap.net>
> To: user@ofbiz.apache.org
> Sent: Thursday, February 21, 2008 7:09:38 AM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
>
> Hi Vince,
>
> Had you any luck to get it working with signed CA there after? Please, let
> me know how it has ended up. Thanks.
>
>
> Vince Clark wrote:
>>
>> Here is what I have found. The trusted certificate error comes from
>> HttpClient.java/HttpClientException.java.
>>
>> In HttpClient.java I changed trustAny from trustAny=false to
>> trustAny=true.
>>
>> This gets us by for testing with Authorize.net test servers. Not sure if
>> it will fly in production without a "trusted" certificate, or whether
>> that
>> cert must be signed by a CA. Anyone?
>>
>>
>> ----- Original Message -----
>> From: "BJ Freeman" <bj...@free-man.net>
>> To: user@ofbiz.apache.org
>> Sent: Tuesday, November 27, 2007 4:59:21 PM (GMT-0700) America/Denver
>> Subject: Re: POS and Authorize.net error
>>
>> Oh the ver 4.0 has the cvv code but the trunk does not.
>>
>>
>> BJ Freeman sent the following on 11/27/2007 3:57 PM:
>>> there are differences between the one in the ver 4.0 and trunk
>>> both were updated about the same day. .
>>> the trunk one checks further to see if the test property is null
>>> if it is then it returns test is true.
>>> where ver 4.0 looks only for a TRUE to mark it as a test.
>>> if null will allow the processes to run as non test.
>>>
>>> David E Jones sent the following on 11/27/2007 2:58 PM:
>>>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>>>
>>>>> No. Once I realized I had a cert issue I started reading up on related
>>>>> ML postings and the Technical Production Setup Guide.
>>>>>
>>>>> In the past we were running on OpenTaps when we setup Authorize.net. I
>>>>> guess all the SSL config is already done for you in Open Taps because
>>>>> we never had to mess with it.
>>>> Actually I think this is a new feature, and one recently required by
>>>> Authorize.net because they had some cut-off date after which they would
>>>> not process transactions without an encrypted connection.
>>>>
>>>> -David
>>>>
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15612168.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15613826.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: POS and Authorize.net error
Posted by JohnBrown <mi...@softasap.net>.
Hi I use rev.610611 it is a month old or so. And I think I had trustAny=false
there. Well, if change it to "true" it connected to gateway etc. as it was
in your case. I was just wondering if you got it working with either
authority or self signed cert. In other words with trustAny = false value.
Vince Clark wrote:
>
> What rev are you running. When I ran into this error I changed
> HttpClientException.java and set trustAny=true. After I changed that I
> noticed that the same change was also committed to trunk. This was a
> couple of months ago. If you want to keep the trusted cert restriction you
> will need to go thru the steps on the docs site to generate your own cert
> and add it to your keystore. I think that information is in the technical
> production setup guide. I don't think it is absolutely necessary to have
> the cert signed by an authority but I'm just a hack on this topic, not an
> expert.
>
> Vince Clark
> Global Era
> The Freedom of Open Source
> vclark@globalera.com
> (303) 493-6723
>
> ----- Original Message -----
> From: "JohnBrown" <mi...@softasap.net>
> To: user@ofbiz.apache.org
> Sent: Thursday, February 21, 2008 7:09:38 AM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
>
> Hi Vince,
>
> Had you any luck to get it working with signed CA there after? Please, let
> me know how it has ended up. Thanks.
>
>
> Vince Clark wrote:
>>
>> Here is what I have found. The trusted certificate error comes from
>> HttpClient.java/HttpClientException.java.
>>
>> In HttpClient.java I changed trustAny from trustAny=false to
>> trustAny=true.
>>
>> This gets us by for testing with Authorize.net test servers. Not sure if
>> it will fly in production without a "trusted" certificate, or whether
>> that
>> cert must be signed by a CA. Anyone?
>>
>>
>> ----- Original Message -----
>> From: "BJ Freeman" <bj...@free-man.net>
>> To: user@ofbiz.apache.org
>> Sent: Tuesday, November 27, 2007 4:59:21 PM (GMT-0700) America/Denver
>> Subject: Re: POS and Authorize.net error
>>
>> Oh the ver 4.0 has the cvv code but the trunk does not.
>>
>>
>> BJ Freeman sent the following on 11/27/2007 3:57 PM:
>>> there are differences between the one in the ver 4.0 and trunk
>>> both were updated about the same day. .
>>> the trunk one checks further to see if the test property is null
>>> if it is then it returns test is true.
>>> where ver 4.0 looks only for a TRUE to mark it as a test.
>>> if null will allow the processes to run as non test.
>>>
>>> David E Jones sent the following on 11/27/2007 2:58 PM:
>>>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>>>
>>>>> No. Once I realized I had a cert issue I started reading up on related
>>>>> ML postings and the Technical Production Setup Guide.
>>>>>
>>>>> In the past we were running on OpenTaps when we setup Authorize.net. I
>>>>> guess all the SSL config is already done for you in Open Taps because
>>>>> we never had to mess with it.
>>>> Actually I think this is a new feature, and one recently required by
>>>> Authorize.net because they had some cut-off date after which they would
>>>> not process transactions without an encrypted connection.
>>>>
>>>> -David
>>>>
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15612168.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15613826.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
What rev are you running. When I ran into this error I changed HttpClientException.java and set trustAny=true. After I changed that I noticed that the same change was also committed to trunk. This was a couple of months ago. If you want to keep the trusted cert restriction you will need to go thru the steps on the docs site to generate your own cert and add it to your keystore. I think that information is in the technical production setup guide. I don't think it is absolutely necessary to have the cert signed by an authority but I'm just a hack on this topic, not an expert.
Vince Clark
Global Era
The Freedom of Open Source
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "JohnBrown" <mi...@softasap.net>
To: user@ofbiz.apache.org
Sent: Thursday, February 21, 2008 7:09:38 AM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error
Hi Vince,
Had you any luck to get it working with signed CA there after? Please, let
me know how it has ended up. Thanks.
Vince Clark wrote:
>
> Here is what I have found. The trusted certificate error comes from
> HttpClient.java/HttpClientException.java.
>
> In HttpClient.java I changed trustAny from trustAny=false to
> trustAny=true.
>
> This gets us by for testing with Authorize.net test servers. Not sure if
> it will fly in production without a "trusted" certificate, or whether that
> cert must be signed by a CA. Anyone?
>
>
> ----- Original Message -----
> From: "BJ Freeman" <bj...@free-man.net>
> To: user@ofbiz.apache.org
> Sent: Tuesday, November 27, 2007 4:59:21 PM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> Oh the ver 4.0 has the cvv code but the trunk does not.
>
>
> BJ Freeman sent the following on 11/27/2007 3:57 PM:
>> there are differences between the one in the ver 4.0 and trunk
>> both were updated about the same day. .
>> the trunk one checks further to see if the test property is null
>> if it is then it returns test is true.
>> where ver 4.0 looks only for a TRUE to mark it as a test.
>> if null will allow the processes to run as non test.
>>
>> David E Jones sent the following on 11/27/2007 2:58 PM:
>>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>>
>>>> No. Once I realized I had a cert issue I started reading up on related
>>>> ML postings and the Technical Production Setup Guide.
>>>>
>>>> In the past we were running on OpenTaps when we setup Authorize.net. I
>>>> guess all the SSL config is already done for you in Open Taps because
>>>> we never had to mess with it.
>>> Actually I think this is a new feature, and one recently required by
>>> Authorize.net because they had some cut-off date after which they would
>>> not process transactions without an encrypted connection.
>>>
>>> -David
>>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15612168.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: POS and Authorize.net error
Posted by JohnBrown <mi...@softasap.net>.
Hi Vince,
Had you any luck to get it working with signed CA there after? Please, let
me know how it has ended up. Thanks.
Vince Clark wrote:
>
> Here is what I have found. The trusted certificate error comes from
> HttpClient.java/HttpClientException.java.
>
> In HttpClient.java I changed trustAny from trustAny=false to
> trustAny=true.
>
> This gets us by for testing with Authorize.net test servers. Not sure if
> it will fly in production without a "trusted" certificate, or whether that
> cert must be signed by a CA. Anyone?
>
>
> ----- Original Message -----
> From: "BJ Freeman" <bj...@free-man.net>
> To: user@ofbiz.apache.org
> Sent: Tuesday, November 27, 2007 4:59:21 PM (GMT-0700) America/Denver
> Subject: Re: POS and Authorize.net error
>
> Oh the ver 4.0 has the cvv code but the trunk does not.
>
>
> BJ Freeman sent the following on 11/27/2007 3:57 PM:
>> there are differences between the one in the ver 4.0 and trunk
>> both were updated about the same day. .
>> the trunk one checks further to see if the test property is null
>> if it is then it returns test is true.
>> where ver 4.0 looks only for a TRUE to mark it as a test.
>> if null will allow the processes to run as non test.
>>
>> David E Jones sent the following on 11/27/2007 2:58 PM:
>>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>>
>>>> No. Once I realized I had a cert issue I started reading up on related
>>>> ML postings and the Technical Production Setup Guide.
>>>>
>>>> In the past we were running on OpenTaps when we setup Authorize.net. I
>>>> guess all the SSL config is already done for you in Open Taps because
>>>> we never had to mess with it.
>>> Actually I think this is a new feature, and one recently required by
>>> Authorize.net because they had some cut-off date after which they would
>>> not process transactions without an encrypted connection.
>>>
>>> -David
>>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/POS-and-Authorize.net-error-tp13926360p15612168.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
Here is what I have found. The trusted certificate error comes from HttpClient.java/HttpClientException.java.
In HttpClient.java I changed trustAny from trustAny=false to trustAny=true.
This gets us by for testing with Authorize.net test servers. Not sure if it will fly in production without a "trusted" certificate, or whether that cert must be signed by a CA. Anyone?
----- Original Message -----
From: "BJ Freeman" <bj...@free-man.net>
To: user@ofbiz.apache.org
Sent: Tuesday, November 27, 2007 4:59:21 PM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error
Oh the ver 4.0 has the cvv code but the trunk does not.
BJ Freeman sent the following on 11/27/2007 3:57 PM:
> there are differences between the one in the ver 4.0 and trunk
> both were updated about the same day. .
> the trunk one checks further to see if the test property is null
> if it is then it returns test is true.
> where ver 4.0 looks only for a TRUE to mark it as a test.
> if null will allow the processes to run as non test.
>
> David E Jones sent the following on 11/27/2007 2:58 PM:
>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>
>>> No. Once I realized I had a cert issue I started reading up on related
>>> ML postings and the Technical Production Setup Guide.
>>>
>>> In the past we were running on OpenTaps when we setup Authorize.net. I
>>> guess all the SSL config is already done for you in Open Taps because
>>> we never had to mess with it.
>> Actually I think this is a new feature, and one recently required by
>> Authorize.net because they had some cut-off date after which they would
>> not process transactions without an encrypted connection.
>>
>> -David
>>
>
>
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
Oh the ver 4.0 has the cvv code but the trunk does not.
BJ Freeman sent the following on 11/27/2007 3:57 PM:
> there are differences between the one in the ver 4.0 and trunk
> both were updated about the same day. .
> the trunk one checks further to see if the test property is null
> if it is then it returns test is true.
> where ver 4.0 looks only for a TRUE to mark it as a test.
> if null will allow the processes to run as non test.
>
> David E Jones sent the following on 11/27/2007 2:58 PM:
>> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>>
>>> No. Once I realized I had a cert issue I started reading up on related
>>> ML postings and the Technical Production Setup Guide.
>>>
>>> In the past we were running on OpenTaps when we setup Authorize.net. I
>>> guess all the SSL config is already done for you in Open Taps because
>>> we never had to mess with it.
>> Actually I think this is a new feature, and one recently required by
>> Authorize.net because they had some cut-off date after which they would
>> not process transactions without an encrypted connection.
>>
>> -David
>>
>
>
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
there are differences between the one in the ver 4.0 and trunk
both were updated about the same day. .
the trunk one checks further to see if the test property is null
if it is then it returns test is true.
where ver 4.0 looks only for a TRUE to mark it as a test.
if null will allow the processes to run as non test.
David E Jones sent the following on 11/27/2007 2:58 PM:
>
> On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
>
>> No. Once I realized I had a cert issue I started reading up on related
>> ML postings and the Technical Production Setup Guide.
>>
>> In the past we were running on OpenTaps when we setup Authorize.net. I
>> guess all the SSL config is already done for you in Open Taps because
>> we never had to mess with it.
>
> Actually I think this is a new feature, and one recently required by
> Authorize.net because they had some cut-off date after which they would
> not process transactions without an encrypted connection.
>
> -David
>
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
Test transactions still work in an old instance of Open Taps.
Vince Clark
Global Era
The Freedom of Open Source
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "David E Jones" <jo...@hotwaxmedia.com>
To: user@ofbiz.apache.org
Sent: Tuesday, November 27, 2007 3:58:57 PM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error
On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
> No. Once I realized I had a cert issue I started reading up on
> related ML postings and the Technical Production Setup Guide.
>
> In the past we were running on OpenTaps when we setup Authorize.net.
> I guess all the SSL config is already done for you in Open Taps
> because we never had to mess with it.
Actually I think this is a new feature, and one recently required by
Authorize.net because they had some cut-off date after which they
would not process transactions without an encrypted connection.
-David
Re: POS and Authorize.net error
Posted by David E Jones <jo...@hotwaxmedia.com>.
On Nov 27, 2007, at 3:38 PM, Vince M. Clark wrote:
> No. Once I realized I had a cert issue I started reading up on
> related ML postings and the Technical Production Setup Guide.
>
> In the past we were running on OpenTaps when we setup Authorize.net.
> I guess all the SSL config is already done for you in Open Taps
> because we never had to mess with it.
Actually I think this is a new feature, and one recently required by
Authorize.net because they had some cut-off date after which they
would not process transactions without an encrypted connection.
-David
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
No. Once I realized I had a cert issue I started reading up on related ML postings and the Technical Production Setup Guide.
In the past we were running on OpenTaps when we setup Authorize.net. I guess all the SSL config is already done for you in Open Taps because we never had to mess with it.
I'm going to follow the instructions in the setup guide and see if I can get thru it. At first glance it appears there may be some detail missing so I'm sure I'll have more questions.
Vince Clark
Global Era
The Freedom of Open Source
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "BJ Freeman" <bj...@free-man.net>
To: user@ofbiz.apache.org
Sent: Tuesday, November 27, 2007 3:35:09 PM (GMT-0700) America/Denver
Subject: Re: POS and Authorize.net error
httpClient.setClientCertificateAlias("AUTHORIZE_NET");
has this been added to the keystore?
Vince M. Clark sent the following on 11/27/2007 2:05 PM:
> The error I'm getting is "No trusted certificate found." I don't see anything in the commit you referenced that has to do with certs.
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
httpClient.setClientCertificateAlias("AUTHORIZE_NET");
has this been added to the keystore?
Vince M. Clark sent the following on 11/27/2007 2:05 PM:
> The error I'm getting is "No trusted certificate found." I don't see anything in the commit you referenced that has to do with certs.
>
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
The error I'm getting is "No trusted certificate found." I don't see anything in the commit you referenced that has to do with certs.
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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
> vclark@globalera.com
> (303) 493-6723
>
> ----- Original Message -----
> From: "Vince M. Clark" <vc...@globalera.com>
> To: user@ofbiz.apache.org, "Jacques Le Roux" <ja...@les7arts.com>
> 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
> vclark@globalera.com
> (303) 493-6723
>
> ----- Original Message -----
> From: "Jacques Le Roux" <ja...@les7arts.com>
> To: user@ofbiz.apache.org
> 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" <bj...@free-man.net>
>> 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" <sk...@thedevers.org>
>>>> 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:jacques.le.roux@les7arts.com]
>>>> Sent: Sunday, November 25, 2007 1:13 PM
>>>> To: user@ofbiz.apache.org
>>>> Subject: Re: POS and Authorize.net error
>>>>
>>>>
>>>> De : "Scott Gray" <le...@gmail.com>
>>>>> 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 <ja...@les7arts.com> wrote:
>>>>>> De : "BJ Freeman" <bj...@free-man.net>
>>>>>>
>>>>>>
>>>>>>> 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 <bj...@free-man.net> 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
>>>>>>>>>>> vclark@globalera.com
>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>
>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>> From: "BJ Freeman" <bj...@free-man.net>
>>>>>>>>>>> To: user@ofbiz.apache.org
>>>>>>>>>>> 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:bjfree@free-man.net]
>>>>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>>>>>>>>> To: user@ofbiz.apache.org
>>>>>>>>>>>> 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
>>>>>>>>>>>>> vclark@globalera.com
>>>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>>>
>>>>>>>>
>>>
>>>
>>>
>
>
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
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
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "Vince M. Clark" <vc...@globalera.com>
To: user@ofbiz.apache.org, "Jacques Le Roux" <ja...@les7arts.com>
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
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "Jacques Le Roux" <ja...@les7arts.com>
To: user@ofbiz.apache.org
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" <bj...@free-man.net>
> 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" <sk...@thedevers.org>
> >> 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:jacques.le.roux@les7arts.com]
> >> Sent: Sunday, November 25, 2007 1:13 PM
> >> To: user@ofbiz.apache.org
> >> Subject: Re: POS and Authorize.net error
> >>
> >>
> >> De : "Scott Gray" <le...@gmail.com>
> >>> 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 <ja...@les7arts.com> wrote:
> >>>> De : "BJ Freeman" <bj...@free-man.net>
> >>>>
> >>>>
> >>>>> 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 <bj...@free-man.net> 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
> >>>>>>>>> vclark@globalera.com
> >>>>>>>>> (303) 493-6723
> >>>>>>>>>
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "BJ Freeman" <bj...@free-man.net>
> >>>>>>>>> To: user@ofbiz.apache.org
> >>>>>>>>> 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:bjfree@free-man.net]
> >>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>>>>>>> To: user@ofbiz.apache.org
> >>>>>>>>>> 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
> >>>>>>>>>>> vclark@globalera.com
> >>>>>>>>>>> (303) 493-6723
> >>>>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> >
> >
> >
> >
>
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
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
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "Jacques Le Roux" <ja...@les7arts.com>
To: user@ofbiz.apache.org
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" <bj...@free-man.net>
> 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" <sk...@thedevers.org>
> >> 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:jacques.le.roux@les7arts.com]
> >> Sent: Sunday, November 25, 2007 1:13 PM
> >> To: user@ofbiz.apache.org
> >> Subject: Re: POS and Authorize.net error
> >>
> >>
> >> De : "Scott Gray" <le...@gmail.com>
> >>> 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 <ja...@les7arts.com> wrote:
> >>>> De : "BJ Freeman" <bj...@free-man.net>
> >>>>
> >>>>
> >>>>> 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 <bj...@free-man.net> 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
> >>>>>>>>> vclark@globalera.com
> >>>>>>>>> (303) 493-6723
> >>>>>>>>>
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "BJ Freeman" <bj...@free-man.net>
> >>>>>>>>> To: user@ofbiz.apache.org
> >>>>>>>>> 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:bjfree@free-man.net]
> >>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>>>>>>> To: user@ofbiz.apache.org
> >>>>>>>>>> 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
> >>>>>>>>>>> vclark@globalera.com
> >>>>>>>>>>> (303) 493-6723
> >>>>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> >
> >
> >
> >
>
Re: POS and Authorize.net error
Posted by Jacques Le Roux <ja...@les7arts.com>.
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" <bj...@free-man.net>
> 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" <sk...@thedevers.org>
> >> 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:jacques.le.roux@les7arts.com]
> >> Sent: Sunday, November 25, 2007 1:13 PM
> >> To: user@ofbiz.apache.org
> >> Subject: Re: POS and Authorize.net error
> >>
> >>
> >> De : "Scott Gray" <le...@gmail.com>
> >>> 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 <ja...@les7arts.com> wrote:
> >>>> De : "BJ Freeman" <bj...@free-man.net>
> >>>>
> >>>>
> >>>>> 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 <bj...@free-man.net> 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
> >>>>>>>>> vclark@globalera.com
> >>>>>>>>> (303) 493-6723
> >>>>>>>>>
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "BJ Freeman" <bj...@free-man.net>
> >>>>>>>>> To: user@ofbiz.apache.org
> >>>>>>>>> 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:bjfree@free-man.net]
> >>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>>>>>>> To: user@ofbiz.apache.org
> >>>>>>>>>> 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
> >>>>>>>>>>> vclark@globalera.com
> >>>>>>>>>>> (303) 493-6723
> >>>>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> >
> >
> >
> >
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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" <sk...@thedevers.org>
>> 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:jacques.le.roux@les7arts.com]
>> Sent: Sunday, November 25, 2007 1:13 PM
>> To: user@ofbiz.apache.org
>> Subject: Re: POS and Authorize.net error
>>
>>
>> De : "Scott Gray" <le...@gmail.com>
>>> 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 <ja...@les7arts.com> wrote:
>>>> De : "BJ Freeman" <bj...@free-man.net>
>>>>
>>>>
>>>>> 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 <bj...@free-man.net> 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
>>>>>>>>> vclark@globalera.com
>>>>>>>>> (303) 493-6723
>>>>>>>>>
>>>>>>>>> ----- Original Message -----
>>>>>>>>> From: "BJ Freeman" <bj...@free-man.net>
>>>>>>>>> To: user@ofbiz.apache.org
>>>>>>>>> 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:bjfree@free-man.net]
>>>>>>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>>>>>>> To: user@ofbiz.apache.org
>>>>>>>>>> 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
>>>>>>>>>>> vclark@globalera.com
>>>>>>>>>>> (303) 493-6723
>>>>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>
>
>
>
>
Re: POS and Authorize.net error
Posted by Jacques Le Roux <ja...@les7arts.com>.
De : "skip@thedevers" <sk...@thedevers.org>
> 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:jacques.le.roux@les7arts.com]
> Sent: Sunday, November 25, 2007 1:13 PM
> To: user@ofbiz.apache.org
> Subject: Re: POS and Authorize.net error
>
>
> De : "Scott Gray" <le...@gmail.com>
> > 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 <ja...@les7arts.com> wrote:
> > >
> > > De : "BJ Freeman" <bj...@free-man.net>
> > >
> > >
> > > > 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 <bj...@free-man.net> 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
> > > > >>>> vclark@globalera.com
> > > > >>>> (303) 493-6723
> > > > >>>>
> > > > >>>> ----- Original Message -----
> > > > >>>> From: "BJ Freeman" <bj...@free-man.net>
> > > > >>>> To: user@ofbiz.apache.org
> > > > >>>> 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:bjfree@free-man.net]
> > > > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > > > >>>>> To: user@ofbiz.apache.org
> > > > >>>>> 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
> > > > >>>>>> vclark@globalera.com
> > > > >>>>>> (303) 493-6723
> > > > >>>>>>
> > > > >>>>>
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>
RE: POS and Authorize.net error
Posted by "skip@thedevers" <sk...@thedevers.org>.
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:jacques.le.roux@les7arts.com]
Sent: Sunday, November 25, 2007 1:13 PM
To: user@ofbiz.apache.org
Subject: Re: POS and Authorize.net error
De : "Scott Gray" <le...@gmail.com>
> 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 <ja...@les7arts.com> wrote:
> >
> > De : "BJ Freeman" <bj...@free-man.net>
> >
> >
> > > 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 <bj...@free-man.net> 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
> > > >>>> vclark@globalera.com
> > > >>>> (303) 493-6723
> > > >>>>
> > > >>>> ----- Original Message -----
> > > >>>> From: "BJ Freeman" <bj...@free-man.net>
> > > >>>> To: user@ofbiz.apache.org
> > > >>>> 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:bjfree@free-man.net]
> > > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > > >>>>> To: user@ofbiz.apache.org
> > > >>>>> 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
> > > >>>>>> vclark@globalera.com
> > > >>>>>> (303) 493-6723
> > > >>>>>>
> > > >>>>>
> > > >
> > > >
> > > >
> > >
> >
> >
>
Re: POS and Authorize.net error
Posted by Jacques Le Roux <ja...@les7arts.com>.
De : "Scott Gray" <le...@gmail.com>
> 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 <ja...@les7arts.com> wrote:
> >
> > De : "BJ Freeman" <bj...@free-man.net>
> >
> >
> > > 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 <bj...@free-man.net> 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
> > > >>>> vclark@globalera.com
> > > >>>> (303) 493-6723
> > > >>>>
> > > >>>> ----- Original Message -----
> > > >>>> From: "BJ Freeman" <bj...@free-man.net>
> > > >>>> To: user@ofbiz.apache.org
> > > >>>> 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:bjfree@free-man.net]
> > > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > > >>>>> To: user@ofbiz.apache.org
> > > >>>>> 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
> > > >>>>>> vclark@globalera.com
> > > >>>>>> (303) 493-6723
> > > >>>>>>
> > > >>>>>
> > > >
> > > >
> > > >
> > >
> >
> >
>
Re: POS and Authorize.net error
Posted by Scott Gray <le...@gmail.com>.
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 <ja...@les7arts.com> wrote:
>
> De : "BJ Freeman" <bj...@free-man.net>
>
>
> > 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 <bj...@free-man.net> 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
> > >>>> vclark@globalera.com
> > >>>> (303) 493-6723
> > >>>>
> > >>>> ----- Original Message -----
> > >>>> From: "BJ Freeman" <bj...@free-man.net>
> > >>>> To: user@ofbiz.apache.org
> > >>>> 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:bjfree@free-man.net]
> > >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> > >>>>> To: user@ofbiz.apache.org
> > >>>>> 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
> > >>>>>> vclark@globalera.com
> > >>>>>> (303) 493-6723
> > >>>>>>
> > >>>>>
> > >
> > >
> > >
> >
>
>
Re: POS and Authorize.net error
Posted by Jacques Le Roux <ja...@les7arts.com>.
De : "BJ Freeman" <bj...@free-man.net>
> 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 <bj...@free-man.net> 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
> >>>> vclark@globalera.com
> >>>> (303) 493-6723
> >>>>
> >>>> ----- Original Message -----
> >>>> From: "BJ Freeman" <bj...@free-man.net>
> >>>> To: user@ofbiz.apache.org
> >>>> 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:bjfree@free-man.net]
> >>>>> Sent: Saturday, November 24, 2007 10:59 AM
> >>>>> To: user@ofbiz.apache.org
> >>>>> 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
> >>>>>> vclark@globalera.com
> >>>>>> (303) 493-6723
> >>>>>>
> >>>>>
> >
> >
> >
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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 <bj...@free-man.net> 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
>>>> vclark@globalera.com
>>>> (303) 493-6723
>>>>
>>>> ----- Original Message -----
>>>> From: "BJ Freeman" <bj...@free-man.net>
>>>> To: user@ofbiz.apache.org
>>>> 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:bjfree@free-man.net]
>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>> To: user@ofbiz.apache.org
>>>>> 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
>>>>>> vclark@globalera.com
>>>>>> (303) 493-6723
>>>>>>
>>>>>
>
>
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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 <bj...@free-man.net> 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
>>> vclark@globalera.com
>>> (303) 493-6723
>>>
>>> ----- Original Message -----
>>> From: "BJ Freeman" <bj...@free-man.net>
>>> To: user@ofbiz.apache.org
>>> 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:bjfree@free-man.net]
>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>> To: user@ofbiz.apache.org
>>>> 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
>>>>> vclark@globalera.com
>>>>> (303) 493-6723
>>>>>
>>>>
>>>>
>
Re: POS and Authorize.net error
Posted by Scott Gray <le...@gmail.com>.
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 <bj...@free-man.net> 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
> > vclark@globalera.com
> > (303) 493-6723
> >
> > ----- Original Message -----
> > From: "BJ Freeman" <bj...@free-man.net>
> > To: user@ofbiz.apache.org
> > 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:bjfree@free-man.net]
> >> Sent: Saturday, November 24, 2007 10:59 AM
> >> To: user@ofbiz.apache.org
> >> 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
> >>> vclark@globalera.com
> >>> (303) 493-6723
> >>>
> >>
> >>
> >>
> >
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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
> vclark@globalera.com
> (303) 493-6723
>
> ----- Original Message -----
> From: "BJ Freeman" <bj...@free-man.net>
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: Saturday, November 24, 2007 10:59 AM
>> To: user@ofbiz.apache.org
>> 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
>>> vclark@globalera.com
>>> (303) 493-6723
>>>
>>
>>
>>
>
Re: POS and Authorize.net error
Posted by "Vince M. Clark" <vc...@globalera.com>.
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
vclark@globalera.com
(303) 493-6723
----- Original Message -----
From: "BJ Freeman" <bj...@free-man.net>
To: user@ofbiz.apache.org
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:bjfree@free-man.net]
> Sent: Saturday, November 24, 2007 10:59 AM
> To: user@ofbiz.apache.org
> 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
>> vclark@globalera.com
>> (303) 493-6723
>>
>
>
>
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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:bjfree@free-man.net]
> Sent: Saturday, November 24, 2007 10:59 AM
> To: user@ofbiz.apache.org
> 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
>> vclark@globalera.com
>> (303) 493-6723
>>
>
>
>
>
RE: POS and Authorize.net error
Posted by clearchris <cl...@hotmail.com>.
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:bjfree@free-man.net]
Sent: Saturday, November 24, 2007 10:59 AM
To: user@ofbiz.apache.org
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
> vclark@globalera.com
> (303) 493-6723
>
Re: POS and Authorize.net error
Posted by BJ Freeman <bj...@free-man.net>.
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
> vclark@globalera.com
> (303) 493-6723
>