Cisco Unified Application Environment Developer Forums

« Back to Developers

RE: JTAPI "Error invalid EnumHandle"

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all,
We have an app running on CUAE 2.4.3 with a patched JTAPI provider (the change to add JtapiCallId). It was working fine, then we started getting these errors:
2009:02:10::11:12:45.921: Info: JTapiServer @ IpcConnection@127.0.0.1:1392: received message: Register{ CtiManager = (s) xxx.xxx.xxx.xxx, CtiManager = (s) xxx.xxx.xxx.xxx, Username = (s) u, Password = (s) *****, DeviceName = (s) SEP001F9E26D52B, DeviceType = (i) MonitoredDevice, ThirdParty = (i) 1, DynamicRegistration = (i) 0 }
2009:02:10::11:12:45.921: Info: ProviderWrapper( [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx], u, ***** ): addListener added device mon-dev( SEP001F9E26D52B )
2009:02:10::11:12:45.921: Info: ProviderWrapper( [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx], u, ***** ): looking for provider xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;login=u;passwd=*****
2009:02:10::11:13:02.093: Error: JTapiServer @ IpcConnection@127.0.0.1:1392: sending message: Error{ FailReason = (i) GeneralFailure, MessageType = (i) Register, Message = (s) java.lang.Exception: addListener could not open provider xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;login=u;passwd=*****: com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- Error invalid EnumHandle, Args = (f) { CtiManager = (s) xxx.xxx.xxx.xxx, CtiManager = (s) xxx.xxx.xxx.xxx, Username = (s) u, Password = (s) *****, DeviceName = (s) SEP001F9E26D52B, DeviceType = (i) MonitoredDevice, ThirdParty = (i) 1, DynamicRegistration = (i) 0 } }
java.lang.Exception: addListener could not open provider xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;login=u;passwd=*****: com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- Error invalid EnumHandle
    at metreos.service.jtapi.ProviderWrapper.addListener(Unknown Source)
    at metreos.service.jtapi.Device.open(Unknown Source)
    at metreos.service.jtapi.DeviceMap.add(Unknown Source)
    at metreos.service.jtapi.JTapiServer.registerDevice(Unknown Source)
    at metreos.service.jtapi.JTapiServer.doReceived(Unknown Source)
    at metreos.service.jtapi.JTapiServer.received(Unknown Source)
    at metreos.service.jtapi.JTapiServer.received(Unknown Source)
    at metreos.core.ipc.flatmaps.FlatmapIpcListenerAdapter.received(Unknown Source)
    at metreos.core.ipc.flatmaps.FlatmapIpcListenerAdapter.received(Unknown Source)
    at metreos.core.net.ipc.IpcConnection.fireReceived(Unknown Source)
    at metreos.core.net.ipc.IpcConnection.run(Unknown Source)
Caused by: com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- Error invalid EnumHandle
    at com.cisco.jtapi.CiscoJtapiPeerImpl.getProvider(CTQF)
    at metreos.service.jtapi.ProviderFactory.getProvider(Unknown Source)
    at metreos.service.jtapi.ProviderWrapper.openProvider(Unknown Source)
    ... 11 more
Restarting the JTAPI service didn't help. All devices are Enabled Stopped. I see the Java process running, so I don't think it's the old "where's Java?" path problem.
This is running against CUCM 6.1.2.1127-1.
Thanks for any help,
Craig

