Skip to Content

JavaMapping issue in SAP PO 7.5 when calling Twilio Java program

Hi Guys,

I trying to call the Twilio SendSMS class in Java Mapping SAP PO 7.5. In Eclipse the Twilio Class is working fine after adding the Reference Library "Twilio-7.24.2.jar" but when I merge the Twilio Java class along with "XPI Mapping Libraries & Twilio-7.24.2.jar" in SAP Java Mapping I am getting errors.


LinkageError during appliction Java mapping org/twilio/sms/App

java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonMappingException at org.twilio.sms.App.sendSMS( at org.twilio.sms.App.transform( at at at at at at at

Twilio Java Code -

I have attached the screen shots for the reference.


Here is the Java Mapping Code

package org.twilio.sms;
import com.twilio.Twilio;
import com.twilio.type.PhoneNumber;

public class App extends AbstractTransformation {
	public static final String ACCOUNT_SID ="ACfcc16e13854745a72a11a8e9fa29818d";
	public static final String AUTH_TOKEN ="39d934fd23909d0f3208ae6d79942f1f";
        public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
        try {
            InputStream inputstream = transformationInput.getInputPayload().getInputStream();
            OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
            // Copy Input content to Output content
            byte[] b = new byte[inputstream.available()];
        } catch (Exception exception) {
            throw new StreamTransformationException(exception.toString());
	public void sendSMS() {
	Message message = Message
	    .creator(new PhoneNumber("+14845228355"), // to
	            new PhoneNumber("+15312017780"), // from
	            "Got it!!") // body
    public static void main(String[] args) {

Add comment
10|10000 characters needed characters exceeded

  • Guys,

    Is it achievable using this Java Mapping program to send SMS? Because I am using the Twilio Class in our SAP PO Java mapping so I am not sure.

    Could any one please confirm is this approach achievable?

    Thanks in advance,


3 Answers

  • Best Answer
    Posted on Sep 14, 2018 at 08:16 AM

    Hi RV,

    It looks like Twilio has a lot of dependencies on other Java-libraries (all the Maven-dependencies listed in java-mapping.jpg). All of these Java-libraries must be included with Java Mapping i.e. the Jar-files must be imported as Imported Archive in Integration Service Builder.

    Best regards,

    P.S. Please adhere from importing the XPI Mapping Libraries as Imported Archive - those Jars are already part of the runtime and could cause problems for you down the line, because they are not in same version, as the actual runtime.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 14, 2018 at 04:11 PM

    Thanks Jacob for your inputs. The issue is Twilio provided a wrong Jar file and I have updated with a different jar file and now the java mapping working as expected.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 11, 2019 at 10:15 PM

    Hello RV R,

    Thanks for the information, good one.

    I was trying to do the same interface but got struck in between, can you provide some more insight on this.

    More on Java code, rest receiver configuration for twilio?

    Add comment
    10|10000 characters needed characters exceeded