Loading

Build failure error ("status":400,"error":"Bad Request","message":"Runtime Version not supported for this target") for cloudhub2.0 deployment runtime version4.6 or 4.8 or 4.9

Udgivelsesdato: Jul 8, 2025
Beskrivelse

ERROR:
======
[DEBUG] HTTP response
400 Bad Request
date: Mon, 23 Jun 2025 15:29:27 GMT
server: nginx
content-length: 281
content-type: application/json
connection: keep-alive
strict-transport-security: max-age=31536000; includeSubDomains
x-anypnt-trx-id: 63a5f

{"timestamp":1750692567617,"status":400,"error":"Bad Request","message":"Runtime Version not supported for this target.","path":"/organizations/03dc78e/environments/6911d3c2-35a2-4226-a4e2-94586eb0c54f/deployments/463d3739c75-4ca7-82b7dc1f6994eb1"}

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  36.042 s
[INFO] Finished at: 2025-06-23T20:59:27+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:4.3.0:deploy (default-deploy) on project test-ch2-maven-deployment-vinay-ps: Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:4.3.0:deploy failed: 400 Bad Request: {"timestamp":1750692567617,"status":400,"error":"Bad Request","message":"Runtime Version not supported for this target.","path":"/organizations/03dc78e/environments/6911d3c2-35a2-4226-a4e2-94586eb0c54f/deployments/463d3739c75-4ca7-82b7dc1f6994eb1"} -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.mule.tools.maven:mule-maven-plugin:4.3.0:deploy (default-deploy) on project test-ch2-maven-deployment-vinay-ps: Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:4.3.0:deploy failed: 400 Bad Request: {"timestamp":1750692567617,"status":400,"error":"Bad Request","message":"Runtime Version not supported for this target.","path":"/organizations/03dc78e/environments/6911d3c2-35a2-4226-a4e2-94586eb0c54f/deployments/463d3739c75-4ca7-82b7dc1f6994eb1"}
   at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
       at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
       at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
       at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
       at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:4.3.0:deploy failed: 400 Bad Request: {"timestamp":1750692567617,"status":400,"error":"Bad Request","message":"Runtime Version not supported for this target.","path":"/organizations/03dc78e/environments/6911d3c2-35a2-4226-a4e2-94586eb0c54f/deployments/463d3739c75-4ca7-82b7dc1f6994eb1"}
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:133)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: org.mule.tools.client.core.exception.ClientException: 400 Bad Request: {"timestamp":1750692567617,"status":400,"error":"Bad Request","message":"Runtime Version not supported for this target.","path":"/organizations/03dc78e/environments/6911d3c2-35a2-4226-a4e2-94586eb0c54f/deployments/463d3739c75-4ca7-82b7dc1f6994eb1"}
    at org.mule.tools.client.core.AbstractClient.checkResponseStatus (AbstractClient.java:252)

Løsning
  •  We need to specify the full Mule version name as in 4.6.19:1-java17 at "app.runtime" tag and "muleVersion" tag in pom.xml file.
  • Make sure to cross-verify its EDGE or LTS, if its LTS version 4.6.19:1-java17 needs to specify but if its EDGE version 4.9.6:5e-java17
    Example:                 

       <cloudhub2Deployment>
                        <uri>https://anypoint.mulesoft.com</uri>
                        <provider>MC</provider>
                        <environment>Sandbox</environment>
                        <target>Cloudhub-US-East-1</target>
                        <muleVersion>${app.runtime}</muleVersion>
                        <releaseChannel>LTS</releaseChannel>
                        <javaVersion>17</javaVersion>
                        <username>abcd</username>
                        <password>abcd</password>
                        <applicationName>hello-world</applicationName>
                        <replicas>1</replicas>
                        <vCores>0.1</vCores>
         </cloudhub2Deployment>
   

Doc: https://docs.mulesoft.com/mule-runtime/latest/deploy-to-cloudhub-2#cloudhub2-deploy-reference                                                              
                                                

Vidensartikelnummer

005101382

 
Indlæser
Salesforce Help | Article