Expand my Community achievements bar.

ProcessFormSubmissionException: "read EOF on inputStream with 512 bytes pending"

Avatar

Former Community Member
Hello,



I am successfully rendering a .xdp form in HTML + Weblogic Portal.

However, on Submit, when I process the post, I am getting ProcessFormSubmissionException:"read EOF on inputStream with 512 bytes pending".



The xdp form's submit method is set to XDP.



Thanks in advance.



Here is the code:



public static String getFormData(HttpServletRequest request)

{

try

{

// Process the form submission to extract the form dat

IFormServer ifs = (IFormServer) new EJBClient();

IOutputContext ioc = ifs.processFormSubmission(request, "OutputType=1");

byte[] formData = ioc.getOutputContent();



String formXML = new String(formData);



return formXML;

}

catch (ProcessFormSubmissionException formException){

// process error

}

}
1 Reply

Avatar

Former Community Member
It is a problem with character encoding.

You should set explicity the character set in the request of the servlet that process the data submitted to UTF-8 and do it as well in the response of the servlet that serves the form as HTML.



Good luck.