Eclipse搜索安装Cucumber插件时遇XML无效字符错误求助
环境信息
- Eclipse版本:Eclipse IDE for Java Developers(包含孵化组件)2024-12 (4.34.0)
- 触发前提:按要求在pom.xml的properties节点添加以下配置升级JRE到11后(后续需配合Jenkins使用JRE11)
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target>
错误现象
尝试搜索并安装Cucumber插件时,弹出以下错误:
MarketplaceDiscoveryStrategy failed with an error
Cannot complete request to https://marketplace.eclipse.org/api/p/search/apachesolr_search/cucumber?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.34: Invalid response content: An invalid XML character (Unicode: 0xde80) was found in the CDATA section.
Invalid response content: An invalid XML character (Unicode: 0xde80) was found in the CDATA section.
An invalid XML character (Unicode: 0xde80) was found in the CDATA section.
Received response begins with:1:
2:
3:
查看Eclipse错误日志,得到:
org.xml.sax.SAXParseException; lineNumber: 25; columnNumber: 1; An invalid XML character (Unicode: 0xde80) was found in the CDATA section.
已尝试的解决方案
- 手动配置网络连接
- 添加代理设置
- 安装相关证书
以上方案均未解决问题,确认该错误并非本地XML文件解析导致,而是Eclipse Marketplace API与搜索功能之间的兼容性问题,寻求技术支持。
内容的提问来源于stack exchange,提问作者Mohammed Hossain

