Studio debugger throws java.lang.NoClassDefFoundError for custom functions created in an imported project library.

Studio debugger throws java.lang.NoClassDefFoundError for custom functions created in an imported project library.

book

Article ID: KB0094012

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
Studio debugger throws java.lang.NoClassDefFoundError for custom functions created in an imported project library.
Symptoms:
java.lang.NoClassDefFoundError: TimeUtils (wrong name: <custom function class>)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at com.tibco.cep.runtime.service.loader.ClassManager.findClass(ClassManager.java:116)
at com.tibco.cep.runtime.service.loader.BEClassLoader.findClass(BEClassLoader.java:1406)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.tibco.cep.runtime.service.loader.ClassManager.loadClass(ClassManager.java:142)
at com.tibco.cep.runtime.service.loader.BEClassLoader.registerClasses(BEClassLoader.java:504)
at com.tibco.cep.runtime.service.loader.BEClassLoader.update(BEClassLoader.java:339)
at com.tibco.cep.runtime.service.loader.BEClassLoader.lockAndUpdate(BEClassLoader.java:300)
at com.tibco.cep.runtime.service.loader.BEClassLoader.lockAndUpdate(BEClassLoader.java:295)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.registerClasses(RuleServiceProviderImpl.java:584)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initProject(RuleServiceProviderImpl.java:1067)
at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:157)
at com.tibco.cep.container.standalone.BEMain.main(SourceFile:70)

Cause:
Studiio (runtime) cannot find the custom function classes created in the project library

Issue/Introduction

Studio debugger throws java.lang.NoClassDefFoundError for custom functions created in an imported project library.

Resolution

Add the location of the custom class files in the imported project library to the project properties "Java Build Path"  (Project -> Properties -> Java Build Path).