search cancel

Trace of CALL REST

book

Article ID: 256204

calendar_today

Updated On:

Products

Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

When running the application, it returns a 400 - Bad Request.

Is there anyway to trace the REST response/request?

The application is packaged using Cooperative.

Environment

Release : 8.6

Resolution

There are 2 options to produce CMIDEBUG information.

1. Using the BuildTool profile
 -Go to the Profile Manager
 -Select the User option from the left hand side menu
 -Add OPT.CMIDEBUG with a value of -1
 -Re-assemble and redeploy the EAR file

2. Using the JAVA_OPTS 
 -Add -DCMIDEBUG=-1 to JAVA_OPTS
 -Use SET JAVA_OPTS=%JAVA_OPTS% -DCMIDEBUG=-1
 -This can either be in the command prompt or in the catalina run script

This will produce a lot of output so it may be necessary to use an editor on the log file rather than looking for information in the console output.  I would suggest using Option 1 first as that will control it by deployment rather than for everything on the server.