2014-06-09 29 views
1

我試圖從普通Java程序執行iLog jRules(版本7.1)。我正在使用J2SE會話工廠。仍然我得到錯誤。有人可以請教嗎?還有什麼是從Java主方法執行jRules規則的最好和簡單的方法?無法檢查許可證ilog.rules.res.xu.IlrLocalizedResourceException:錯誤代碼:XU.ERROR.10700

6/9/14 4:48 PM [SEVERE] 10700 - -.- - Failed to check license ilog.rules.res.xu.IlrLocalizedResourceException: Failed to check license, error code: XU.ERROR.10700 
at ilog.rules.res.xu.util.IlrResourceExceptionHelper.createResourceException(IlrResourceExceptionHelper.java:44) 
at ilog.rules.res.xu.util.IlrResourceExceptionHelper.createResourceException(IlrResourceExceptionHelper.java:78) 
at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.verifyRESLicense(IlrManagedXUConnectionFactory.java:1108) 
at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.getRulesetProvider(IlrManagedXUConnectionFactory.java:883) 
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getRulesetProvider(IlrManagedXUConnection.java:280) 
at ilog.rules.res.xu.spi.IlrManagedXUConnection.createEngineManager(IlrManagedXUConnection.java:1659) 
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getEngineManager(IlrManagedXUConnection.java:1591) 
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getRulesetParameters(IlrManagedXUConnection.java:1508) 
at ilog.rules.res.xu.cci.IlrXUConnection.getRulesetParameters(IlrXUConnection.java:499) 
at ilog.rules.res.xu.cci.IlrXUInteraction.getRulesetInformation(IlrXUInteraction.java:739) 
at ilog.rules.res.xu.cci.IlrXUInteraction.dispatchExecution(IlrXUInteraction.java:185) 
at ilog.rules.res.xu.cci.IlrXUInteraction.execute(IlrXUInteraction.java:343) 
at ilog.rules.res.xu.cci.IlrXUInteraction.execute(IlrXUInteraction.java:459) 
at ilog.rules.res.xu.cci.IlrCCIClient.executeInteraction(IlrCCIClient.java:189) 
at ilog.rules.res.xu.cci.IlrCCIRuleEngineClient.getRulesetArchiveProperties(IlrCCIRuleEngineClient.java:699) 
at ilog.rules.res.session.util.IlrTraceHelper.<init>(IlrTraceHelper.java:111) 
at ilog.rules.res.session.impl.IlrStatelessSessionBase.execute(IlrStatelessSessionBase.java:97) 
at poc.PojoClientRunnerImpl.executeentpocrules(PojoClientRunnerImpl.java:88) 
at poc.Main.main(Main.java:28) 
Caused by: ilog.jum.client700.IluSAMAccessDeniedException: At 2014-06-09 11:18:33 GMT, SAM 3.0.0.1040: Access denied to module 'RES4J'. 
If you want to inspect your access key, please do the following: 
java -cp [location]sam.jar ilog.jum.client700.IluSAMAccessKey -summary 
+0

您是否正在運行任何已過期的跟蹤版本? – JSR

+0

不確定,但我們的部署團隊提到它是完整版本。我可以在某處查看嗎? –

回答

1

我解決了這個問題。這是因爲jar版本不匹配。我正在使用jRules Studio版本7.1.1,並且正在使用jRules版本7.0.0 jar。

我修改了我的類路徑,以便爲jRules版本7.1.1規則工作室使用V7.1.1 JAR。