TERR error in Spotfire Web Player: "Bad Request (400) - Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: Form is larger than max length 200000"

TERR error in Spotfire Web Player: "Bad Request (400) - Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: Form is larger than max length 200000"

book

Article ID: KB0070385

calendar_today

Updated On:

Products Versions
Spotfire Web Player 11.4 and higher
Spotfire Server 11.4 and higher
Spotfire Enterprise Runtime for R - Server Edition 1.7 and higher

Description

A data function that works when tested using the Spotfire desktop client's built-in local TERR engine but fails with the following error when it is run from Spotfire Web Player or Automation Services:

Error from Remote Service: Bad Request (400) Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: Form is larger than max length 200000
at
 Spotfire.Dxp.Data.DataFunctions.Executors. RemoteServiceClient.RunFunction (DataFunctionInvocation invocation)
at Spotfire.Dxp.Data.DataFunctions.Executors.SPlus FunctionExecutor.<ExecuteFunction>d_11.MoveNext()
at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d_8.MoveNext()


Reference Error Image :
User-added image

Issue/Introduction

This article outlines the process of solving TERR error in Spotfire Web Player: "Bad Request (400) - Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: Form is larger than max length 200000"

Environment

All

Resolution

This error message indicates that the data function services fail when the body/form is larger than the max length of 200000. If the size of a multipart request body is larger than the default value, the request fails to parse.

Adding/Modifying the below parameters in the TERR service configuration (custom.properties) will solve the problem
 server.jetty.max-http-form-post-size:500MB

Note: This resolution is applicable for PYSRV and RSRV by making changes in their respective configuration files.

Additional Information


Doc: Configuring the Service External: Common Application properties