legacy-knowledge-base
公開されました Jun. 30, 2025

フォーム内の要素の数が制限されています。

written-by

Viktória Gyömbér

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 28以上の要素を持つフォームを作成することはできません。このシナリオを試行すると、成功せずにフォームリストにリダイレクトされ、ログにエラーメッセージが出力されます。

 

環境

  • Liferay DXP 7.4

 

解決

com.liferay.portal.kernel.upload.FileItem.threshold.size のプロパティの値を大きくすることで、この問題を回避することができます。 以下の値を使用すると、問題は起こらなくなりました。

com.liferay.portal.kernel.upload.FileItem.threshold.size=8048576

また、tomcat の maxPostSize を増やす必要があるかもしれません。その場合は、 TOMCAT-HOME/conf/server.xmlでこのパラメーターを増やす必要があります:

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"
maxPostSize="8000000" />

ここでは、8MB付近に設定されていますが、デフォルト値は2MB(2097152)であり、-1に設定するとサイズ制限が完全に解除されます。

 

did-this-article-resolve-your-issue

legacy-knowledge-base