I think use “maxSavePostSize” instead of “maxPostSize”.
another option is
There is an RFA - PSC00353298 where there was AIA client crash. In this, it was suggested to set environment variable HTTP_BUFFER_SIZE to high value like 204900 and it worked.
Thanks for replying.
Tried: maxSavePostSize="-1" in the conf/server.xml file, restarted Tomcat, but that didn't solve my problem.
Then I looked at PSC00353298, so added HTTP_BUFFER_SIZE in the progress.ini file, but that didn't solve my problem either...
I still find it strange that this works when we go through IIS -> TomCat -> AIA on port 80 and define a Application Routing Request in IIS.
what is your tomcat version?
and how you are setting size in IIS? what is that attribute in IIS?
could you capture http request/response message in case of client -> tomcat and client -> IIS - > tomcat?
you can use url interceptor "burp suite" for this. here is the video link to use it
i am interested to know what is difference between request header of both cases.
It's version 9 of TomCat.
If going throught IIS, then I set in Application Routing Request, the following parameter: 'Response Buffer Threshold (KB)'
i found similar attribute in tomcat. to use that attribute, you have use NIO connector.
attribute is "socket.appWriteBufSize"
i am not sure whether it will work. try once and let see.
refer these links:
Looking in my server.xml file, I saw that the connector is already there (and started -> log files).
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
There's no "socket.appWriteBufSize" in the XML file, where do I need to place that ?
I was wondering, I placed the maxSavePostSize="-1" in the following section:
<Connector port="8080" protocol="HTTP/1.1"
<!-- A "Connector" using the shared thread pool-->
Is that correct ?
if you are using 8080 port to connect to tomcat, then modify 8080 connector like this:
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
Thanks for helping me out with this.
I changed the xml file with your suggestion, and then restarted Tomcat.
Still the same problem, the client crashes...
try to increase value in "socket.appWriteBufSize" and "socket.appReadBufSize". the value in byte. use value like 1000000.
I've set it to 2000000, and still no luck ...
The file in the temp-table blob file is 1 586 125 bytes.
trim out client/server .p code for problem specific and send me on my email email@example.com.
i will try to reproduce it on my local.
following steps done.
1. created table with provide .df file.
2. populated table with 3 row. each row have same blob data (.r file you provided).
3. trim out client/server code for only temp-table as output. Below is the code:
DEFINE TEMP-TABLE tt-sysfiletransfer NO-UNDO FIELD sysfiletransfernaam AS CHARACTER LABEL 'Bestandsnaam' FORMAT 'x(40)' INITIAL '' FIELD sysfiletransferpad AS CHARACTER LABEL 'sysfiletransferpad' FORMAT 'x(80)' INITIAL '' FIELD typefile AS CHARACTER LABEL 'Type file' FORMAT 'x(8)' INITIAL '' FIELD blobfile AS BLOB FORMAT 'x(8)' FIELD timestamp AS DATETIME LABEL 'Timestamp' FORMAT '99/99/9999 HH:MM:SS.SSS' INDEX sysfiletransfernaam sysfiletransferpad.
DEFINE VARIABLE hWS AS HANDLE NO-UNDO.DEFINE VAR picfile AS CHAR.
CREATE SERVER hWS.IF hWS:CONNECT(" -URL localhost:8080/.../Aia THENDO:message "connected" view-as alert-box.RUN "apchkusernet.p" ON hWS(OUTPUT TABLE tt-sysfiletransfer).END.
FOR EACH tt-sysfiletransfer:picfile = tt-sysfiletransfer.sysfiletransfernaam + ".r".COPY-LOB tt-sysfiletransfer.blobfile TO FILE picfile.DISPLAY tt-sysfiletransfer.sysfiletransfernaam.END.
DEFINE OUTPUT PARAMETER TABLE FOR tt-sysfiletransfer.
FOR EACH sysfiletransfer: CREATE tt-sysfiletransfer. BUFFER-COPY sysfiletransfer TO tt-sysfiletransfer.END.
4. started tomcat in box (version 7.0.3) having aia deployed.
5. started appserver.
6. run the client. RESULT: successfully received the temp-table.
7. download tomcat version 18.104.22.168 and deployed aia in it.
8. started tomcat and run client. RESULT: successfully received the temp-table.
So, i could not get any error for both version of tomcat.
Note: i did not do any change in server.xml file.
First, thanks for the effort.
Tried your example on the server, so with '-URL ...localhost...', and indeed, that works.
Doing exact the same thing from my pc, where localhost, is changed to the public IP-adres of the server, then the client-session crashes....
So still no luck ...
Am I correct that IIS has nothing to do with this ?
IIS act as load balancer for tomcat. So, yes, IIS has nothing to do with this.
so, you are able to run client on server(localhost) machine but not on remote machine.
i am suspecting for network issue. just check round trip from remote machine to server. on server side put a simple .p file like return "hello" and call it from client(remote nachine). if this will work, then we will be sure that there is no network issue.
Round trip just works fine, from remote client to server with public addres.
Transferring a file that's about 100Kb big, works also. It's just when I try to transfer a file that is bigger then 1MB