When using the Profiler feature in TIBCO BusinessEvents (BE), it throws a NullPointer Exception while attempting to write the Profile data.

When using the Profiler feature in TIBCO BusinessEvents (BE), it throws a NullPointer Exception while attempting to write the Profile data.

book

Article ID: KB0086937

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============

When using the Profiler feature in TIBCO BusinessEvents (BE), it throws a NullPointer Exception while attempting to write the Profile data.

$default.be.mt$.Worker.0] - null java.lang.NullPointerException
    at com.tibco.cep.kernel.service.profiler.SimpleProfiler.write(SimpleProfiler.java:372)
    at com.tibco.cep.kernel.service.profiler.SimpleProfiler.off(SimpleProfiler.java:74)
    at com.tibco.cep.kernel.service.profiler.SimpleProfiler.rtcStart(SimpleProfiler.java:103)
    at com.tibco.cep.kernel.core.rete.ReteWM.assertObject(ReteWM.java:901)
    

Environment:
===========
TIBCO BusinessEvents 3.x.x.
All OS.



Cause:
======
This exception indicates that the profiler cannot access the file that you have set using the function Engine.Profiler.startCollectingToFile or using the Hawk method, StartFileBasedProfiler(String session, String fileName, int level, long duration).


Resolution:
==========

Make sure that the directory structure used for the fileName in the above API call exists. If not create one or change it to an available directory.

Usually this exception should be preceeded by "java.io.IOException: No such file or directory". To catch these exceptions proactively consider using Advisory events in your BE engine, listening to Exception advisories.

Issue/Introduction

When using the Profiler feature in TIBCO BusinessEvents (BE), it throws a NullPointer Exception while attempting to write the Profile data.