unable to resolve method using strict-mode
by Vladimir Perlov
Hi everyone,
My drools rules failed to compile from web application deployed on Glassfish(application server) that run on Fedora 11 (Linux distro from RedHat).
When I deploy the application on application server with Windows machine everything is working fine.
Also it works if application made as regular Java SE application.
I got the following error:
Unable to build expression for 'consequence': Failed to compile: 3
compilation error(s): - (1,4) unqualified type in strict mode for: $map
- (1,13) unable to resolve method using strict-mode:
java.lang.Object.get(java.lang.String) - (1,29) unable to resolve
method using strict-mode: java.lang.Object.getSomeMethod() '
System.out.println($map.get("x").getSomeMethod());
' : [Rule name='TEST']
Here is the rule that failed to compile on Linux:
rule "TEST"
dialect "mvel"
Send
when
map : Map()
then
System.out.println($map.get("x").getSomeMethod());
end
My Environment:
Fedora 11
JDK 1.6
Glassfish v3 build 65 (supported JAVA EE6)
I really need to resolve the issue as soon as possible. Any idea would be highly appreciated.
Thanks in advance,
Vladimir
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
16 years, 7 months
Problem in accessing change-set.xml for decision table entry
by Nikhil S. Kulkarni
Hi,
I am using Drools 5
I am facing following issue :-
While trying to access change-set.xml with decision table entry, I am getting NULLPOINTEREXCEPTION
Following code is change-set.xml :-
e.g.
<?xml version="1.0" encoding="UTF-8"?>
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'>
<add>
<resource source='classpath:data/abc.xls' type="DTABLE">
<decisiontable-conf input-type="XLS" worksheet-name="Tables" />
</resource>
</add>
</change-set>
Please Reply If anybody is able to access decision table in this way.
Waiting for Reply.
Thanks & Regards,
Nikhil S. Kulkarni
MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 years, 7 months
Latest Drools with Latest Eclipse
by Chris Richmond
Is it possible to run all the latest Drools 5.1.0 with the latest version of
Eclipse and the Elipse plugins, etc? Has anyone successfully done this?
Also, I remember seeing a link to a testing framework within the IDE on the
drools blog at some time, but cannot seem to locate it. Does anyone know
what I am talking about and can provide the link?
Thanks,
Chris
16 years, 7 months
Argument truncation in decision table
by Robert Morse
Hello,
I have a Seam (2.2.0.GA) application running under JBoss 5.1.0.GA.
This release of Seam uses the Drools 5.0.1.GA build. I'm implementing
a Decision Table for the first time and importing it into Guvnor (also
from the same distribution). One of the consequences of several
rules is to call a method that had eight arguments: (String, String,
Boolean, Boolean, Integer, String, String, String). When I attempted
to compile the rule set, the method was truncated after the fifth
(Integer) argument which obviously caused some compile issues. My
work around was to break this single method in to two methods, and it
works just fine.
The original method worked just fine when used in a DRL. Don't know
if there's a limit to function arguments within Decision Tables or if
this might be a bug.
-robert.
The human mind is an iterative processor, it never does anything right
the first time. What it does well is to make improvements on every
iteration (deMarco)
16 years, 7 months
Process variables in split/action nodes
by Renato Herebia
Hi!
How can I access process variables inside split nodes, in fact, in split
contraints?
I accessed a process variable named "count" in an action node like that:
Integer c = (Integer) kcontext.getVariable("count");
kcontext.setVariable("count", ++c);
But, in a split constraint doesn't work. So, my doubts are:
- How is the way in split constraints?
- Is there a simpler way to access process variables in action node?
Thanks!
--
Renato Herebia
16 years, 7 months
Simultaneous queries against working memory
by Scott Burrows
Drools 4.0.7
Are running drools queries against working memory thread safe? I know that
inserts and retracts need to be synchronized but what about queries? I
would am considering having multiple threads querying working memory for
different facts at the same time.
For example:
final QueryResults results = workingMemory.getQueryResults("GetMCCObjects");
for (Iterator it = results.iterator(); it.hasNext(); ) {
result = (QueryResult) it.next();
mccDelObj = (MerchantCategoryGroup) result.get("mccObjects");
fhMCCGroup = workingMemory.getFactHandle(mccDelObj);
WMSyncdInsertRetract(fhMCCGroup, RETRACT);
}
Scott
16 years, 7 months
Drools Flow: waiting for process to complete without polling
by Alexandros Karypidis
Hello,
I'm not very experienced in the Drools Flow API so I'm looking into the
best way to code a simple thing: wait for all processes in a session to
complete without polling.
The only way I could thing of from the javadoc reference I read, is to
synchronize and do a wait()/notify() using a ProcessEventListener. It
seems a lot of work for a use-case that is too basic. I set up a
listener like this:
pel = new ProcessEventListener() {
// ...
public void afterProcessCompleted(ProcessCompletedEvent pce) {
synchronized (this) {
notifyAll();
}
}
}
ksession.addEventListener(pel);
...then wait for processes (one in this simplified case) to complete
like this:
synchronized (pel) {
new Thread(new Runnable() {
public void run() {
ksession.fireUntilHalt();
}
}).start();
ksession.startProcess("some.process");
pel.wait(); // the notifyAll() resumes this
}
Is there a better way to do this?
16 years, 7 months
Decision Tables agenda group
by Swindells, Thomas
I've been trying to get agenda groups working and after a bit of poking
around have realised that agenda group support is broken.
Looking on jira somebody has already raised the bug and supplied a
simple patch (https://jira.jboss.org/jira/browse/JBRULES-2208) when is
this patch likely to be applied to trunk or do I need to maintain my own
branch of the decision tables?
Thanks,
Thomas
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster(a)nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
16 years, 7 months
Class loader security exception
by kamal konduru
Hi Everyone,
I have a problem deploying drools5 project. In our deployment process due
to security reasons JVMS are not allowed to create clasloader. However
Drools is trying to create a CompositeClassLoader which interns calls a
System Class Loader's constructor, that is not allowed by JVM.
The rules are not complicated, however we have around 200 rules in around 4
to 5 drls and would like to deploy them in JVM.
Please suggest if there is any way to bypass this security issue.
thanks
kamal Konduru
--
View this message in context: http://www.nabble.com/Class-loader-security-exception-tp25705700p25705700...
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 7 months