Hi,
Getting com.adobe.livecycle.formsservice.exception.RenderFormException: java.lang.IllegalStateException
Code is as below
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT,
"https://mywebsphere.net:22910");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,
ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE,"WebSphere");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
String formServiceUrl = "https://mywebsphere.net:22910/FormsQS";
String formServiceTargetUrl = "https://mywebsphere.net:22910/FormsQS/HandleData";
String templateDir = "/com/adobe/template";
String templateName = "template1 .xdp";
InputStream invcStream = new ByteArrayInputStream(invcXmlString.getBytes());
Document inXMData = new Document(invcStream);
URLSpec uriValues = new URLSpec();
uriValues.setApplicationWebRoot(formServiceUrl);
uriValues.setContentRootURI(templateDir);
uriValues.setTargetURL(formServiceTargetUrl);
PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
pdfFormRenderSpec.setCacheEnabled(new Boolean(false));
pdfFormRenderSpec.setPDFVersion(PDFVersion.PDFVersion_1_6);
FormsResult formOut = formsClient.renderPDFForm(templateName, // formQuery
inXMData, // inDataDoc
pdfFormRenderSpec, // PDFFormRenderSpec
uriValues, // urlSpec
null // attachments
);
Please give some inputs to resolve this.