" /> Using Java Categories in StatServer? - Genesys CTI User Forum

Author Topic: Using Java Categories in StatServer?  (Read 9372 times)

Offline amarceau

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Using Java Categories in StatServer?
« on: July 01, 2011, 06:45:38 PM »
Advertisement
I've been trying for a while to get these JavaCategories working don't seem to have much luck.

I'm trying to add the following statistics:

[CurrentNumberChainsFinalized]
Category=JavaCategory
JavaSubCategory=OCCStatExtension.jar: CurrentNumberChainsFinalized
Objects=CampaignGroup, CallingList, CampaignCallingList

[CurrentNumberChainsReady]
Category=JavaCategory
JavaSubCategory=OCCStatExtension.jar:CurrentNumberChainsReady
Objects=CampaignGroup, CallingList, CampaignCallingList

[CurrentNumberChainsRetrieved]
Category=JavaCategory
JavaSubCategory=OCCStatExtension.jar: CurrentNumberChainsRetrieved
Objects=CampaignGroup, CallingList, CampaignCallingList

I've followed the deployment guide for installing the OCCStatExtension.  I've verified it's installed properly.

I saw the following errors in the logs when I added these stats:

2011-07-01 14:24:32> Init: StatType 'OCCStatExtension.jar: CurrentNumberChainsFinalized' cannot be used immediately because extension 'occstatextension.jar' is not loaded

2011-07-01 14:24:32> Init: StatType 'OCCStatExtension.jar:CurrentNumberChainsReady' cannot be used immediately because extension 'occstatextension.jar' is not loaded

2011-07-01 14:24:32> Init: StatType 'OCCStatExtension.jar: CurrentNumberChainsRetrieved' cannot be used immediately because extension 'occstatextension.jar' is not loaded

So how do I "load" occstatextension.jar?  I've looked everywhere in the deployment guide and there is nothing that talks about loading the occstatextension?

Additional setup:  on the specific statserver, I have the following setup in the java areas:

[java-config]
java-extensions-dir=./java/ext
java-libraries-dir=./java/lib
jvm-path=C:\Java\jre1.5.0_22\bin\client\jvm.dll

[java-extensions]
eServiceContactStat.jar=yes
eServiceInteractionStat.jar=yes
OCCStatExtension.jar=yes
VCBStatExtension.jar=no

[jvm-options]
-verbose:gc=
-Xcheck:jni=
-Xloggc:gs.log=
-Xms64M=
-Xmx512M=
-XX:+PrintGCDetails=
-XX:+PrintGCTimeStamps=
-XX:+PrintHeapAtGC=

I have no idea what I'm missing here?  Any help would be appreciated

Offline fnunezsa

  • Full Member
  • ***
  • Posts: 213
  • Karma: 5
Re: Using Java Categories in StatServer?
« Reply #1 on: July 01, 2011, 10:34:23 PM »
Check StatServer log from startup and confirm that JVM library has been successfully loaded and look for any error releated to jar files loading before the ones you pointed out.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Using Java Categories in StatServer?
« Reply #2 on: July 02, 2011, 05:07:04 AM »
have you installed them? it is not enough to configure them, as statserver itself the extensions do have a setup package that you need to install for each ss on where you want to enable the extensions

Offline amarceau

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: Using Java Categories in StatServer?
« Reply #3 on: July 05, 2011, 12:16:53 PM »
I have installed them.  I have verified they are installed in the ext directory under the statserver within the Java folder.

I've attached the full log file.  I don't see any other errors in the log that have to do with the occstatextension statistics.

So I'm really confused on where to go from here.


Offline borkokrz

  • Full Member
  • ***
  • Posts: 154
  • Karma: 6
Re: Using Java Categories in StatServer?
« Reply #4 on: July 05, 2011, 01:34:40 PM »
Remove the space sign after colon in stats definition, javasubcategory section.

Offline amarceau

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: Using Java Categories in StatServer?
« Reply #5 on: July 08, 2011, 05:05:50 PM »
Removed the space.  Still no go.  Getting the same errors in the logs.  I've opened a ticket with Genesys so I'll see what they say.

Offline fnunezsa

  • Full Member
  • ***
  • Posts: 213
  • Karma: 5
Re: Using Java Categories in StatServer?
« Reply #6 on: July 08, 2011, 06:32:41 PM »
Did you restart your StatServer after removing the space in the Stat definition? Changes to existing statistics require Stat Server to be resarted

Offline amarceau

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: Using Java Categories in StatServer?
« Reply #7 on: July 08, 2011, 06:41:15 PM »
Yes I restarted the statserver - then rechecked the logs and the same message was in there.

Offline borkokrz

  • Full Member
  • ***
  • Posts: 154
  • Karma: 6
Re: Using Java Categories in StatServer?
« Reply #8 on: July 09, 2011, 01:21:28 PM »
Messages like

