How do I troubleshoot problems with my site customizations and integrations?
Oracle B2C Service Customizations, Oracle B2C Service Public APIs
All product versions
I am seeing errors or other problems with my site customizations, and do not know how to troubleshoot them?
When problems with customizations and integrations are discovered, the first place to look for details is the site/interface info and error logs. These logs will show unhandled/uncaught exceptions encountered, and are available from the console under Configuration->Site Configuration->Logs. Code exceptions that are caught using exception handling in code will not show up in these logs, and there are some types of exceptions that are not caught using exception handling, including application segmentation faults (usually memory errors). When an error shows details such as 'signal 11' this is an indication of a segmentation fault, and in those cases you may need to submit an SR to the Technical Support team for assistance in troubleshooting. Most other errors in these logs will either specify the exact nature of the error, or will contain text that can be used in searching the support site knowledge base to help troubleshoot.
Further, customization logging is a critical component to any Oracle B2C Service site customization. Customization implementers need to code logging into customizations that will be helpful for monitoring, and sometimes additional logging will need to be added if problems arise that are not sufficiently explained using existing logging, as implemented.
Examples scenarios include:
A call to, or run, of a customization or Oracle B2C Service public API is taking longer than expected, and/or is timing out
In cases such as this, logging will need to be used to discover what part(s) of the custom code are taking up the time. Problems of this type can be explained by things such as a) errors or long response times in integration calls, b) ROQL API queries that are running long (thus requiring that involved fields are needing to be indexed), or perhaps there are ROQL queries that can be better written, and c) the volume of requests made to customizations is overloading the site database (Web logs can be helpful to determine this). For details on these that may be helpful see
Similarly, calls to public Oracle B2C Service public APIs (such as SOAP and REST APIs), can be checked for adherence to best practices. The following is specific to the SOAP API (Connect Web Services for SOAP), but generally applies to all of the public API endpoints supported by Oracle B2C Service.
Database table lock timeouts and/or connection errors
For details on troubleshooting these types of errors see
Errors encountered in client-side customizations such as Customer Portal, Browser User Interface (BUI), and .NET AddIns
Client side errors from customizations may be due to server-side errors that will show up in the site/interface logs, but can also be specific to custom code running on the client side. Troubleshooting client-side errors will be specific to the customization involved, and is often going to require customization logging also. Connect for PHP logging can be implemented within Customer Portal customizations, from the PHP components, such as widget controllers and custom models. For details specific to BUI Extension and .NET AddIn customizations see