WSO2 错误 - 调用名为 setter 方法的 PropertyHelper 错误 [英] WSO2 ERROR - PropertyHelper Error invoking setter method named
问题描述
我最近从 WSO2 ESB 4.9.0 升级到 WSO2 EI 6.3.0.在我部署现有项目之前,一切似乎都运行良好,现在我收到以下错误:
I recently upgraded from WSO2 ESB 4.9.0 to WSO2 EI 6.3.0. Things seemed to be working fine until I deployed an existing project and now I am receiving the following error:
ERROR - PropertyHelper 调用名为 setSourceIsRemote() 的 setter 方法时出错,该方法采用单个 String、int、long、float、double 或 boolean 参数参数类型不匹配
这是现有的代码:
<class name="com.hms.mediator.SFTPMediator">
<property name="sourceHost" value="myhost"/>
<property name="sourcePort" value="22"/>
<property name="sourceUser" value="username"/>
<property name="sourcePassword" value="pw"/>
<property name="sourceFilter" value="*\.*"/>
<property name="sourceIsRemote" value="true"/>
<property name="deleteFromSource" value="false"/>
<property name="archivePath" value="/archive/"/>
<property name="destinationPath" value="/destination/"/>
<property name="sourcePath" value="/sourcePath"/>
</class>
问题发生在设置布尔值时,在本例中为 sourceIsRemote
和 deleteFromSource
.这在旧版本上正常工作.
The issue happens when a boolean value is being set, in this case, sourceIsRemote
and deleteFromSource
. This works correctly on the older version.
有没有其他人遇到过这个问题,除了使用早期版本的 WSO2 之外还有其他解决方案吗?
Has anyone else come across this issue and is there a solution besides going to an earlier version of WSO2?
推荐答案
这是突触核心中的一个核心类中的一个问题,它阻止了在中介体中设置布尔类型值.我已经为它提供了修复.同时,如果您仍然遇到此问题,请使用附带的 jar(带有修复程序)替换 lib 文件夹 (../wso2/wso2ei/6.4.0) 中的原始 jar (synapse-core_2.1.7.wso2v80)/wso2/components/plugins/).
This is an issue in one of the core classes in synapse core that prevents from setting the boolean type values in the mediators. I have provided the fix for it. In the mean-while if you are still having this issue use the attached jar ( with the fix) to replace the original one (synapse-core_2.1.7.wso2v80) in the lib folder (../wso2/wso2ei/6.4.0/wso2/components/plugins/).
链接:https://github.com/OmerQ/WSOFixJar/blob/master/synapse-core_2.1.7.wso2v80.jar
这篇关于WSO2 错误 - 调用名为 setter 方法的 PropertyHelper 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!