Technical Notes |
|
If you are having problems running your Verastream Host Integrator (VHI) applications, you may be asked by Attachmate Technical Support to perform a WCP data object trace on your client (connector) system. This technical note describes how to generate the trace depending on the type of data object you are using.
There are two ways to generate a WCP data object trace. The method you use depends on the type of data object connector being used, Java-based or non Java-based.
This information applies to the Java-based connectors in both Windows and UNIX environments.
Follow these steps on the machine running the client application to turn on tracing for Java-based connectors.
Version 6.5 or higher: It is recommended that you set an environment variable. The method used to set an environment variable varies depending on the operating system. On Windows XP/2000/2003, environmental variables can be set in Control Panel > System > Advanced tab > Environmental Variables.
Version 6.0 or earlier: You must modify the vhi.properties file. This file is located in the same directory as wcp.jar, typically <VHI path>/lib/java. However, in UNIX/Linux environments, see also Known Issues with Java Connector Tracing.
WCPTRACEFILE=\\temp\\wcptraceThe trace file will be generated in the directory with base file name as specified in step 2, and a .wcp extension. Depending on the connector version, the file name will include a date and time or number to ensure that a unique file is generated each time a trace is run. For example, wcptrace.2005_03_20.10_14_21.wcp or wcptrace1234.wcp.
In some situations the Java connector WCP trace file may not be created. Note the following issues:
Follow these steps on the machine running the client application to turn on tracing for all non Java-based connectors (.NET, COM, or C).
Version 5.5 Service Pack 2, or Version 6.0 or higher: Specify a value for the base file name, optionally with a directory, for example, WCPTRACEFILE=wcptrace or WCPTRACEFILE=C:\temp\wcptrace. (If a directory is omitted, <VHI path>\etc\tracing is used.)
Versions 4.5 through 5.5 Service Pack 1: Specify a value for the base file name only, for example, WCPTRACEFILE=wcptrace. Do not specify a directory. (The directory <VHI path>\etc\tracing is used.)
The method used to set an environment variable varies depending on the operating system. On Windows XP/2000/2003, environmental variables can be set in Control Panel > System > Advanced tab > Environmental Variables.
The trace file will be generated in the directory with base file name as specified in step 1, and a .wcp extension. Depending on the connector version, the file name will include a date and time or number to ensure that a unique file is generated each time a trace is run. For example, wcptrace.2005_03_20.10_14_21.wcp or wcptrace1235.wcp.