Issue deploying 2.1 oryxdesigner on guvnor 5.4 CR1 and jboss 7.1.1 final
by sumatheja
Hi I deployed the designer 2.1 war in standalone/deployments afetr changing
the url in the jbpm.xml to the appropriate port.
* <externalloadurl protocol="http" host="localhost:8380"
subdomain="drools-guvnor/org.drools.guvnor.Guvnor/oryxeditor" usr="admin"
pwd="admin"/>*
When I create a new jbpm and save it nothing happens.. I get the following
server log.... Can anyone let me knoe if it is a bug or If I'm missing
anything.....
*17:00:14,356 INFO [stdout] (http--127.0.0.1-8380-2) (null: -1, -1):
Premature end of file.
17:00:17,997 INFO [org.jbpm.designer.server.EditorHandler]
(http--127.0.0.1-8380-10) Performing diagram information pre-processing
steps.
17:00:18,027 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:18,251 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:18,369 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:18,598 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:18,682 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:18,765 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--127.0.0.1-8380-10) Successfully deleted file
:C:\Users\Sumatheja\mywork\jboss-
as-7.1.1.Final\standalone\deployments\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
17:00:18,821 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--127.0.0.1-8380-10) Created
file:C:\Users\Sumatheja\mywork\jboss-as-7.1.1.Final
\standalone\deployments\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
17:00:18,827 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--127.0.0.1-8380-10) Successfully deleted file
:C:\Users\Sumatheja\mywork\jboss-
as-7.1.1.Final\standalone\deployments\designer.war\stencilsets\bpmn2.0jbpm\view\activity\workitems\Email.svg
17:00:18,833 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--127.0.0.1-8380-10) Successfully deleted file
:C:\Users\Sumatheja\mywork\jboss-
as-7.1.1.Final\standalone\deployments\designer.war\stencilsets\bpmn2.0jbpm\view\activity\workitems\Log.svg
17:00:18,860 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--127.0.0.1-8380-10) Created
file:C:\Users\Sumatheja\mywork\jboss-as-7.1.1.Final
\standalone\deployments\designer.war\stencilsets/bpmn2.0jbpm/view/activity/workitems/Log.svg
17:00:18,874 INFO
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
(http--127.0.0.1-8380-10) Created
file:C:\Users\Sumatheja\mywork\jboss-as-7.1.1.Final
\standalone\deployments\designer.war\stencilsets/bpmn2.0jbpm/view/activity/workitems/Email.svg
17:00:19,647 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:19,660 INFO [stdout] (http--127.0.0.1-8380-5) (null: -1, -1):
Premature end of file.
17:00:20,478 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:20,744 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:21,134 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:21,436 INFO [org.drools.guvnor.server.security.DemoAuthenticator]
(http--127.0.0.1-8380-5) Demo login for user (admin) succeeded.
17:00:21,439 WARNING
[org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper]
(http--127.0.0.1-8380-5) WebApplicationException has been caught :
javax.jcr.PathNotFoundE
xception: processdictionary
17:00:21,443 INFO [org.jbpm.designer.web.server.DictionaryServlet]
(http--127.0.0.1-8380-2) check connection response code: 500*
Appreciate any help..... thanks in advance
--
cheers
Sumatheja Dasararaju
14 years
SOAP rule invocation in droolsjbpm-integration-distribution-5.4.0.CR1
by Oldrich Kotas
Hello,
I am trying to invoke rules in the sample integration deployment from
drools-camel-server-5.4.0.CR1 release.
No matter what I keep sending to the endpoint, only following returns:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>org.apache.cxf.binding.soap.SoapMessage cannot be cast
to java.lang.String</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
I have the server running on
http://localhost:8080/drools-camel-server-5.4.0.CR1/kservice/soap, the WSDL
downloads faultlessly. What is puzzling me, the very same request were
working in version 5.3. The deployment in regard of Camel is completely
intact with only chages whatsoever being specification of the Agent
knowledge-services.xml.
My sample request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap="http://soap.jax.drools.org/">
<soapenv:Header/>
<soapenv:Body>
<soap:execute>
<soap:arg0>
</soap:arg0>
</soap:execute>
</soapenv:Body>
</soapenv:Envelope>
A side note: In 5.3.0.Final I have not succeed in making the Knowledge Agent
to sniff on Guvnor to get up-to-date packages therefore I tried last version
with the troubles reportedly repaired.
A side note 2: I have found in the drools-camel-server-5.4.0.CR1
documentation, chapter 3.3.1.2 a statement indicating the SOAP support is
not bundled in yet, is that correct or a remnant of some old version?
Citation: "If you want to have SOAP support you need to create your custom
Drools Policy, but it's going to be added in the next release."
Is there perhaps a fault in the camel/cxf configuration or the function is
just not implemented yet?
Help is very appreciated. Thank you,
Oldrich
--
View this message in context: http://drools.46999.n3.nabble.com/SOAP-rule-invocation-in-droolsjbpm-inte...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years
Creating and consuming processes in Guvnor programmatically
by affandar
In one of our scenarios we need to create a few workflows on the fly, upload
them to the guvnor repository and make them available to the jBPM engine
which is reading from this guvnor repository.
I was able to upload the process to Guvnor by posting the bpmn file to its
webdav endpoint but was not able to find a way to publish the package.
Questions:
1) Is there a better way to upload new processes to the Guvnor repo?
2) How do I publish a package programmatically?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Creating-and-consuming-processes-in-Guv...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years
maven drools compiler (plugin)
by Sean Su
Hello, guys,
I did some search online and it seems we do not have any official plugin
that allows us to compile Drools rules as part of the maven build.
Is this the case or I have not found it yet?
Thanks for the help.
Sean
--
"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of
the Force are they." -Yoda
14 years
Drools crash on simple drl
by Shur, Bob
I have what looks to me like a Drools bug on a simple drl with declared classes. I'm using version drools-distribution-5.3.0.Final.
I'm invoking it with this:
StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
List<Object> facts = new ArrayList<Object>();
ksession.execute( facts );
=============================
I get this crash:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sample/Cap
at ASMAccessorImpl_129541121334339192620.getValue(Unknown Source)
at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:73)
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:103)
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42)
at org.mvel2.MVEL.executeExpression(MVEL.java:952)
...
==========================
Here's the drl file:
package com.sample
import com.sample.*;
declare Item
id : int;
end
declare Priority
name : String;
priority : int;
end
declare Cap
item : Item;
name : String
end
rule "split cart into items"
when
then
insert(new Item(1));
insert(new Item(2));
insert(new Item(3));
end
rule "Priorities"
when
then
insert(new Priority("A", 3));
insert(new Priority("B", 2));
insert(new Priority("C", 5));
end
rule "Caps"
when
$i : Item()
$p : Priority($name : name)
then
insert(new Cap($i, $name));
end
rule "test"
when
$i : Item()
Cap(item.id == $i.id)
then
System.out.println("Cap");
end
====================
Some observations:
- If I comment out any of the insert lines, the crash goes away
- If I change the first field of class Cap to be id:int instead of item:Item and make the corresponding changes, the crash goes away
14 years
Runtime Java Exception - Firing rules (Drools Expert 5.2.1).
by groovenarula
Hello all,
We're getting the following exception executing our rules in Drools 5.2.1 :
WARN: Execution of JMS message listener failed
java.lang.NoClassDefFoundError: org/drools/factmodel/traits/Thing
at
org.drools.compiler.PackageBuilder.initBuiltinTypeDeclarations(PackageBuilder.java:332)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:310)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:205)
at
org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
at
org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46)
at
com.anteil.lazboy.lzbws.pricing.AddDRTDRLRFToKBuilder.<init>(AddDRTDRLRFToKBuilder.java:31)
at
com.anteil.lazboy.lzbws.pricing.PricingUploadJMSConsumer.<init>(PricingUploadJMSConsumer.java:30)
at
com.anteil.lazboy.lzbws.pricing.DealerPricingUploadConsumer.<init>(DealerPricingUploadConsumer.java:11)
at
com.anteil.lazboy.lzbws.pricing.PricingUploadJMSConsumer.getConsumer(PricingUploadJMSConsumer.java:64)
at
com.anteil.lazboy.lzbws.pricing.PricingUploadJMSConsumer.executeUpload(PricingUploadJMSConsumer.java:82)
at
com.lazboy.lzbws.jms.message.PricingUploadValidationRequest.onMessage(PricingUploadValidationRequest.java:60)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:518)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:479)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451)
at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException:
org.drools.factmodel.traits.Thing
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 20 more
The issue is that I can't seem to find the class
org.drools.factmodel.traits.Thing in any Drools 5.2.1 modules.
Can someone tell me the possible causes?
Thanks in advance
--
cheers
Gurvinder
--
View this message in context: http://drools.46999.n3.nabble.com/Runtime-Java-Exception-Firing-rules-Dro...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years
Runtime jitting exception while inserting facts
by sumatheja
Hi All,
I'm getting some wierd exception while trying to insert a fact. I'm
trying to compare a string field in a rule, like metricclass == "PROCESSOR"
java.lang.RuntimeException: Exception jitting: metricclass == "PROCESSOR"
at
org.drools.rule.constraint.MvelConstraint.jitEvaluator(MvelConstraint.java:168)
at
org.drools.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:137)
at
org.drools.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:99)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:458)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:386)
at
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:211)
at
org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:239)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:336)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:297)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:887)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:846)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:259)
at
mattelli.re.ComplianceEngine.loadProductMetricDB(ComplianceEngine.java:1644)
at
mattelli.re.ComplianceEngine.ComplianceRunService(ComplianceEngine.java:196)
at mattelli.re.ComplianceEngine.main(ComplianceEngine.java:80)
Caused by: java.lang.IllegalAccessError: tried to access field
org.drools.rule.builder.dialect.asm.ClassGenerator$MethodBody.mv from class
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitMethodInvocation(ASMConditionEvaluatorJitter.java:463)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitInvocation(ASMConditionEvaluatorJitter.java:447)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitEvaluatedExpression(ASMConditionEvaluatorJitter.java:335)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitExpression(ASMConditionEvaluatorJitter.java:324)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitObjectBinary(ASMConditionEvaluatorJitter.java:132)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitBinary(ASMConditionEvaluatorJitter.java:107)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitSingleCondition(ASMConditionEvaluatorJitter.java:66)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.jitCondition(ASMConditionEvaluatorJitter.java:54)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter$EvaluateMethodGenerator.body(ASMConditionEvaluatorJitter.java:48)
at
org.drools.rule.builder.dialect.asm.ClassGenerator$MethodDescr.write(ClassGenerator.java:478)
at
org.drools.rule.builder.dialect.asm.ClassGenerator.generateBytecode(ClassGenerator.java:50)
at
org.drools.rule.builder.dialect.asm.ClassGenerator.generateClass(ClassGenerator.java:58)
at
org.drools.rule.builder.dialect.asm.ClassGenerator.newInstance(ClassGenerator.java:64)
at
org.drools.rule.constraint.ASMConditionEvaluatorJitter.jit(ASMConditionEvaluatorJitter.java:30)
at
org.drools.rule.constraint.MvelConstraint.jitEvaluator(MvelConstraint.java:166)
... 15 more
Can someone tell me the possible causes. This happens with very few facts
making it even more confusing. Thanks in advance
--
cheers
Sumatheja Dasararaju
14 years