cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays

OutOfMemoryError on provider acquision

574
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: David Requena on 16-07-2013 06:20:29 AM
Hi All,

I'm experiencing an issue in which pee.getProvider() fails with an OutOfMemoryError + bad auth no mater which credentials I'm using. That happens even with the makecall example app (see stack trace below). Any clue what might be going on?

 1C:\Program Files\Cisco\JTAPI64Tools\makecall>java.exe makecall 192.168.160.24 jtest jtest 100 3001 3002
 2Initializing Jtapi
 3Opening 192.168.160.24;login=jtest;passwd=jtest...
 4
 5Exception in thread "(P1-192.168.160.24) EventThread" java.lang.OutOfMemoryError: Java heap space
 6        at java.util.Hashtable.<init>(Hashtable.java:162)
 7        at java.util.Hashtable.<init>(Hashtable.java:175)
 8        at com.cisco.cti.client.implementation.DeviceMap.<init>(DeviceMap.java:20)
 9        at com.cisco.cti.client.implementation.Provider.handleEvent(Provider.java:2502)
10        at com.cisco.cti.client.implementation.Provider$EventThread.messageReceived(Provider.java:610)
11        at com.cisco.cti.util.MessageThread.deliver(MessageThread.java:358)
12        at com.cisco.cti.util.MessageThread.deliverAll(MessageThread.java:327)
13        at com.cisco.cti.util.MessageThread.run(MessageThread.java:282)
14Caught exception com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- user is not authorized, please check CM administration.
15Stopping actors
TIA!

Subject: RE: OutOfMemoryError on provider acquision
Replied by: David Staudt on 16-07-2013 10:31:29 AM
OOM error is pretty strange.  Can you confirm you are running Oracle Java, a Java version supported by your JTAPI (check the Dev Guide), on a more-or-less standard OS?
Enabling detailed JTAPI logs and checking more be helpful...feel free to attach here if you can't spot the cause.

Subject: RE: OutOfMemoryError on provider acquision
Replied by: David Requena on 17-07-2013 03:07:56 AM
David Staudt:
OOM error is pretty strange.  Can you confirm you are running Oracle Java, a Java version supported by your JTAPI (check the Dev Guide), on a more-or-less standard OS?
Enabling detailed JTAPI logs and checking more be helpful...feel free to attach here if you can't spot the cause.

This is on Windows 7 x64, using the jre bundled with the jtapi plugin (happens to be Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode)).
CUCM system version is 8.6.2.10000-14, plugin version is Cisco JTAPI 8.6(2.10000)-2 Release , downloaded from that CUCM instance.

Trace just indicates that OOMError occurred as far as I can tell. Please find attached log and jtapi.ini files.

Many thanks!

Subject: SOLVED: OutOfMemoryError on provider acquision
Replied by: David Requena on 17-07-2013 03:53:32 AM
Got it!

For reference to other people who might get also mislead by this spurious OOMError exception in the future, this was caused by some other admin removing the user from the "Standard CTI Enabled" group. As to why should that raise an unrelated  java runtime error instead of a regular PlatformException I'm fully at a loss...

Thanks.

Subject: RE: OutOfMemoryError on provider acquision
Replied by: Tohru Ohzono on 18-07-2013 11:31:47 PM
FYI.


This is a minor defect in jtapi.lib and have already been fixed on jtapi.lib of UnifiedCM 8.6(2a) SU1(8.6.2.21900-5) or later.


Thanks.

Subject: RE: OutOfMemoryError on provider acquision
Replied by: David Requena on 19-07-2013 02:01:44 AM
Good to know, many thanks.
Content for Community-Ad