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

Curious Problem

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

Created by: Chikeobi Njaka on 05-08-2013 03:15:20 AM
Hi Gang,
Ran into a curious compiler problem. My environment is as follows:
  • Windows 8
  • Eclipse Juno
  • JDK 7 update 21 (64-bit) | JDK 7 update 25 (32-bit)
  • JTAPI 9.x
When debugging the CTI application, using the Eclipse build, there are no compile problems. However, when I use Ant to build I get the following compiler error, regardless of the JDK version (32 or 64 bit):
 1            retval = provider.getCall(ref.getGlobalCallId(), ref.getCallManagerId());
 2                             ^
 3          method CiscoProvider.getCall(int) is not applicable
 4            (actual and formal argument lists differ in length)
 5          method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
 6            (actual and formal argument lists differ in length)
 7      ReferenceDao.java:554: error: no suitable method found for getCall(Integer,Integer)
 8                if (provider.getCall(ref.getGlobalCallId(), ref.getCallManagerId()) != null)
 9                            ^
10          method CiscoProvider.getCall(int) is not applicable
11            (actual and formal argument lists differ in length)
12          method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
13            (actual and formal argument lists differ in length)
14      ReferenceDao.java:465: error: no suitable method found for getCall(int,int)
15                if (provider.getCall(ref.getGlobalCallId().intValue(), ref.getCallManagerId().intValue()) != null)
16                            ^
17          method CiscoProvider.getCall(int) is not applicable
18            (actual and formal argument lists differ in length)
19          method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
20            (actual and formal argument lists differ in length)
I am using CiscoProvider.getCall(int,int). In the code, under Eclipse, both CiscpProvider.getCall(Integer, Integer) and CiscoProvider.getCall(int, int) work (as they should). But when I build, I get the error.

Subject: RE: Curious Problem
Replied by: Abhishek Malhotra on 05-08-2013 03:33:25 AM
Chikeobi Njaka:
Hi Gang,
Ran into a curious compiler problem. My environment is as follows:
  • Windows 8
  • Eclipse Juno
  • JDK 7 update 21 (64-bit) | JDK 7 update 25 (32-bit)
  • JTAPI 9.x
When debugging the CTI application, using the Eclipse build, there are no compile problems. However, when I use Ant to build I get the following compiler error, regardless of the JDK version (32 or 64 bit):
 1            retval = provider.getCall(ref.getGlobalCallId(), ref.getCallManagerId());
 2                             ^
 3          method CiscoProvider.getCall(int) is not applicable
 4            (actual and formal argument lists differ in length)
 5          method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
 6            (actual and formal argument lists differ in length)
 7      ReferenceDao.java:554: error: no suitable method found for getCall(Integer,Integer)
 8                if (provider.getCall(ref.getGlobalCallId(), ref.getCallManagerId()) != null)
 9                            ^
10          method CiscoProvider.getCall(int) is not applicable
11            (actual and formal argument lists differ in length)
12          method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
13            (actual and formal argument lists differ in length)
14      ReferenceDao.java:465: error: no suitable method found for getCall(int,int)
15                if (provider.getCall(ref.getGlobalCallId().intValue(), ref.getCallManagerId().intValue()) != null)
16                            ^
17          method CiscoProvider.getCall(int) is not applicable
18            (actual and formal argument lists differ in length)
19          method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
20            (actual and formal argument lists differ in length)
I am using CiscoProvider.getCall(int,int). In the code, under Eclipse, both CiscpProvider.getCall(Integer, Integer) and CiscoProvider.getCall(int, int) work (as they should). But when I build, I get the error
Is your ant build file referring the same jtapi.jar that you are using to compile your code in eclipse?
Content for Community-Ad