[CASE OPENED] Legacy ReportCaster API Error "java.lang.NullPointerException"
I'm using ReportCaster Legacy API's on another Linux OS server to run reports on our Web Focus server. Every report is working except one and I need tips on how to debug this.
This is the output I normally get on a successful run...
This is the output I get on one report that keeps failing and we can't figure out why What more can I do from a command line to try and troubleshoot this? Any trace/debug modes I can learn to enable to see more verbose information as to what's happening? It's failing on this step where it generates or pulls the JobID
// run schedule
String jobId = manager.run(schedule);
print("JobId=" + jobId);
+ CLASSPATH=/opt/sqljdbc_4.1/enu/jre7/sqljdbc41.jar:/opt/ibi/WebFOCUS82/ReportCaster/lib/reportcaster.jar:/usr/java/jdk1.8.0_181/bin:/opt/ibi/WebFOCUS82/ReportCaster/samples/Tools/CompiledCode
+ /usr/java/jdk1.8.0_181/bin/java HLZ_WFSchedulerRunWithID S1923faeesd758s4e43s8946s32d82261a5e6
HLZ_WFSchedulerRunWithID START
No bundle found
log4j:WARN No appenders could be found for logger (stdout).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2019-03-26 08:27:59 ScheduleId1=S1923faeesd758s4e43s8946s32d82261a5e6
2019-03-26 08:27:59 ScheduleId2=S1923faeesd758s4e43s8946s32d82261a5e6
2019-03-26 08:27:59 Schedule=ibi.broker.api.data.schedule.Schedule@4e48462d
java.lang.NullPointerException
at ibi.broker.api.util.converter.ScheduleConverterUtil.convertTaskList(ScheduleConverterUtil.java:1559)
at ibi.broker.api.util.converter.ScheduleConverterUtil.convert(ScheduleConverterUtil.java:1596)
at ibi.broker.api.util.converter.ScheduleConverter.getObject(ScheduleConverter.java:1352)
at ibi.broker.api.cci.interactive.schedule.RunSchedule.processRequest(RunSchedule.java:142)
at ibi.broker.api.cci.interactive.AbstractInteractive.execute(AbstractInteractive.java:225)
at ibi.broker.api.cci.interactive.schedule.ScheduleManagerImpl.run(ScheduleManagerImpl.java:228)
at ibi.broker.api.cci.interactive.schedule.ScheduleManagerImpl.run(ScheduleManagerImpl.java:217)
at HLZ_WFSchedulerRunWithID.<init>(HLZ_WFSchedulerRunWithID.java:47)
at HLZ_WFSchedulerRunWithID.main(HLZ_WFSchedulerRunWithID.java:72)
HLZ_WFSchedulerRunWithID FAIL
This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8.1, Linux
March 27, 2019, 12:58 PM
FP Mod Chuck
gsbrown
I don't have any experience with debugging the API. I looked at the manual and it doesn't have info for that either. I suggest you open a case with techsupport.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 27, 2019, 10:00 PM
dhagen
The old api is set up to use Log4j. You need to setup an appender. If you are running it in the command line you can put your log4j.xml into the same directory where your running from. The following is a sample appender that will dump the traces out to a file and the console.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
March 29, 2019, 10:49 AM
gsbrown
Oh, thank you! That log4j setup is exactly what I needed to see more information. I'll be able to use this information to better work with support. We think this issue is related to a new "dependency" feature available in the latest WF release that's being used with this particular schedule