java.lang.NoSuchFieldError 在尝试创建到规则执行服务器的无状态会话时返回



我正在使用Ilog JRules Studio 7.1.1进行规则开发。我正在使用 JUnit 测试用例来测试开发的规则。当我尝试创建到 RES 的无状态会话时,它返回以下错误。

IlrStatelessSession session = factory.createStatelessSession((;

有人知道吗?

java.lang.NoSuchFieldError: ilog/rules/res/decisionservice/plugin/IlrWsdlGenerationInteractionSpec.FUNCTION_NAME_BACKPORT_GENERATE_WSDL at ilog.rules.res.decisionservice.plugin.IlrWsdlGeneratorInteractionExtension.getSupportedFunctionNames(IlrWsdlGeneratorInteractionExtension.java:418( at ilog.rules.res.xu.plugin.impl.IlrPluginManager.createPlugins(IlrPluginManager.java:222( at ilog.rules.res.xu.plugin.impl.IlrPluginManager.changePlugins(IlrPluginManager.java:173( at ilog.rules.res.xu.plugin.impl.IlrPluginManager.start(IlrPluginManager.java:135( at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.createConnectionFactory(IlrManagedXUConnectionFactory.java:648( at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.createConnectionFactory(IlrManagedXUConnectionFactory.java:668( at ilog.rules.res.session.util.IlrJ2SEConnectionFactoryFinder.findConnectionFactory(IlrJ2SEConnectionFactoryFinder.java:23( at ilog.rules.res.session.IlrJ2SESessionFactory.createClientFactory(IlrJ2SESessionFactory.java:93( at ilog.rules.res.session.IlrJ2SESessionFactory.getClientFactory(IlrJ2SESessionFactory.java:129( at ilog.rules.res.session.IlrJ2SESessionFactory.createStatelessSession(IlrJ2SESessionFactory.java:62(

问候哈里

与会话无关。
JRules 崩溃是因为它无法生成 WSDL,这意味着您的项目一开始有问题。
首先尝试在本地运行它。
问题是,如果XOM基于XSD
,则会自动提供Web服务。项目中的某处存在错误。如果您使用 XSD(我猜(,请查看您的规则项目。如果您使用JAVA XOM,那么您的Web服务服务器中存在错误(我对此表示怀疑(,因为我不明白为什么JRules会抱怨您自己的代码。
验证输入/输出参数
先让它变得简单,然后使过程复杂化。
如果简单,则重新部署...
希望对你有帮助

最新更新