on 11-05-2014 5:37 AM
Hi All,
I have migrated a scenario in PI 7.31 from a old XI system.
In that scenarion,there was a UDF called duplicatefile check which basically declares an object of DuplicateFileValidation.and then by using the object it calls a method "validation " which is already declared in the class DuplicateFileValidation.
The udf duplicatefile check is like that:
String response = null;
AbstractTrace trace = container.getTrace();
DuplicateFileValidation instance = new DuplicateFileValidation();
response = instance.validation(service[0],communicationchannel[0] ,trace,container);
result.addValue(response);
I have already imported the DuplicateFileValidation as an imported archive in the fubction tab of message mapping
In older version It was working fine.but in 7.31 while activating the message mapping an Error comes:
Can anyone have any idea how to solve this:
Pls help me
Have you referred the imported archive in the archives used tab of functions?
Regards
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Suparna,
From XI 3.0 and PI 7.0 to PI 7.1 and onwards the API has changed ans you can find some differences.
You are calling a method validation from the class instance, Are you sure that method is accessible?, have you imported the jar and it is compiled correctly?.
Try to use the NWDS to compile before to upload to PI.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Inaki
I compiled the DuplicateFileValidation class in NWDS and it is working fine
After that I imported the Zip file
@Jannus Botha
in the archive used Tab :
first Row Second row
DuplicateFileValidation namespace in which the mapping object belongs to
Fnc and java rea:
com.sap.aii.mapping.api.* |
com.sap.aii.mapping.lookup.* |
java.io.*
java.lang.reflect.* |
java.util.* |
com.abc.duplicatefile.*
com.sap.aii.mappingtool.tf7.rt.*
Please guys need soln
Hi Suparna,
Fnc and java rea:
com.sap.aii.mapping.api.* |
com.sap.aii.mapping.lookup.* |
java.io.*
java.lang.reflect.* |
java.util.* |
com.abc.duplicatefile.*
com.sap.aii.mappingtool.tf7.rt.*
I suppose in com.abc.duplicatefile.* you have DuplicateFileValidation. Have you imported the jar? Do you have the jar in the same namespace where the UDF has been developed?
Regards.
Hi,
Can you please send me a screenshot of your Function Tap in the Message Mapping. Also make sure that you copied the correct naming of parameters and context etc.
Regards,
Jannus Botha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.