我试图在我的" Server&#34 ;;
中从远程存储库构建一个kiecontainerString url = "http://Server:8080/jbpm-console/maven2/pt/powergrid/UtilityOperationProcesses/1.0/UtilityOperationProcesses-1.0.jar";
ReleaseIdImpl releaseId = new ReleaseIdImpl("pt.powergrid", "UtilityOperationProcesses", "1.0");
KieServices ks = KieServices.Factory.get();
ks.getResources().newUrlResource(url);
KieContainer kieContainer = ks.newKieContainer(releaseId);
但我有这个例外:
Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: number of transferred bytes cannot be negative
任何想法?
答案 0 :(得分:0)
我相信如果找不到jar就会出现此错误,您应该将maven repo配置为可以找到它的位置,方法是将其添加到HOME_FOLDER / .m2 / settings.xml中,或者在哪里找到自定义设置.xml使用-Dkie.maven.settings.custom = CUSTOM_LOCATION_HERE / settings.xml
例如,请查看https://github.com/krisv/jbpm-evaluation-examples/tree/master/kjar-from-guvnor