Deprecated API and RFC connection issues in PI 7.1

Hi all,
I am new to this Forum..
I am working in File to Proxy scenario where i am using UDF to implemnt few functions.
But i am getting the following Error :
Source text of object Message Mapping: MM_FILE_10_943 | urn://fiat.com/mm/if_10_943 has syntax errors:
Function sendMonitor, Line 14:
cannot find symbol symbol  : class CallRFCManager location: class com.sap.xi.tf._MM_FILE_10_943_    CallRFCManager rfc=new CallRFCManager();    ^
Function sendMonitor, Line 14:
cannot find symbol symbol  : class CallRFCManager location: class com.sap.xi.tf._MM_FILE_10_943_    CallRFCManager rfc=new CallRFCManager();                           ^
Function sendMonitor, Line 17:
cannot find symbol symbol  : variable Constants location: class com.sap.xi.tf._MM_FILE_10_943_         if(rfc.connect(Constants.XISYSTEM)){                             ^ Note: /disk2/sap/TX0/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map9c6141de40a611e0ad290000003d38da/source/com/sap/xi/tf/_MM_FILE_10_943_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /disk2/sap/TX0/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map9c6141de40a611e0ad290000003d38da/source/com/sap/xi/tf/_MM_FILE_10_943_.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors
The code i am using is:
   //write your code here
   // INPUT: activate ; id; descrizione
   AbstractTrace trace;
   String messID;
   java.util.Map map;
   trace = container.getTrace();
   map = container.getTransformationParameters();
   messID = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
   CallRFCManager rfc=new CallRFCManager();
   if (a.equals("true")){
        if(rfc.connect(Constants.XISYSTEM)){     
              try{
                    rfc.traceMonitor(messID,b,c);
                    trace.addInfo("Ok trace monitor");
                    rfc.disconnect();
              } catch (Exception ex) {
                    trace.addInfo("Errore in sendMonitor CAUSA:" + ex.getMessage());
                    rfc.disconnect();
        }else{
                  trace.addInfo("Errore in sendMonitor CAUSA: errore sulla connessione ad XI"); 
   return a;
Pleasae help me ....what is the reason for this ???
Advertisement
Reply

Hi ,
the package com.fiat.sapiens.udf.* is saved in the IA_JAVA.zip file.
I imported it in the imported archive and added this jar in the import tab of function library
i also added ti in the archive used tab in function.
But still it is showing this Error.
under IA_JAVA.zip  i have  testJCO.java which has the folowing code:
package com.fiat.sapiens.xi.udf;
// Referenced classes of package com.fiat.sapiens.xi.udf:
//            CallRFCManager
public class TestJCO
    public TestJCO()
    public static void main(String args[])
        System.setProperty("SAPSYSTEMNAME", "DX0");
        CallRFCManager rfc = new CallRFCManager();
        rfc.connect("XI");
        try
            rfc.schedNR("10", "20", "30", "40", "50", "60");
        catch(Exception e1)
            e1.printStackTrace();
        if(rfc.connect())
            rfc.connect();
            try
                String a = rfc.checkRARCRE("ZZ");
                System.out.println(a);
            catch(Exception e)
                e.printStackTrace();
        System.out.println("");