DomainUtilitycmd AddJMSServer utility throws net.sf.ehcache.Cache.getMaxElementsInMemory error.

DomainUtilitycmd AddJMSServer utility throws net.sf.ehcache.Cache.getMaxElementsInMemory error.

book

Article ID: KB0092957

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) -
Not Applicable -

Description

Description:
DomainUtility AddJMSServer utility throws the following error.


WRAPPER - start method threw an exception
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.ehcache.Cache.getMaxElementsInMemory()I
        at com.tibco.pof.entity.impl.AbstractEntityCollection.iterator(AbstractEntityCollection.java:50)
        at com.tibco.administrator.du.plugin.JMS.JMSTask.getJMSProductsOnMachine(JMSTask.java:278)
        at com.tibco.administrator.du.plugin.JMS.JMSTask.findServerByPort(JMSTask.java:309)
        at com.tibco.administrator.du.plugin.JMS.RegisterJMSTask$JMSValidator.validate(RegisterJMSTask.java:414)
        at com.tibco.administrator.du.cmdline.CmdLineHandler.execute(CmdLineHandler.java:196)
        at com.tibco.administrator.du.DomainUtility.main(DomainUtility.java:425)


Symptoms:
Domainutility.log and console output shows the following error:

WRAPPER - start method threw an exception
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.ehcache.Cache.getMaxElementsInMemory()I
        at com.tibco.pof.entity.impl.AbstractEntityCollection.iterator(AbstractEntityCollection.java:50)
        at com.tibco.administrator.du.plugin.JMS.JMSTask.getJMSProductsOnMachine(JMSTask.java:278)
        at com.tibco.administrator.du.plugin.JMS.JMSTask.findServerByPort(JMSTask.java:309)
        at com.tibco.administrator.du.plugin.JMS.RegisterJMSTask$JMSValidator.validate(RegisterJMSTask.java:414)
        at com.tibco.administrator.du.cmdline.CmdLineHandler.execute(CmdLineHandler.java:196)
        at com.tibco.administrator.du.DomainUtility.main(DomainUtility.java:425)


Cause:
Domainutility/Domainutilitycmd, when unable to get the ehcache.jar reference, throws the error.

Resolution

Add  "%TPCL_HOME%/lib/ehcache-1.3.0.jar"  entry before ":%TPCL_HOME%/lib" in tibco.class.path.extended to domainutility and the domainutilitycmd.tra file.

Issue/Introduction

DomainUtilitycmd AddJMSServer utility throws net.sf.ehcache.Cache.getMaxElementsInMemory error.