A very useful custom component

Posted by Kevin Smith on Oracle Blogs See other posts from Oracle Blogs or by Kevin Smith
Published on Thu, 18 Oct 2012 01:05:24 +0000 Indexed on 2012/10/18 5:16 UTC
Read the original article Hit count: 275

Filed under:

Whenever I am debugging a problem in WebCenter Content (WCC) I often find it useful to see the contents of the internal data binder used by WCC when executing a service. I want to know the value of all parameters passed in by the caller, either a user in the web GUI or from an application calling the service via RIDC or web services. I also want to the know the value of binder variables calculated by WCC as it processes a service. What defaults has it applied based on configuration settings or profile rules? What values has it derived based on the user input?

To help with this I created a  component that uses a java filter to dump out the contents of the internal data binder to the WCC trace file. It dumps the binder contents using the toString() method. You can register this filter code using many different filter hooks to see how the binder is updated as WCC processes the service.

By default, it uses the validateStandard filter hook which is useful during a CHECKIN service. It uses the system trace section, so make sure that trace section is enabled before looking for the output from this component.

Here is some sample output

>system/6    10.09 09:57:40.648    IdcServer-1    filter: postParseDataForServiceRequest, binder start --
 system/6    10.09 09:57:40.698    IdcServer-1    *** LocalData ***
 system/6    10.09 09:57:40.698    IdcServer-1    (10 keys + 0 defaults)
 system/6    10.09 09:57:40.698    IdcServer-1    ClientEncoding=UTF-8
 system/6    10.09 09:57:40.698    IdcServer-1    IdcService=CHECKIN_UNIVERSAL
 system/6    10.09 09:57:40.698    IdcServer-1    NoHttpHeaders=0
 system/6    10.09 09:57:40.698    IdcServer-1    UserDateFormat=iso8601
 system/6    10.09 09:57:40.698    IdcServer-1    UserTimeZone=UTC
 system/6    10.09 09:57:40.698    IdcServer-1    dDocTitle=Check in from RIDC using Framework Folder
 system/6    10.09 09:57:40.698    IdcServer-1    dDocType=Document
 system/6    10.09 09:57:40.698    IdcServer-1    dSecurityGroup=Public
 system/6    10.09 09:57:40.698    IdcServer-1    parentFolderPath=/folder1/folder2
 system/6    10.09 09:57:40.698    IdcServer-1    primaryFile=testfile5.bin   
 system/6    10.09 09:57:40.698    IdcServer-1    ***  RESULT SETS  ***
>system/6    10.09 09:57:40.698    IdcServer-1    binder end --------------------------------------------

See the readme included in the component for more details.

You can download the component from here.

© Oracle Blogs or respective owner

Related posts about /Customization