2011-07-05 07:49:39> Init: [CurrentNumberChainsRetrieved] --> [occstatextension.jar:?] (non-existent JavaSubCategory ' CurrentNumberChainsRetrieved'). Ignored.
2011-07-05 07:49:39> Init: [CurrentNumberChainsFinalized] --> [occstatextension.jar:?] (non-existent JavaSubCategory ' CurrentNumberChainsFinalized'). Ignored.

should disappear after space removal and restart (they did at my prep env)

Message like:

2011-07-05 07:49:39> Init: StatType 'OCCStatExtension.jar: CurrentNumberChainsRetrieved' cannot be used immediately because Java Host Environment is not initialized

may be still in the logs, but shouldn't have impact.

What happens now? You can use mentioned statistics in CCPulse, but the only thing that you receive is 0 ?
Check, that you have a connection between OCS and StatServer. It can be done in two way - as a direct connection to OCS in the SS connections tab or indirect, when you specify StatServer in CampaignGroup object properties. Also check if is it the same SS, that you are using in CCPulse. Also check OCS logs that a connection to SS is opened and operational.

Offline amarceau

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: Using Java Categories in StatServer?
« Reply #9 on: July 13, 2011, 01:01:57 PM »
Here are all my connections:

OCS - Connected to:  TServer & ConfServ
OCS_statserver - Connected to: TServer
CCPulse_statserver - Connected to:  TServer, OCS_Statserver, OCS & ConfServ

Am I missing anything?  I still have the ticket opened with Genesys, but haven't heard anything back as of yet

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Using Java Categories in StatServer?
« Reply #10 on: July 13, 2011, 01:12:34 PM »
Hi,

I've checked log and Stat Server correctly load Java extensions but complains about your custom statistics.

[font=courier]07:49:39.472 Std 10018 Loaded Java extension 'eServiceInteractionStat' from 'eServiceInteractionStat.jar'
07:49:39.487 Trc 10016 Registered Java extension 'occstatextension.jar'
[color=red]2011-07-05 07:49:39> Init: [CurrentNumberChainsRetrieved] --> [occstatextension.jar:?] (non-existent JavaSubCategory ' CurrentNumberChainsRetrieved'). Ignored.
2011-07-05 07:49:39> Init: [CurrentNumberChainsFinalized] --> [occstatextension.jar:?] (non-existent JavaSubCategory ' CurrentNumberChainsFinalized'). Ignored.
[/color]2011-07-05 07:49:39> Init: [CurrentNumberChainsReady] --> [occstatextension.jar:CurrentNumberChainsReady] OK.
[b]2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentNumberChainsFinalized] OK.[/b]
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentFeedbackAccuracy] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentAgentAssignment] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentCampaignGroupDBID] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentNumberAgentsAssigned] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentBusyFactor] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentOverdialRate] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentNumberChainsReady] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentNumberDialPortsUsed] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentAverageWaitingTime] OK.
[b]2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentNumberChainsRetrieved] OK.[/b]
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentTrustFactor] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentHitRatio] OK.
2011-07-05 07:49:39> Init: [occstatextension.jar:CurrentNumberEngPortsUsed] OK.
07:49:39.487 Std 10018 Loaded Java extension 'OCCStatExtension' from 'OCCStatExtension.jar'[/font]

So I would say that there is some error in definition of your statistics. Could you post here export of Stat Server options?

R.

Offline amarceau

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: Using Java Categories in StatServer?
« Reply #11 on: July 13, 2011, 01:16:14 PM »
Hi Rene - attached is the export of all statserver options. 

Thanks for your help,

Offline fnunezsa

  • Full Member
  • ***
  • Posts: 213
  • Karma: 5
Re: Using Java Categories in StatServer?
« Reply #12 on: July 13, 2011, 04:26:02 PM »
Where did you get your OCCStatExtension.jar from? Would you please try to open that file (using WinRAR, 7-ZIP or something like that) and check if there is a file named CurrentNumberChainsRetrieved.class in there?

Offline borkokrz

  • Full Member
  • ***
  • Posts: 154
  • Karma: 6
Re: Using Java Categories in StatServer?
« Reply #13 on: July 13, 2011, 04:29:41 PM »
OCS must open java data stream to statserver, that is used by CCPulse application. This data stream is used to transfer informations necessary for statistics calculation. This can be done in two ways:
- connection to statserver in campaign group connection tab 
- connection to statserver in OCS connections tab

From your post I assume, that you have 2 statserver applications - OCS_statserver and CCP_Statserver. CCPulse+ connects to CCP_statserver ?  If yes, this statserver must be specified in one of the ways as I mentioned above. What purpose has OCS_Statserver ?


Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Using Java Categories in StatServer?
« Reply #14 on: July 14, 2011, 08:06:52 AM »
Hi amarceau,

Have you uploaded here correct export of Stat Server options? I'm asking as there is statistic named "CurrentNumberChainsRetrieved" listed in provided Stat Server log but this one isn't included in provided Stat Server options (I found only stat called "Camp_CurrentNumberChainsRetrieved").

R.