Skip to Content
0
Former Member
Feb 25, 2011 at 06:17 AM

Deprecated API and RFC connection issues in PI 7.1

90 Views

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 ???