简体   繁体   English

未找到 Media type=application/json;charset=utf-8 的 MessageBodyReader

[英]MessageBodyReader not found for media type=application/json;charset=utf-8

While deploying my Mule project with Mule runtime 4.3.0 to cloudhub through maven, i am getting below exception:在通过 maven 将我的 Mule 项目和 Mule 运行时 4.3.0 部署到 cloudhub 时,我遇到了以下异常:

Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:3.3.5:deploy failed: MessageBodyReader not found for media type=application/json;charset=utf-8, type=class org.mule.tools.client.arm.model.AuthorizationResponse, genericType=class org.mule.tools.client.arm.model.AuthorizationResponse.目标 org.mule.tools.maven 的执行默认部署:mule-maven-plugin:3.3.5:deploy failed: MessageBodyReader not found for media type=application/json;charset=utf-8, type=class org.mule .tools.client.arm.model.AuthorizationResponse,genericType=class org.mule.tools.client.arm.model.AuthorizationResponse。

Any help will be appreciated.任何帮助将不胜感激。 Thanks Vikas谢谢维卡斯

The fact that it works with Java 8 indicates it is some Java compatibility issue.它适用于 Java 8 的事实表明它存在一些 Java 兼容性问题。

Mule Maven Plugin supports only until Java 11. See the release notes for your version to see software compatibility: https://docs.mulesoft.com/release-notes/mule-maven-plugin/mule-maven-plugin-release-notes Mule Maven 插件只支持到 Java 11。请参阅您版本的发行说明以查看软件兼容性: https : //docs.mulesoft.com/release-notes/mule-maven-plugin/mule-maven-plugin-release-notes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Mule APIkit:“找不到流”,而不是HTTP 415不支持的媒体类型 - Mule APIkit: “Flow not found” instead of HTTP 415 unsupported media type 在Dataweave转换器中编码以实现UTF-8? - Encoding in Dataweave transformer for UTF-8? 如何在 mule 中设置内容类型 = “application/json”? - How to set content type = “application/json” in mule.? Mule中的Java组件不使用项目的UTF-8编码 - Java Component in Mule does not use project's UTF-8 encoding 无效的 UTF-8 起始字节 0x8b(在字符 #2,字节 #-1)Mule ESB 的问题 - issue with Invalid UTF-8 start byte 0x8b (at char #2, byte #-1) Mule ESB 如何删除XML中的特殊字符,并且在读取此xml文件时不应导致错误“1字节UTF-8序列的无效字节1” - How to remove the special characters in XML and should not lead to the error “Invalid byte 1 of 1-byte UTF-8 sequence” while reading this xml file 错误 415 GET 方法不支持的媒体类型 - Error 415 Unsupported Media Type for GET method Mule ESB-覆盖HTTP请求的媒体类型 - Mule ESB - overriding Media-Type of HTTP Request 发现无效内容,以元素“ json:object-to-json-transformer”开头 - Invalid content was found starting with element 'json:object-to-json-transformer' 我可以在基本的DataWeave转换中使用动态输出媒体类型吗? - Can I have a dynamic output media type in a basic DataWeave transform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM