Protobuf error
by Michael Anstis
Hi,
Drools Workbench has started to get failing tests due to this:-
java.lang.NoClassDefFoundError: com/google/protobuf/Message
at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieBuilder(KieServicesImpl.java:87)
at org.kie.workbench.common.services.builder.Builder.build(Builder.java:116)
at org.kie.workbench.common.services.builder.BuildServiceImplTest.testBuilderSimpleKProject(BuildServiceImplTest.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Has something changed upstream? Do we need additional dependencies?
I remember seeing on IRC yesterday that marshalling had broken(?) is this
related.
With kind regards,
Mike
11 years, 6 months
erroneous extends causes NPE in DRL compiler (5.5.0)
by Wolfgang Laun
// Message is an existing pojo
//
declare CountedMessage extends Message
count : int
end
Exception in thread "main" java.lang.NullPointerException
at org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:130)
at org.drools.compiler.PackageBuilder.isNovelClass(PackageBuilder.java:2291)
at org.drools.compiler.PackageBuilder.generateDeclaredBean(PackageBuilder.java:2473)
at org.drools.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:2133)
at org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:1272)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:869)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:466)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:694)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:40)
at express.Main.setup(Main.java:58)
at express.Main.main(Main.java:118)
11 years, 6 months
Beta3 sanity check
by Michael Anstis
Hello,
I've tested Beta3 kie-drools-wb and kie-wb on AS7. These are my findings:-
*kie-drools-wb
*1) Generally looked OK to me
2) The JGIT daemon is not terminated when the webapp is removed/disabled
(I've emailed Alexandre).
*kie-wb
*
1) dom4j.jar needs deleting from WEB-INF/lib
2) I did not test any jBPM related screens (Task List, Designer etc)
3) The JGIT daemon is not terminated when the webapp is removed/disabled
(I've emailed Alexandre).
4 I encountered the following error:-
09:46:19,545 ERROR [stderr] (http--127.0.0.1-8080-2)
java.lang.NullPointerException
09:46:19,547 ERROR [stderr] (http--127.0.0.1-8080-2) at
org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:68)
09:46:19,548 ERROR [stderr] (http--127.0.0.1-8080-2) at
org.jbpm.kie.services.impl.KModuleDeploymentService$Proxy$_$$_WeldClientProxy.deploy(KModuleDeploymentService$Proxy$_$$_WeldClientProxy.java)
09:46:19,548 ERROR [stderr] (http--127.0.0.1-8080-2) at
org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.java:77)
09:46:19,549 ERROR [stderr] (http--127.0.0.1-8080-2) at
org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.autoDeploy(DeploymentManagerEntryPointImpl.java:165)
09:46:19,568 ERROR [stderr] (http--127.0.0.1-8080-2) at
org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.autoDeploy(DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.java)
This came about by creating a "New Project" and "Build & Deploying" it. The
project did not contain any jBMP assets (only a dependency on a JAR
uploaded to Guvnor's M2 Repository and a simple rule).
It didn't throw any errors to the UI so I don't think it's serious.
Otherwise both were OK.
I've asked Toni and Jervis to perform a sanity check too.
With kind regards,
Mike
11 years, 6 months
New rules are not reflecting at runtime without Binary package build in Guvnor UI
by Antin Brucelee -X (abrucele - INFOSYS TECHNOLOGIES LIMITED@Cisco)
Hi,
I have a requirement of executing all the rules under a specific package. The new rules getting added in Guvnor API and Standalone editior are not getting reflected until I build the Binary package again using Guvnor UI. I want to allow users to create new rules and want them to be active immediately without coming to Guvnor to build the binary again.
I tried making a GET request to "http://... /rest/packages/SupplyChain/binary" to build the binary again, but the new rule is not reflected. I also tried the following configuration also.
ResourceChangeScannerConfiguration sconf = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
sconf.setProperty("drools.resource.scanner.interval", "2");
ResourceFactory.getResourceChangeScannerService().configure(sconf);
KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories","true" );
kaconf.setProperty("drools.agent.scanResources", "true");
kaconf.setProperty("drools.agent.newInstance", "false");
Please let me know if there is any other way of building the package with all the latest updates (including new assets) using REST API ?
Thanks
Bruce
Thanks
Antin
11 years, 6 months
Guvnor Standalone editor - How to copy an existing asset (Decision table)
by Antin Brucelee -X (abrucele - INFOSYS TECHNOLOGIES LIMITED@Cisco)
Hi,
I am using Guvnor Standalone editor in my website to display and allow editing the rules. I have a requirement to copy existing rules and then allow users to make any changes on top of it.
I see the 'copy' feature is available Guvnor UI. Is there a way to achieve this feature by using REST API and Standalone editor in my website ?
Thanks
Bruce
11 years, 6 months