Wednesday Oct 17, 2012

A very useful custom component

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.

About

Kevin Smith is a Technical Director in Oracle Consulting's WebCenter practice. He has been working with content management products since 2004 when he joined Stellent.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today