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 <[EMAIL PROTECTED]> 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
>>>> [EMAIL PROTECTED]
>>>> (303) 493-6723
>>>>
>>>> ----- Original Message -----
>>>> From: "BJ Freeman" <[EMAIL PROTECTED]>
>>>> To: [email protected]
>>>> 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:[EMAIL PROTECTED]
>>>>> Sent: Saturday, November 24, 2007 10:59 AM
>>>>> To: [email protected]
>>>>> 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
>>>>>> [EMAIL PROTECTED]
>>>>>> (303) 493-6723
>>>>>>
>>>>>
>
>
>