Friday, January 31, 2014

Increase post back size in Glassfish

I created a small mobile APEX app for my football team where they can upload pictures to the app.


Sometimes saving the picture worked, sometimes it didn't. If it didn't work I hit the following error: "Post too large". It turned out that my Max Post Size in Configurations - server-config - Network Config - Network Listeners - http-listener-1 under HTTP was set too small.


After increasing it worked like a charm.

5 comments:

Unknown said...

Thanks, this is good to know.

Unknown said...

Thanks, this information may indeed come in handy.

Karen said...

Just ran into this same Post Too Large when creating large PDF documents. Another source of the same issue, same solution.
Nice to see someone APEX with the same error - thanks Dimitri :)

Karen said...

Got this same Post Too Large issue when creating large PDF docs via APEX using FOP deployed via Glassfish. Another source of the same error...same solution - increase maxPostSize. Nice to see another APEX person with similar issue - thanks Dimitri

Unknown said...

I have GF 5.0 build1 (the same on GF 4.1) - setting Max Post Size to -1 or any other million value I got the same error: Severe: java.lang.IllegalStateException: GRIZZLY0205: Post too large :(