Exception "java.lang.ExceptionInInitializerError" thrown upon TIBCO BusinessEvents(BE) inference agent startup.

Exception "java.lang.ExceptionInInitializerError" thrown upon TIBCO BusinessEvents(BE) inference agent startup.

book

Article ID: KB0094593

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
TIBCO BusinessEvents throws java.lang.ExceptionInInitializerError, Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /opt/tibco/be/4.0/bin/logs/engine.log (No such file or directory)

Environment:
==========
Operating Systems: All
BE Versions: 4.x,5.x

Symptoms:
=========
During BE engine startup youl see the followingexception:

Exception in thread "main" 2011 Dec 01 18:08:38:491 GMT +0 localhost.domain Error [main] - [root] java.lang.ExceptionInInitializerError
2011 Dec 01 18:08:38:492 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initialize(RuleServiceProviderImpl.java:497)
2011 Dec 01 18:08:38:493 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.&ltinit>(RuleServiceProviderImpl.java:147)
2011 Dec 01 18:08:38:493 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.session.RuleServiceProviderManager.newProvider(RuleServiceProviderManager.java:358)
2011 Dec 01 18:08:38:493 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:104)
2011 Dec 01 18:08:38:494 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:52)
2011 Dec 01 18:08:38:494 GMT +0 localhost.domain Error [main] - [root] Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /opt/tibco/be/4.0/bin/logs/engine.log (No such file or directory)
2011 Dec 01 18:08:38:494 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.service.logging.impl.LogManagerImpl.initFileAppender(LogManagerImpl.java:391)
2011 Dec 01 18:08:38:495 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.service.logging.impl.LogManagerImpl.init(LogManagerImpl.java:346)
2011 Dec 01 18:08:38:495 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.service.logging.impl.LogManagerImpl.&ltclinit>(LogManagerImpl.java:64)
2011 Dec 01 18:08:38:495 GMT +0 localhost.domain Error [main] - [root]       ... 5 more
2011 Dec 01 18:08:38:495 GMT +0 localhost.domain Error [main] - [root] Caused by: java.io.FileNotFoundException: /opt/tibco/be/4.0/bin/logs/engine.log (No such file or directory)
2011 Dec 01 18:08:38:496 GMT +0 localhost.domain Error [main] - [root]       at java.io.FileOutputStream.openAppend(Native Method)
2011 Dec 01 18:08:38:496 GMT +0 localhost.domain Error [main] - [root]       at java.io.FileOutputStream.&ltinit>(FileOutputStream.java:177)
2011 Dec 01 18:08:38:496 GMT +0 localhost.domain Error [main] - [root]       at java.io.FileOutputStream.&ltinit>(FileOutputStream.java:102)
2011 Dec 01 18:08:38:496 GMT +0 localhost.domain Error [main] - [root]       at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
2011 Dec 01 18:08:38:497 GMT +0 localhost.domain Error [main] - [root]       at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
2011 Dec 01 18:08:38:497 GMT +0 localhost.domain Error [main] - [root]       at org.apache.log4j.FileAppender.&ltinit>(FileAppender.java:109)
2011 Dec 01 18:08:38:497 GMT +0 localhost.domain Error [main] - [root]       at org.apache.log4j.RollingFileAppender.&ltinit>(RollingFileAppender.java:72)
2011 Dec 01 18:08:38:498 GMT +0 localhost.domain Error [main] - [root]       at com.tibco.cep.runtime.service.logging.impl.LogManagerImpl.initFileAppender(LogManagerImpl.java:389)
2011 Dec 01 18:08:38:498 GMT +0 localhost.domain Error [main] - [root]       ... 7 more

Cause:
=====
The user starting the BE engine does not have write privileges to the BE_HOME/bin/logs folder.

Resolution:
=========
Grant the user write privileges to BE_HOME or change the log directory to another folder, to which the user has write privileges. You can change the logs folder in the project CDD file by configuring logConfig property field.

Issue/Introduction

Exception "java.lang.ExceptionInInitializerError" thrown upon TIBCO BusinessEvents(BE) inference agent startup.