当前位置:网站首页>WebService client request failed can not create a secure xmlinputfactory
WebService client request failed can not create a secure xmlinputfactory
2022-06-23 23:15:00 【lang20150928】
webService Client request failed :can not create a secure xmlinputfactory
Corresponding cxf Version is
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cxf.version>3.2.14</cxf.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-parent</artifactId>
<version>${cxf.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf</artifactId>
<version>${cxf.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Find the corresponding location of the source code (org.apache.cxf.staxutils.StaxUtils Class 338 That's ok )
From the above source code is not difficult to see , If allowInsecureParser Parameter is true Words , You won't get into the logic of throwing exceptions . and allowInsecureParser Parameters are set during class initialization . The approximate source code is as follows
public static final String ALLOW_INSECURE_PARSER =
"org.apache.cxf.stax.allowInsecureParser";
private static boolean allowInsecureParser;
static{
// ...
String s = SystemPropertyAction.getPropertyOrNull(ALLOW_INSECURE_PARSER);
if (!StringUtils.isEmpty(s)) {
allowInsecureParser = "1".equals(s) || Boolean.parseBoolean(s);
}
// ...
}
It is not difficult to see from the above that if ALLOW_INSECURE_PARSER The corresponding value cannot be empty , Also for 1 perhaps true when ,allowInsecureParser by true.
Set system parameters -Dorg.apache.cxf.stax.allowInsecureParser=1 Start again ,webservice Request no error .
边栏推荐
- The national post office and other three departments: strengthen the security management of personal information related to postal express delivery, and promote the de identification technology of per
- Industry 4.0 era: the rise of low code may bring about changes in the pattern of manufacturing industry
- Bilibili×蓝桥云课|线上编程实战赛全新上新!
- 蚂蚁获FinQA竞赛冠军,在长文本数值推理AI技术上取得突破
- Four traversals of map sets
- Payment industry tuyere project: smart digital operation 3.0
- FANUC机器人SRVO-050碰撞检测报警原因分析及处理对策(亲测可用)
- Save: software analysis, verification and test platform
- JMeter pressure measuring tool beginner level chapter
- Pressure measuring tool platform problem case base
猜你喜欢

Ant won the finqa competition champion and made a breakthrough in AI technology of long text numerical reasoning

专业“搬砖”老司机总结的 12 条 SQL 优化方案,非常实用!

Giants end up "setting up stalls" and big stalls fall into "bitter battle"

WebService客户端请求失败 can not create a secure xmlinputfactory

The national post office and other three departments: strengthen the security management of personal information related to postal express delivery, and promote the de identification technology of per

什么是免疫组织化学实验? 免疫组织化学实验

抖音支付十万级 TPS 流量发券实践
![[technical dry goods] the technical construction route and characteristics of zero trust in ant Office](/img/d1/ce999b9f72bbb8f692c4298b4042aa.png)
[technical dry goods] the technical construction route and characteristics of zero trust in ant Office

谈谈数字化转型晓知识

Detailed quaternion
随机推荐
专业“搬砖”老司机总结的 12 条 SQL 优化方案,非常实用!
Reconstruct the backbone of the supply chain and realize lean production in the LED lighting industry
Phpmailer sends mail PHP
Heat transfer oil electric heater
How can manufacturing enterprises go to the cloud?
How to use phpMyAdmin to restore a backed up MySQL database
Isolement des transactions MySQL
Zynq ultrascale+ RF data converter IP configuration - ADC
The old CVM of Tencent cloud is migrated to the new CVM, and the IP remains unchanged
Analysis and application of ThreadLocal source code
Save: software analysis, verification and test platform
Website construction is not set to inherit the superior column. How to find a website construction company
PHP时间戳
解密抖音春节红包背后的技术设计与实践
Mysql中的触发器定义及语法介绍
SAVE: 软件分析验证和测试平台
sql server常用sql
What are the processes, levels, stages and key points of requirements analysis in software development
Unknown character set index for field ‘255‘ received from server.
How does data Vientiane CI | app quickly integrate HLS encryption to prevent video leakage?