Craig, The platform exception comes from deep down the CUCM JTAPI stack. I have to admit that I have not see this particular cause (invalidEnumHandle) and would have to further look at it.
Meanwhile, to keep you going, can you save the logs and try restarting the CTI manager in the CUCM and see if this gets resolved.
Thanks,
Rajesh
Hi all,
We have an app running on CUAE 2.4.3 with a patched JTAPI provider (the change to add JtapiCallId). It was working fine, then we started getting these errors:
2009:02:10::11:12:45.921: Info: JTapiServer @ IpcConnection@127.0.0.1:1392: received message: Register{ CtiManager = (s) xxx.xxx.xxx.xxx, CtiManager = (s) xxx.xxx.xxx.xxx, Username = (s) u, Password = (s) *****, DeviceName = (s) SEP001F9E26D52B, DeviceType = (i) MonitoredDevice, ThirdParty = (i) 1, DynamicRegistration = (i) 0 }
2009:02:10::11:12:45.921: Info: ProviderWrapper( [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx], u, ***** ): addListener added device mon-dev( SEP001F9E26D52B )
2009:02:10::11:12:45.921: Info: ProviderWrapper( [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx], u, ***** ): looking for provider xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;login=u;passwd=*****
2009:02:10::11:13:02.093: Error: JTapiServer @ IpcConnection@127.0.0.1:1392: sending message: Error{ FailReason = (i) GeneralFailure, MessageType = (i) Register, Message = (s) java.lang.Exception: addListener could not open provider xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;login=u;passwd=*****: com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- Error invalid EnumHandle, Args = (f) { CtiManager = (s) xxx.xxx.xxx.xxx, CtiManager = (s) xxx.xxx.xxx.xxx, Username = (s) u, Password = (s) *****, DeviceName = (s) SEP001F9E26D52B, DeviceType = (i) MonitoredDevice, ThirdParty = (i) 1, DynamicRegistration = (i) 0 } }
java.lang.Exception: addListener could not open provider xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;login=u;passwd=*****: com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- Error invalid EnumHandle
    at metreos.service.jtapi.ProviderWrapper.addListener(Unknown Source)
    at metreos.service.jtapi.Device.open(Unknown Source)
    at metreos.service.jtapi.DeviceMap.add(Unknown Source)
    at metreos.service.jtapi.JTapiServer.registerDevice(Unknown Source)
    at metreos.service.jtapi.JTapiServer.doReceived(Unknown Source)
    at metreos.service.jtapi.JTapiServer.received(Unknown Source)
    at metreos.service.jtapi.JTapiServer.received(Unknown Source)
    at metreos.core.ipc.flatmaps.FlatmapIpcListenerAdapter.received(Unknown Source)
    at metreos.core.ipc.flatmaps.FlatmapIpcListenerAdapter.received(Unknown Source)
    at metreos.core.net.ipc.IpcConnection.fireReceived(Unknown Source)
    at metreos.core.net.ipc.IpcConnection.run(Unknown Source)
Caused by: com.cisco.jtapi.PlatformExceptionImpl: Unable to create provider -- Error invalid EnumHandle
    at com.cisco.jtapi.CiscoJtapiPeerImpl.getProvider(CTQF)
    at metreos.service.jtapi.ProviderFactory.getProvider(Unknown Source)
    at metreos.service.jtapi.ProviderWrapper.openProvider(Unknown Source)
    ... 11 more
Restarting the JTAPI service didn't help. All devices are Enabled Stopped. I see the Java process running, so I don't think it's the old "where's Java?" path problem.
This is running against CUCM 6.1.2.1127-1.
Thanks for any help,
Craig

Unfortunately, this is a production CUCM cluster running other applications, so it is not possible to restart the CTI Manager service unless we can communicate to the customer that it will definitely fix the problem. The issue is affecting a production application, so I would greatly appreciate any input you and the team can provide.
Thanks,
Craig

Craig, I had posted this in the JTAPI forum since this error comes from the JTAPI stack. This is the reply i got from David.
David Staudt has created a new message in the forum "Cisco JTAPI
Questions":
--------------------------------------------------------------
Not
sure I've seen that error before.  Please confirm that the JTAPI client version
matches up with the UCM version.  If that's correct please post detailed JTAPI
and CTI Manager logs.
Thanks,
Rajesh

Hi Rajesh,
Yes, I've confirmed the CUCM cluster is marked as 6.1 in CUAE. I sent detailed logs to TAC, please reference TAC #610691521.
Thanks again for any help,
Craig

Resolved