@Warren_Cooper Out of the sudden, now my POJOs are not getting any content value from the service’s input fields.
public String Send(String[] emailParamTO, String emailParamFROM, String[] emailParamCC, String emailParamSUBJECT, String emailParamCONTENT_TYPE, PLS_EmailContent emailContent)
The PLS_EmailContent is my POJO object (document type) composed by:
// Copyright (c) 2017 Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries.
// This program is confidential, proprietary and a trade secret to Software AG and/or its licensors and may not be reproduced, published or disclosed to others without the express written consent of Software AG.
// Wrapper Timestamp: Mon Oct 05 14:17:21 CEST 2020
package gf_pls_genericservices.docs.email.workaround.emailcontent;
import com.softwareag.applatform.pls.is.DataKey;
/**
*** AUTO-GENERATED by Software AG Application Platform ***
This class is a simple POJO with Java Bean-style properties/getters/setters.
It is used to represent a data element in the signature of a Service from the IS namespace.
In addition to getters and setters, it uses a few Application Platform annotations to assist
with marshaling between POJOs and IS Service pipeline.
@author Software AG Application Platform
*/
@com.softwareag.applatform.pls.is.DoctypeData(key="GF_PLS_GenericServices.docs.email.workaround:EmailContent")
public class PLS_EmailContent {
public static final String IS_PACKAGE_VERSION="GF_PLS_GenericServices:1.0";
/**
Instance variable for the Content pipeline property.
*/
@DataKey (key = "Content", isType = "string", isDim = 0)
private String pls_content;
public String getContent() {
return pls_content;
}
public void setContent(String inContent) {
pls_content = inContent;
}
}
When I run the service and add the “Content” field as “Test”, the content variable continues to be null…
if (emailContent != null)
{
String _emailParamCONTENT = "";
String emailParamTEMPLATE_NAME = "";
TemplateEntry[] emailParamTEMPLATE_PARAMS = null;
stdLog.append("\r\nContent: " + emailContent.getContent());
}
Content: null
ERROR: java.lang.NullPointerException
Why isn’t it working now? I tried to recreate the POJO, republishing the PLS, etc… nothing seems to be working…
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods#Application-Platform