how to change maximum permitted size (262144 bytes)

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

hi 

i used to use soap service generated by service builder, it's 6.2. 

now i use 7.4, liferay not support soap now.

i try test me rest service via http://localhost:8080/api/jsonws


 

it's simple service, but i have to put a long string. it return a exception message

The field jsonInfo exceeds its maximum permitted size of 262144 bytes

if i use url to trigger it, such like 

https://localhost:8080/api/jsonws/snm.record/feedback/json-info/<my string>

it shows different error message

Request header is too large


 

i try add properties in portal-ext.properties

com.liferay.portal.upload.LiferayFileItem.threshold.size=10485760

(i do not know is it right why or not, i just try search 262144, and this is only one value is 262144.)

my questions is: if i was wrong, how to set the maximum permitted size. however, 262144 bytes is too small.

and, i dont know why, sometimes, from api/jsonws, it shows nothing and console form server also shows nothing. just like it never been triggered.