Loading
×Sorry to interrupt
CSS Error
Early Access Article
This article has been provided in an Early Access format. It has been created by a member of the MuleSoft Support team, but yet to go through our QA process.

java.lang.NumberFormatException: For input string: "${token.timeout}" Error in Anypoint Studio on Deploying Application

On deploying application in Anypoint Studio, error is seen in the log - java.lang.NumberFormatException: For input string: "${token.timeout}"

Nov 10, 2022Knowledge

Content

SYMPTOM

You are trying to deploy an application from Anypoint Studio and its failing and in the Studio Error log below error is seen:
 
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.6.3:process-classes (default-process-classes) on project xxxxx-xxx-api: 
Execution default-process-classes of goal org.mule.tools.maven:mule-maven-plugin:3.6.3:process-classes failed: 
Exception resolving param 'responseTimeout' with value '${token.timeout}' at 'generate-token.xml:42:5' (java.lang.NumberFormatException: 
For input string: "${token.timeout}") -> [Help 1]
........................................................
........................................................
Caused by: java.lang.NumberFormatException: For input string: "${token.timeout}"
at java.lang.NumberFormatException.forInputString (NumberFormatException.java:65)
 

CAUSE

Wrong Key is used in the Global Property Configuration

SOLUTION

[1] Make sure you are using the latest version of Mule Maven Plugin available in your application in pom.xml. Refer Mule Maven Plugin Release Notes
[2] Verify the Key used in Global Property Configuration is the correct one.
Navigate to your Application -> Global.xml -> Edit Global Property (Key)

Key
Attachments


Loading