Jbpm 6 - 传输的字节数不能为负数

时间:2014-10-03 17:59:41

标签: jboss jbpm kie

我试图在我的" Server&#34 ;;

中从远程存储库构建一个kiecontainer
String 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

任何想法?

1 个答案:

答案 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