Calll Manager throws exception in Caller Info

Version 1
    This document was generated from CDN thread

    Created by: Praful Kapadia on 09-07-2009 08:35:51 AM
    Hello
     
    I've written an application similar to CallerInfo. This has been running for several weeks. However, the application has now stopped working. Every time I restart the application, I get the following error in the Tomcat stdout log  when there's a call:
     
    Exception in thread "(P1-172.20.16.1) ReceiveThread" java.lang.NoClassDefFoundError: com/cisco/cti/util/ThrowableHandler
        at com.cisco.cti.client.implementation.ReceiveThread.run(CTQF)
    Caused by: java.lang.ClassNotFoundException: com.cisco.cti.util.ThrowableHandler
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 1 more
    Exception in thread "(P1-172.20.16.1) HeartbeatReceiveThread" java.lang.NullPointerException
        at com.cisco.cti.protocol.Event.<init>(CTQF)
        at com.cisco.cti.protocol.ProviderEvent.<init>(CTQF)
        at com.cisco.cti.protocol.ProviderOutOfServiceEvent.<init>(CTQF)
        at com.cisco.cti.client.implementation.ResponseTable.I(CTQF)
        at com.cisco.cti.client.implementation.Provider.sessionEnded(CTQF)
        at com.cisco.cti.client.implementation.Provider$HeartbeatReceiveThread.run(CTQF)
     
    172.20.16.1 is the IP address of the Call Manager (system version 7.0.2.10000-18). The Caller Info app is running on another server.
     
    The final exception (NoClassDefFound for com.cisco.cti.util.ThrowableHandler) is strange because that class is in jtapi.jar and that is available (otherwise Caller Info would not have run for weeks!). However, The initial cause is a NullPointerException in the Cisco code.
     
    Is this a bug in the Cisco code? What is causing this and how do I fix it?
     
    Thanks
     
    Praful

    Subject: RE: Calll Manager throws exception in Caller Info
    Replied by: Anitha V on 09-07-2009 10:16:55 AM
    Hi Praful,
     
    Looks like, you are getting NullPointerException.
     
    We need to know at what time the NPE was seen and what should have caused it. we will be need of the detailed Jtapi logs to know the same.
     
    Could you please provide the same?
     
    Thanks and Regards,
    Anitha

    Subject: RE: Calll Manager throws exception in Caller Info
    Replied by: Praful Kapadia on 09-07-2009 06:53:30 PM
    Hi Anitha
     
    My CallerInfo web application registers as an observer (just like the CallerInfo example in the IP Phone SDK). It then just waits to be notified of calls. However, lately, the error mentioned in the log appears. When that happens, CallerInfo stops receiving new call events. I have to restart Tomcat.
     
    I created a jtapi.ini file using the preferences application. I put it in the same directory as jtapi.jar, which is "c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\CallerInfo\WEB-INF\lib". No logs were generated!  Please can you let me know how to generate the jtapi logs you require.
     
    As further information, the CallerInfo code has not changed recently. However, the Call Manager Application User (with which the phones are associated) has had more phones added to it. Previously it reported on about 40 phones now it's about 60. Could this have affected Call Manager's ability to send events for new phones calls?
     
    Thanks
     
    Praful

    Subject: RE: Calll Manager throws exception in Caller Info
    Replied by: ROBERT MISIOR on 24-11-2009 03:53:19 PM
    Hi,

    I was receiving the same exception in a SoftPhone like application. My program did not provide multiple call support, after changing the "Maximum Number of Calls" to 1 and Busy Trigger to 1 on the number assigned to my CTI port it fixed this problem.

    Hope this helps.
    Robert