Important Trace Strings to debug BOD

BOD Request / Response:

Data Service Facade Trace String:

Get Service Flow Trace Strings:

Useful to understand if the code is breaking midway and if you would like to enable tracing for individual commands.

Fetch<ComponentName>Cmd

The first point to debug the Get / Search service failures.
The Fetch command fetches the data.Extensions of this Fetch command are associated with a particular XPath expression.The command framework can use the XPath expression and Fetch task command to resolve the Get request to a particular implementation by using the existing WebSphere Commerce command registry (CMDREG) data. Instead of having one implementation for a Fetch business task, the command framework uses the XPath as the selector to resolve the implementation. If a specific implementation is not defined for the given XPath, then a default Fetch is used.

For example , The InventoryAvailability noun uses a default Fetch implementation and to debug , you must enable the trace for :

The Fetch Command calls the Compose commands to composes the response.When the Get command calls the Composecommand, it uses the access profile of the request as the key to select the appropriate Compose implementation. Because the access profile is just a superset of another access profile, the Composecommands delegates to the parent access profile to first populate the logic model and add any required information.

For example , The InventoryAvailability noun uses the below Compose implementations and to debug , you must enable the trace depending on the Inventory system used :

If you do not wish to enable the trace on a granular level , you could also enable the trace for the entire component service.

For example , for Inventory services , enable the below trace :

com.ibm.commerce.inventory.facade.server.*

Debugging Query Template File

XPATH Syntax Validator (wcs_xpathkey utility):

The XPath key generator command-line utility takes an XPath expression as input and generates an XPath key. This key is used to locate the XPATH_TO_SQL_STATEMENT template in the query template file.This utility can help you validate the format of the XPATH Key as well such as missing closing brackets etc or misplaced tokens. Please note this would not however match the XPATH with the actual Noun definition.

Query Template File Syntax Validator

Use this page to validate your query template file syntax.http://localhost/webapp/wcs/admin/servlet/dsl.jspIn case you are seeing NullPointer exceptions on querying even the OOB services, make the below changes in the dsl.jsp.Search for the below line:sc.setXPath(sbQuery.toString());

Add the following line of code below the above line:sc.setComponentId(componentId);

Reloading the configuration of a BOD service module

During development, you may want to modify and reload configuration,
without having to restart the server. Follow the below Infocenter link for more details:

WCS HUB

Total Pageviews

DMCA Protected

About Me

TOGAF certified Enterprise Archtitect and Associate Manager at a multinational technology firm having 6 years of industry experience, mainly in IBM Websphere Commerce 6 and 7.
She is also a Certified IBM Websphere Commerce v7.0 Application Developer.