Java OCCExtension

Hello,
I am trying to deploy the Java OCCExtension however am experiencing issues.
First step was to install the OCC Extension installation exe, choosing the relevant statserver when prompted.
Added jvm-path configuration option within the statserver with value: D:\jdk1.5.0_22\jre\bin\client\jvm.dll.
Added enable-java option, set value to true.
Added stats:
[CurrentOverdialRate]
Category=JavaCategory
JavaSubCategory=OCCStatExtension.jar: CurrentOverdialRate
Objects=CampaignGroup

[CurrentBusyFactor]
Category=JavaCategory
JavaSubCategory=OCCStatExtension.jar:CurrentBusyFactor
Objects=CampaignGroup

[CurrentAverageWaitingTime]
Category=JavaCategory
JavaSubCategory=OCCStatExtension.jar: CurrentAverageWaitingTime

Once this was completed, I started statserver and checked logs where it specified the following :
2012-05-17 18:03:26> Init: StatType ‘OCCStatExtension.jar: CurrentOverdialRate’ cannot be used immediately because Java Host Environment is not initialized
2012-05-17 18:03:26> Init: [CurrentOverdialRate] OK.
2012-05-17 18:03:26> Init: StatType ‘OCCStatExtension.jar: CurrentNumberDialPortsUsed’ cannot be used immediately because Java Host Environment is not initialized
2012-05-17 18:03:26> Init: [CurrentNumberDialPortsUsed] OK.
2012-05-17 18:03:26> Init: StatType ‘OCCStatExtension.jar: CurrentNumberChainsRetrieved’ cannot be used immediately because Java Host Environment is not initialized
2012-05-17 18:03:26> Init: [CurrentNumberChainsRetrieved] OK.
2012-05-17 18:03:26> Init: StatType ‘OCCStatExtension.jar: CurrentNumberChainsFinalized’ cannot be used immediately because Java Host Environment is not initialized

The jvm.dll definitely exists.
The OCCStatExtension.jar exists within the java\ext folder of the statserver.
Any options or sections I have missed?

All those log messages are normal - when StatServer initially processes that categories definition, Java extension not yet loaded.
Be sure that java-related logging is enabled (statserver/debug-level option has value “All”, as well as log/verbose option) and look for Java initialization and extension loading in log file (“Starting Java…” message). It should be after processing of categories, timeprofiles, filters, etc…

2 Likes

thanks.
I also did not have the java-extension section defined within the statserver options (value being OCCStatExtension.jar).
This enabled the outbound monitoring to work within genesys administrator.