BIP Debugging to a file

Posted by Tim Dexter on Oracle Blogs See other posts from Oracle Blogs or by Tim Dexter
Published on Wed, 24 Mar 2010 17:16:48 -0700 Indexed on 2010/03/25 0:23 UTC
Read the original article Hit count: 546

If you use the standalone server or with OBIEE and use OC4J as the web server. Have you ever taken a looksee at the console window (doc/xterm) that you use to start it. Ever turned on debugging to see masses of info flow by that window and want to capture it all? I have been debugging today and watched all that info fly by and on Windoze gets lost before you can see it!

The BIP developers use the System.out.println() and System.err.println()methods in the BIP applications to generate debugging formation. Normally the output from these method calls go to the console where the OC4J process is started. However you can specify command line options when starting OC4J to direct the stdout and stderr output directly to files. The ?out and ?err parameters tell OC4J which file to direct the output to.

All you need do is modify the oc4j.cmd file used to start BIP. I didnt get fancy and just plugged in the following to the file under the start section. I just modified the line:

   set CMDARGS=-config "%SERVER_XML%" -userThreads

to

   set CMDARGS=-config "%SERVER_XML%" 
                              -out D:\BI\OracleBI\oc4j_bi\j2ee\home\log\oc4j.out 
                                   -err D:\BI\OracleBI\oc4j_bi\j2ee\home\log\oc4j.err -userThreads

Bounced the server and I now have a ballooning pair of debug files that I can pour over to my hearts content. The .out file appears to contain BIP only log info and the .err file, OBIEE messages.

If you are using another web server to host BIP, just check out the user docs to find out how to get the log files to write.

Note to self, remember to turn off the debug when Im done!

© Oracle Blogs or respective owner

Related posts about BI Publisher Enterprise

Related posts about BIEE

  • BIEE Drilling Down and then Across

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Slightly off topic today but if you are working with OBIEE in conjunction with BIP its not that far off. Some of you may know, I now get to play with the whole BI suite, I have been for nearly 2 years. Today, I was working with BIEE and wanted to share what I thought was a neat trick. I have to thank… >>> More

  • Linking to BIP reports from BIEE Analyses

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Bryan found a great blog post from Fiston over on the OBIEEStuff blog. It covers the ability to link to a BIP report from a BIEE analyses report with the ability to pass parameters to it. I have doubled checked and you need to be on OBIEE 11.1.1.5 to see the 'Shared Report Link' mentioned in Fiston's… >>> More

  • BIEE Answer Parameter Passing

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    A little off BIP topic today but I spent some time researching how to pass parameters between Answer reports and knocked up a document for a client this morning and thought, what the heck someone might find it useful. If you have a source Answer request and you want to link to another Answer in another… >>> More

  • Good ol fashioned debugging

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    I have been helping out one of our new customers over the last day or two and I have even managed to get to the bottom of their problem FTW! They use BIEE and BIP and wanted to mount a BIP report in a dashboard page, so far so good, BIP does that! Just follow the instructions in the BIEE user guide… >>> More

  • Excel Template Teaser

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    In lieu of some official documentation I'm in the process of putting together some posts on the new 10.1.3.4.1 Excel templates. No more HTML, maskerading as Excel; far more flexibility than Excel Analyzer and no need to write complex XSL templates to create the same output. Multi sheet outputs with… >>> More