on 08-16-2008 7:56 PM
All,
I am trying to code an UDF.
IMPORTS:
java.lang.;javax.xml.transform.stream.StreamResult;com.sap.aii.mapping.lookup.;javax.xml.transform.dom.DOMSource;javax.xml.parsers.*;
*CODE:
//write your code here
String strAttribute = "";
Map map = container.getTransformationParameters();
strAttribute = (String)map.get ( StreamTransformationConstants.MESSAGE_ID);
return strAttribute;*
Error:
Check Result for Object MM_OPTIERROR_PI Source code has syntax error: D:/usr/sap/PID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapc22815d06bc111dda4d8005056986469/source/com/sap/xi/tf/_MM_OPTIERROR_PI_.java:3: cannot resolve symbol symbol : class lang location: package util
import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import java.util.lang;import java.lang.;import com.sap.aii.mapping.lookup.;import javax.xml.transform.stream.StreamResult;import javax.xml.transform.dom.DOMSource;import javax.xml.parsers.; ^ 1 error
I see that there are imports in the error message that are NOT in the imports section of the code
no need to write anything in import section.. just write this code
String messageID= null;
java.util.Map map;
map = container.getTransformationParameters();
messageID = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
return messageID;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naveen,
I don't think any of your imports are needed for the code posted, you could just delete the UDF-imports and then save & try again.
Also - in my small colourful world - the import syntax should be
com.sap.aii.mapping.lookup.*
instead of
com.sap.aii.mapping.lookup.
and an import of
java.lang.*
should never be needed. Please correct me if I'm wrong here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Just addition to above,, add java.lang in import section of UDF...
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
Could you please add java.util.* in the imports section and try the scenario again.
Thanx
Aamir
Edited by: Aamir Suhail on Aug 16, 2008 9:24 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.