Saturday, April 4, 2015

BIP Logs

 

A quick roundup on how to set up the log levels on a BIP setup.

On the BIP Desktop Addon:

Here is how to increase Log levels on your windows machine, running the BIP Destop addon

cleartext.blogspot.com

1.Find out the Java folder your Word add on is using.
In side your Word's Addin Tab, go to BIPublisher -> Tools -> Options -> Preview

tmp2EF8

2. In this java folder, go to /lib/ folder, and create a file named xdodebug.cfg

3. Add these two lines the xdodebug.cfg file:

LogLevel=STATEMENT
LogDir=C:\xdo_logs

4.Create a folder named xdo_logs under C:\  Next time you preview a report on your addon, BIP will create logs in the folder.

This article first appeared on cleartext.blogspot.com

Alternate: TemplateViewer

If you want a quick method to get logs without making these changes, you could simply use the TemplateViewer jar file. It will be under the TemplateViewer folder under the BIP addon installation. For me, it was under :

C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\TemplateViewer\tmplviewer.jar

1: Just run the jar file in Windows.

tmp841B

 

2:Use the browse button to go a folder where you have your RTF template & XML data file.

3:In the left pane, select the XML file, and in the right pane, select the RTF file you need to test.

tmpACC2

4. Before you run the report, go to the Settings tab, and select log leve as Maximum.

tmp8B31

5. Click on the Start Processing button, to see the logs getting generated and the preview being generated.

On a BIP Server:

Here are the steps to change your BI Publisher Enterprise Server to be in a debug mode:

  1. Login to BIP as Administrator
  2. Select Admin -> System Maintenance -> Server Configuration
  3. Change Debug Level to ‘Debug’ under General Properties
    clip_image001
  4. Click on the ‘Apply’ button and restart the server.

 

When set to maximum log level, BIP will generate the logs, and in addition, create a .xml file, .xsl file, and a .fo file. The XML file will contain the dataset used to generate the report. The .fo file contains the final output, and can be renamed to PDF or whatever output you had chosen and it will open up in its viewer.

 

Happy BIP ! and Happy Easter !

This article first appeared on cleartext.blogspot.com

 

This article first appeared on cleartext.blogspot.com

Thursday, April 2, 2015

java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.defaultIfEmpty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String

 

While using the Taleo Connect Client (TCC) for some advanced configurations , for instance for attachments, you might run into some weird java related errors.

 

java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.defaultIfEmpty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    at com.taleo.integration.client.customstep.BaseCustomStep.init(BaseCustomStep.java:120)
    at com.taleo.integration.client.customstep.xml.ExtractAttachedFilePostStep.init(ExtractAttachedFilePostStep.java:424)
    at com.taleo.integration.client.step.BaseCustomStep.init(BaseCustomStep.java:58)
    at com.taleo.integration.client.step.CustomStepWrapper.init(CustomStepWrapper.java:111)
    at com.taleo.integration.client.workflow.WorkflowManager.addSteps(WorkflowManager.java:1006)
    at com.taleo.integration.client.workflow.WorkflowManager.addPostProcessSteps(WorkflowManager.java:977)
    at com.taleo.integration.client.workflow.WorkflowManager.createWorkflow(WorkflowManager.java:172)
    at com.taleo.integration.client.workflow.WorkflowManager.execute(WorkflowManager.java:328)
    at com.taleo.integration.client.rcp.job.ConfigurationExecutionJob.run(ConfigurationExecutionJob.java:109)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

 

 

It turns out that the issue was with the TCC installer itself. The fix is to replace commons-lang-2.0.jar with commons-lang-2.6.jar [TCC installation folder]\lib\endorsed

Oracle Sucks !