Wednesday, July 8, 2009

Logging for Oracle iPayment (Credit card processing – debugging)

iPayment Debugging – Related to authorizations and other real time transactions

1. Set the following JVM parameters for the apache running the servlet by updating the jserv.properties.

wrapper.bin.parameters=-DAFLOG_ENABLED=TRUE
wrapper.bin.parameters=-DAFLOG_MODULE=iby%
wrapper.bin.parameters=-DAFLOG_LEVEL=STATEMENT
wrapper.bin.parameters=-DAFLOG_FILENAME=/iby.log

2. Login to the application using System Administrator responsibility and set the following System Profiles to the following values at the Site level:

Profile Name

Value

FND: Log Enabled

Yes

FND: Log Module

iby%

FND: Log Level

Statement

FND: Log Filename for Middle-Tier

/iby.log


Note --
Make sure you give the absolute path to your logging directories instead of .

3. Rename iby.log if exist already.

4. Run following sql statement:
SQL> select max(log_sequence) from fnd_log_messages

5. Bounce apache server

6. Reproduce the problem.

7. iby.log - Run following sql statement and upload result in excel format:
SQL> select module, message_text, log_sequence, timestamp
from fnd_log_messages
where module like 'iby%' and log_sequence > &result-of-step4

Note --
If the BEP servlet is installed in a different tier than iPayment engine (ibyecapp), there will be a separate iby.log generated. So please upload both iby.log files.


B. iPayment Debugging for capture and other offline / background transactions

This is only to be done when problem involves the iPayment Scheduler Concurrent Request.
iPayment Scheduler is a java concurrent program. Since scheduler is run on concurrent manager tier, above iPayment debug logs will not be sufficient to diagnose scheduler issues. The java debug log generated for this concurrent program is also required so please do the following steps instead.

1. Set the following JVM parameters for the apache running the servlet by updating the jserv.properties.

wrapper.bin.parameters=-DAFLOG_ENABLED=TRUE
wrapper.bin.parameters=-DAFLOG_MODULE=iby%
wrapper.bin.parameters=-DAFLOG_LEVEL=STATEMENT
wrapper.bin.parameters=-DAFLOG_FILENAME=/iby.log

2. Login to the application using System Administrator responsibility and set the following System Profiles to the following values at the Site level:

Profile Name

Value

FND: Log Enabled

Yes

FND: Log Module

iby%

FND: Log Level

Statement

FND: Log Filename for Middle-Tier

/iby.log


Note --
Make sure you give the absolute path to your logging directories instead of .

3. Rename iby.log if exist already.

4. Run following sql statement:
SQL> select max(log_sequence) from fnd_log_messages

5. Enable concurrent request debugging.
a. Log into application using System Administrator responsibility
b. Navigate to Concurrent > Program > Define
c. Query the IBYSCHEDULER concurrent program
d. In Options field, enter the following string and save

-DAFLOG_ENABLED=TRUE -DAFLOG_MODULE=iby% -DAFLOG_LEVEL=STATEMENT -DAFLOG_FILENAME=/iby_af.log

Note --
This is to be entered as one line and a space between each parameter setting (as seen above).
DAFLOG_FILENAME needs to point to a valid directory on Concurrent Manager tier.

6. Bounce apache server if step 1 had to be done.

7. Bounce Concurrent Managers for change in step #5 to take effect.

8. Run iPayment Scheduler concurrent request.

9.Files:

a. Scheduler concurrent request log
b. iby.log
c. iby_af.log
d. Run following sql statement and upload result in excel format:
SQL> select module, message_text, log_sequence, timestamp
from fnd_log_messages
where module like 'iby%' and log_sequence > &result-of-step4

Note --
If the BEP servlet is installed in a different tier than iPayment engine (ibyecapp), there will be a separate iby.log generated. So please upload both iby.log files.

No comments: