cancel
Showing results for 
Search instead for 
Did you mean: 

Java mapping error..

siddhesh_pathak4
Contributor
0 Kudos

Hello all,

I am working on java mapping. I have imported the java archive in imported archives and used in interface mapping but when i run the interface it is giving me below exception,

"No_Stream_transformation"

"Java class CreateXYZ does not implement the required interface"

Please help me out of this...Thanks for all your help in advance.

Thanks,

Siddhesh.

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Have you included the below import statement in your JAVA Code:

import com.sap.aii.mapping.api.StreamTransformation;

Regards,

Abhishek.

siddhesh_pathak4
Contributor
0 Kudos

Hello,

Thanks for quick response. I have imported all the things needed, Check out

import java.io.InputStream;

import java.io.OutputStream;

import java.io.PrintWriter;

import java.io.StringWriter;

import java.util.Map;

import com.sap.aii.mapping.api.DynamicConfiguration;

import com.sap.aii.mapping.api.DynamicConfigurationKey;

import com.sap.aii.mapping.api.StreamTransformation;

import com.sap.aii.mapping.api.StreamTransformationConstants;

import com.sap.aii.mapping.api.StreamTransformationException;

import java.security.MessageDigest;

public final class CreateChecksum implements StreamTransformation {

jyothi_anagani
Active Contributor
0 Kudos

Hi Siddhesh Pathak,

As you told like you are implimenting StreamTransformation interface. Please check these

1. check the .jar file of StreamTransformation ( aii_map_api.jar ) is added to that particular project or not.

2. check the code what you wrote has to be there in execute() method. Because XI will directly call that method only.

Thanks.

Answers (4)

Answers (4)

siddhesh_pathak4
Contributor
0 Kudos

Solved

siddhesh_pathak4
Contributor
0 Kudos

Problem Solved.

Verified with the imported archive and found that in my .class the implements StreamTransformation is missing.

THanks alll..

Edited by: Siddhesh Pathak on Jul 6, 2009 12:24 PM

0 Kudos

Hi Siddhesh,

in order to work with Java Mapping you need to implement Streamtransformation,

Ex:

public class CreateXYZ implements StreamTransformation{

//your logic

}

for this you need to add a .jar to your project, the name of the .jar file is: "aii_map_api.jar"

Regards

Venkat

Former Member
0 Kudos

Please have a look at this blog:

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

Regards,

Manjusha.