on 05-06-2010 8:42 AM
Hi All,
I have written fileupload.jsp which will upload the file attachment of size < 10 mb, the application is deployed in SAP WAS.
Initially we face upload issues like Please increase File Buffer Size, we increased the Read Buffer size and File Buffer in HTTP provider properties to 10mb in SAP VA admin tool.
We could resolve the attachment issues to an extent but we still face upload failures in 10 times try or randomly. The failures are not happening continously. I m getting the below exception in log:
l[com.sap.engine.services.httpserver.exceptions.HttpIllegalArgumentException: Cannot read from InputStream. The buffer is null or the offset and length are incorrect.
I believe there is no problem with coding, Could you please suggest me which HTTP Provider parameters we can fine tune to avoid the above issues?
I have deployed the same application in Tomcat but i couldn't see any issues even after number of uploads.
Regards,
Ravi.
Hi Ravi,
Since nobody has replied to this thread, I suggest you raise an OSS message with SAP and ask them.
And once this gets solved, do share the solution here as well.
Regards,
Shitij
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I have done the following changes, oss notes is of no use:
1) while (totalBytesRead < formDataLength)
{
byteRead = in.read( dataBytes, totalBytesRead, formDataLength - totalBytesRead );// changed the code here
totalBytesRead += byteRead;
}
2) Increase read buffer size of HTTP provider in VA admin
Regards,
Ravi.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.