MuleSoft · DataWeave
Stack Overflow. Max stack is 256
Short answer
Stack Overflow. Max stack is 256 means a DataWeave function recursed deeper than the stack limit allows. Rewrite the recursion so it goes less deep, or raise the limit with the com.mulesoft.dw.stacksize property.
VerifiedLast verified
01Error text
Stack Overflow. Max stack is 25602Likely causes
- A function recursed too deeply.
03How to fix it
- Find the recursive function in the script.
- Check that the recursion has an end condition that the input really reaches.
- If the depth is legitimate, raise the limit with the system property
com.mulesoft.dw.stacksize.
04Official documentation
→Related errors
- MULE:FATAL_JVM_ERRORMULE:FATAL_JVM_ERROR means a fatal error occurred in the JVM, such as a stack overflow. It cannot be handled in a flow, and the only safe recovery after a VirtualMachineError is to restart the Mule runtime instance.
- MULE:EXPRESSIONMULE:EXPRESSION means an error occurred while Mule evaluated a DataWeave expression. Find the expression named in the log, check the values it reads for nulls or wrong types, and add a default or a handler.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer