Since v11 : Form is larger than max length 1048576

95 views
Skip to first unread message

Nicolas Micoud

unread,
Mar 20, 2024, 9:51:38 AM3/20/24
to iDempiere
Hi,

Since migration to v11, I encounter issue like this in logs:

14:06:10.276-----------> Request.getParameters: java.lang.IllegalStateException: Form is larger than max length 1048576 [1862]
14:06:10.276-----------> HttpChannel.handleException: handleException /webui/zkau org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content [1862]

From what I understand, is when user are writing a 'big' email (with some snapshots) and the sending fails.
I think I faced this issue some years ago and solution was to change content of org.adempiere.ui.zk/WEB-INF/jetty-web.xml (by multiplying by 10 value of maxFormContentSize)

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<!-- IDEMPIERE-2490 -->
<Set name="maxFormContentSize">10485760</Set>
<Set name="maxFormKeys">2000</Set>
</Configure>

So I think this is not taken in account as log states "Form is larger than max length 1048576" whereas I would expect "Form is larger than max length 10485760".

Any idea?

Thanks,

Nicolas

Nicolas Micoud

unread,
Mar 20, 2024, 10:06:39 AM3/20/24
to iDempiere
Ok, I found the issue, between the keyboard and the chair... I did not reapply changes when migrating to v11...

False alarm :)

Regards,

Nicolas

Gabriel Vila

unread,
Jul 23, 2025, 1:30:50 PMJul 23
to iDempiere
Hi,
I'm having the same issue in idempiere 12:

Request.getParameters: java.lang.IllegalStateException: Form is larger than max length 1048576

Any idea ?
Thanks !!

Nicolas Micoud

unread,
Jul 24, 2025, 4:11:04 AMJul 24
to iDempiere
Hi,

You can change the value in  org.adempiere.ui.zk/WEB-INF/jetty-web.xml

Value  is <Set name="maxFormContentSize">1048576</Set>
I change it to
<Set name="maxFormContentSize">10485760</Set>

(multiplied by 10)

Regards,

Nicolas
Reply all
Reply to author
Forward
0 new messages