Re: [rules-users] Building drools fails.
by ge0ffrey
Skip the tests with -DskipTests
See README on github. If jenkins doesnt report the failure, make a jira for
the locale specific failing test
venkatrangan59 wrote
> Hi,
>
> I attempted to build the latest drools distribution using Maven. The
> drools-core built successfully, but drools-compiler failed and all other
> goals were skipped. The failure on the compiler is due to one of the tests
> failing. Any help would be much appreciated...
>
> DSLTokenizedMappingFileTest fails with the error:
>
> Test set: org.drools.lang.dsl.DSLTokenizedMappingFileTest
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
> <<< FAILURE!
> testParseFile(org.drools.lang.dsl.DSLTokenizedMappingFileTest) Time
> elapsed: 0.008 sec <<< FAILURE!
> java.lang.AssertionError: [[1,32]: DSL lexer error]
> at org.junit.Assert.fail(Assert.java:93)
> at org.junit.Assert.assertTrue(Assert.java:43)
> at
> org.drools.lang.dsl.DSLTokenizedMappingFileTest.testParseFile(DSLTokenizedMappingFileTest.java:31)
> 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:45)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
> 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:103)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
--
View this message in context: http://drools.46999.n3.nabble.com/Building-drools-fails-tp4020390p4020400...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
MVELDialectRuntimeData; local class incompatible
by TonyN
I am trying to upgrade from 5.2Final to 5.4final and ran into this error. It
seems that the rule engine (5.4) is having a hard time building the Knowlege
base using PKG directly from Guvnor 5.4. It has no issues with DRL though.
Both the Drools Engine and the Guvnor are running Java 1.6.0_20.
Both are at 5.4Final.
Not sure where, what to check next, thanks a millions.
2012-10-18 09:29:30,535 [main] INFO (BA5_RuleRunner.java:343) -
UrlResource: [UrlResource
path='file:C:/ipdm/tc83r3/boeing/resources/IRIP/rules/package/5.4.0/IPDM_Bus_Rules_PHL.pkg']
2012-10-18 09:29:30,535 [main] INFO (BA5_RuleRunner.java:349) -
UrlResource exists: [UrlResource
path='file:C:/ipdm/tc83r3/boeing/resources/IRIP/rules/package/5.4.0/IPDM_Bus_Rules_PHL.pkg']
java.lang.RuntimeException: KnowledgeAgent exception while trying to
deserialize KnowledgeDefinitionsPackage
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:776)
at
org.drools.agent.impl.KnowledgeAgentImpl.incrementalBuildResources(KnowledgeAgentImpl.java:955)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:675)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:203)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:182)
at
com.boeing.irip.common.BA5_RuleRunner.monitorChangeSet(BA5_RuleRunner.java:280)
at com.boeing.irip.common.BA5_RuleRunner.<init>(BA5_RuleRunner.java:88)
at com.boeing.irip.BA5_Validate.<init>(BA5_Validate.java:35)
at com.boeing.irip.BA5_RuleEngine.<init>(BA5_RuleEngine.java:31)
at
com.boeing.irip.app.service.BA5_DroolsHttpServer.initEngine(BA5_DroolsHttpServer.java:424)
at
com.boeing.irip.app.service.BA5_DroolsHttpServer.process(BA5_DroolsHttpServer.java:244)
at
com.boeing.irip.app.service.BA5_DroolsHttpServer.main(BA5_DroolsHttpServer.java:443)
Caused by: java.io.InvalidClassException:
org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream
classdesc serialVersionUID = 5166066541265170937, local class
serialVersionUID = -64624826351992706
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.util.HashMap.readObject(HashMap.java:1030)
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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at
org.drools.rule.DialectRuntimeRegistry.readExternal(DialectRuntimeRegistry.java:59)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at org.drools.rule.Package.readExternal(Package.java:208)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at
org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:205)
at
org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:174)
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:749)
... 11 more
--
View this message in context: http://drools.46999.n3.nabble.com/MVELDialectRuntimeData-local-class-inco...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Last Chance for Intellifest - Register to learn about Drools & jBPM
by Mark Proctor
http://blog.athico.com/2012/10/last-chance-for-intellifest-register-to.html
---
IntelliFest 2012 starts NEXT week, in San Diego, Monday 22nd of October.
Program Overview ( detailed agenda for Monday and Tuesday below ):
Monday - Healthcare focus for Rules, Workflow, Ontologies and Events (Free)
Tuesday - General Drools&jBPM session (Free)
Tuesday - Rule Design Patterns in Production Rule Systems
Wed - Fri - General IntelliFest Sessions
There are limited spaces, so register soon here.
Monday - Healthcare focus for Rules, Workflow, Ontologies and Events (free)
0830-0920 Captain Emory Fry, MD
Socratic Grid : Open Source Distributed Decision Support for Healthcare
0930-1020 Dr Robert Greenes, Department of Biomedical Informatics, Arizona State University
Key Note : Embedding Decision Support in Clinical Systems
1030-1120 Dr Aziz Boxwala, Division of Biomedical Informatics, University of California
Clinical Decision Support Consortium
1130-1200 Dr Seong Ki Mun, President and CEO of OSEHRA
Open Source Electronic Health Record Agent
1200:1300 Lunch
1300-1350 Dr Davide Sottara, Department of Biomedical Informatics, Arizona State University
Knowledge Representation Standards For Building Executable Clinical Processes Models
1400-1450 David Shields, Health ITS, University of Utah
OpenCDS: a Clinical Decision Support Infrastructure Based on Drools
1500-1520 Harold Solbring, Division of Biomedical Informatics, Mayo Clinic
Semantic Wiki
1530-1655 Conor Dowling, Caregraf
Semantic Terminology Services
1600-1620 Dr Xiao Hu, Department of Neurosurgery, University of California
Clinical Decision Support Driven Alarms
1630-1700
Panel Discussion - Collaboration Opportunities
Tuesday - General Drools&jBPM Workshop (free)
8.00 AM: Breakfast Social – pre-laptop setup, and QA time with solution Architects.
-Key will be provided to setup your laptop, so you can view and run the examples used during the talks.
9.00 BRMS Product Overview (Prakash Aradhya 15min)
How we turn the Drools and jBPM communtiy parts into a world class product. Supporting and harvesting all the innovation done in the open community, Red Hat delivers reliable, dependable and integrated solutions for enterprise customers.
9.15 Introduction to Drools Expert (Mark Proctor 45min)
Drools Expert covers the business rule engine. A gentle, example driven, dive into the Drools technical rule language and engine features.
10.10 Introduction to Drools Fusion (Edson Tirelli 45min)
Learn how Drools does CEP differently. Our unified approach extends Drools Expert with a series of language and sub-engine extensions to provide temporal reasoning and event correlation.
11.05 Introduction to jBPM and BPMN2 (Tihomir Surdilovic 45min)
jBPM is a BPM engine designed for flexible processes, implementing and extending the BPMN2 spec. Built form the ground up to be part of a unified strategy for business automation and decision management. jBPM fully integrates with Drools Expert and Fusion.
11.45 Decision Modelling with Graphical Editors (Edson Tirelli 30min)
Drools Expert provides sophisticated web based tooling, around decision tables, guided editors and templates. Our decision modelling approach draws from the very best research found at Dr Jan Vanthienien school of Decision Modelling.
12.30 Working Lunch – Experience Drools and jBPM – Hands on labs (Optional) (1hour)
13.30 Human Tasks up Close and Personal (Tihomir Surdilovic 40min)
Human tasks are a central component of BPM. This example driven talk will build an example live, demonstrating what jBPM’s Human Task technology can do for you.
14.20 Building Games with Drools – Pong, Snake and Wumpus (Mark Proctor 40min)
Time for some hard play, learn how to build classic computer games with Drools. These also provide interesting exercises in BA requirements gathering.
15.10 Drools Planner a Quick Overview (Geoffrey De Smet 40min)
Whether it’s employee rostering, task scheduling, vehicle routing, bin packing or another planning problem: all organizations try to optimize their limited resources under constraints. Drools Planner optimizes business resources for normal Java programmers.
15.50 Drools Chance for Imperfect Reasoning (Davide Sottara 40min)
Sometimes data quality is not perfect, so facts may not be known with precision and certainty. Likewise, crisp constraints such as hard thresholds might not be able to capture the complexity of a business policy. Drools Chance allows to apply gradual and/or probabilistic constraints to uncertain or vague data.
16.40 UberFire – Drools&jBPM Workbench framework (Mark Proctor 30min)
UberFire is a new project that forms the foundation of our 6.0 web tooling. It’s standalone framework that provides a sophisticated workbench framework for the web; where everything is a plugin. Come learn about the Uberfire, and how you can use the workbench to build your own web applications.
17.10 Drools&jBPM 6.0 and Beyond (Optional : open as long as people remain)
An open presentation and discussion about the design ideas, principles and goals that are driving the development of Drools & jBPM version 6.0. This will be an optional and informal session where attendees will have the opportunity to learn about what is coming, contribute ideas and provide feedback that will be taken in consideration by the development team.
17.10 Hands on Lab
Run at the same time as "Drools&jBPM and Beyond" and Beyond. Solution Architects are on hand to help you with your coding problems, and running examples.
Tuesday - Rule Design Patterns in Production Systems
Rule Design Patterns
What is a “Rule Design Pattern”?
Basic Rule Formats
Fact Classification
Handling Failure to Match
Extending Rules
Reasoning with Interfaces
Active Facts
Marker Facts
Fact Proxies
Application Design Patterns
Short-Term Sessions
Permanent Sessions
13 years, 4 months
changeset.xml issue while accessing gurvor rule package
by Sai Nadh
good noon to all,
finally i am able to read change-set.xml
but i am unable to parse it...
please anyone can help me ...
my change-set.xml file is
<?xml version="1.0" encoding="UTF-8"?/>
<change-set xmlns='http://drools.org/drools-5.4/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.4/change-set'
'
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'
>
<add>
<resource source='
http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/ProductPosi...
'
type="PKG" basicAuthentication="enabled" username="admin"
password="admin"/>
</add>
</change-set>
i am getting exceptions like
(null: 1, 38): The XML declaration must end with "?>".
java.lang.RuntimeException: Unable to parse ChangeSet
at
org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentImpl.java:448)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:180)
at
com.org.alert.test.SampleTestClass.createKnowledgeBase(SampleTestClass.java:80)
at com.org.alert.test.SampleTestClass.main(SampleTestClass.java:26)
Caused by: org.xml.sax.SAXParseException: The XML declaration must end with
"?>".
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.scanXMLDeclOrTextDecl(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanXMLDeclOrTextDecl(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$XMLDeclDriver.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:296)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:175)
at org.drools.xml.XmlChangeSetReader.read(XmlChangeSetReader.java:70)
at
org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentImpl.java:446)
... 3 more
java.lang.RuntimeException: Unable to parse ChangeSet
at
org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentImpl.java:453)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:180)
at
com.org.alert.test.SampleTestClass.createKnowledgeBase(SampleTestClass.java:80)
at com.org.alert.test.SampleTestClass.main(SampleTestClass.java:26)
regards
sai
13 years, 4 months
my drools versions details
by Sai Nadh
i am using following versions
drools-distribution-5.4.0.Final
guvnor-distribution-5.4.0.Final
Eclipse-HELIOS
--
*Regards*
*SAI NADH*
13 years, 4 months
fun projects :)
by Mark Proctor
If anyone wants to get involved in a fun task, we would like to get two existing components ported from SWT to SVG/GWT. So that those components can be used in the UberFire project - our new web based workbench.
Audit Viewer
Also migrate to support ErraiJSon, instead of our XStream dump, for seamless client and server marshalling.
Rete Viewer
The ReteViewer should be ported to svg/gwt, again using ErraiJSon to provide the tree format.
The above two also have an endless list of features that could be added, to make them more useful - especially the Audit Viewer. With more continuous work the AuditViewer can really help us to improve runtime diagnostics.
UberFire is not officially alpha launched yet, so it needs some cleaning and some docs up before we make it wider known. Although I did mention it here with screenshots and a video (link towards end):
http://drools.46999.n3.nabble.com/rules-users-UderFire-tp4019929p4019938....
If you want to get involved, come onto irc and we'll talk you through getting started. UberFire really is a very cool project, it's completely standalone from Drools&jBPM, and a good project to be involved in, as you can use it for your own workbench projects.
Just ask for manstis or porcelli (irc nicks)
http://www.jboss.org/drools/irc
#droolsdev
Mark
13 years, 4 months
Matching against regex failing?
by qwertyqwerty
Hi
in my decision table in the action column i want to validate a value against
a regex, and return the boolean back as a response. The condition i have
is:
eval($t.getTestVal() matches("[A-Z"))
The DRL that gets generated is:
eval($t.getTestVal() matches(\"[A-Z\")));
It seems to be adding the escape characters in which i don't want, and i
suspect is causing me my issue. The error coming out is:
Errors when compiling rules [19,0]: [ERR 102] Line 19:0 mismatched input ''
[19,0]: [ERR 102] Line 19:0 mismatched input '<eof>' in rule
--
View this message in context: http://drools.46999.n3.nabble.com/Matching-against-regex-failing-tp402037...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
BPMN 2.0 versioning
by Alberto R. Galdo
Hi,
As you may know, previous releases of JBPM had support for jPDL
processes versioning.
As per the deployment process, the process was serialized as Java
objects into the database as blobs once it was converted as such at
deployment time.
From that time on, every process in execution was linked to it's process
serialization ( the version that was active at that moment ) and subsequent
serializations of newer versions of the same process where versioned and
the new process instances keep track of what version of the process
definition they were linked to. That made very easy the task of updating
process definitions in an application just keeping in mind that previous
process instances will execute by the previous process definition and newer
process instances will follow the latest process definition version.
Now, in JBPM 5.x things don't seem to work that way anymore. Processes
are defined using BPMN 2.0, live in a Drools KnowledgeSession, and seems
there's no support for process definition versioning.
So, how would you solve the problem of having in the same
KnowledgeSession different versions of the same process ( each having it's
bag of process instances attached ) in JBPM 5.x ? Is it that even
possible?. We have a long time running application that has up to 7
different versions of a process and this really is a feature we need.
Seems that one solution would be to have different versions of the
process definition live in the knowledge session bound to different process
names and make your application aware of that when launching new instances
... but that seems more of a workaround ... Is this really the unique
solution for this?
Greets,
Alberto R. Galdo
argaldo(a)gmail.com
13 years, 4 months