" /> Java OCCExtension - Genesys CTI User Forum

Author Topic: Java OCCExtension  (Read 3485 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Java OCCExtension
« on: May 17, 2012, 05:22:03 PM »
Advertisement
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?

Offline minuteman

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: Java OCCExtension
« Reply #1 on: May 17, 2012, 10:19:05 PM »
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...

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Re: Java OCCExtension
« Reply #2 on: May 18, 2012, 07:06:43 PM »
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.