Class Cast exception on engine startup:"java.lang.ClassCastException: com.tibco.be.util.config.cdd.impl.DestinationsConfigImpl cannot be cast to com.tibco.be.util.config.cdd.UrisAndRefsConfig"

Class Cast exception on engine startup:"java.lang.ClassCastException: com.tibco.be.util.config.cdd.impl.DestinationsConfigImpl cannot be cast to com.tibco.be.util.config.cdd.UrisAndRefsConfig"

book

Article ID: KB0090599

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
The following class cast exception is thrown on engine startup during channel initialization phase:

Fatal [main] - [container.standalone] com.tibco.be.util.config.cdd.impl.DestinationsConfigImpl cannot be cast to com.tibco.be.util.config.cdd.UrisAndRefsConfig
java.lang.ClassCastException: com.tibco.be.util.config.cdd.impl.DestinationsConfigImpl cannot be cast to com.tibco.be.util.config.cdd.UrisAndRefsConfig
    at com.tibco.be.util.config.cdd.impl.UrisAndRefsConfigImpl.getAllUris(UrisAndRefsConfigImpl.java:68)
    at com.tibco.be.util.config.cdd.impl.UrisAndRefsConfigImpl.getAllUris(UrisAndRefsConfigImpl.java:55)
    at com.tibco.cep.repo.provider.adapters.InferenceAgentToBEArchiveAdapter.getRuleUris(InferenceAgentToBEArchiveAdapter.java:52)
    at com.tibco.cep.repo.provider.adapters.InferenceAgentToBEArchiveAdapter.getDeployedRuleUris(InferenceAgentToBEArchiveAdapter.java:46)
    at com.tibco.cep.runtime.session.impl.RuleSessionConfigImpl.&ltinit>(RuleSessionConfigImpl.java:41)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.&ltinit>(RuleSessionImpl.java:177)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.&ltinit>(RuleSessionImpl.java:153)
    at com.tibco.cep.runtime.session.impl.RuleSessionManagerImpl.init(RuleSessionManagerImpl.java:134)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initRuleSessions(RuleServiceProviderImpl.java:996)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initAll(RuleServiceProviderImpl.java:581)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:224)
    at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:155)
    at com.tibco.cep.container.standalone.BEMain.main(SourceFile:69)

Environment:
===============
TIBCO Business Events 5.x

Symptoms:
==========
Engine fails to startup.

Cause:
========
The error occurs if you have more than one collection in your CDD (Cluster Deployment Descriptor) with the same name. For example, if you have a collection under  “Rules” called “test” and you have another collection under “Destinations” called “test” on engine start-up you will see the class cast exception indicated above.

Resolution:
===========
Make sure you use different collection names in your CDD (Cluster Deployment Descriptor) under “Collections” tab.

Issue/Introduction

Class Cast exception on engine startup:"java.lang.ClassCastException: com.tibco.be.util.config.cdd.impl.DestinationsConfigImpl cannot be cast to com.tibco.be.util.config.cdd.UrisAndRefsConfig"