org.drools.base.accumulators.CountAccumulateFunction error with Drools BRMS 4.0.1
by pentarious
Hi,
I'm using Drools BRMS 4.0.1 and when I try to build a package including some
rules using an accumulate construct, I get the following error:
"org.drools.base.accumulators.CountAccumulateFunction" (This message is
shown in an alert).
This is a simple rule (Technical DRL rule) to reproduce the error (just put
this in an empty package and try to build the whole package):
rule "test"
salience 0
dialect "java"
when
Number() from accumulate ( i : Object(), count( i ) )
then
System.out.println(1);
end
The rule is correctly validated but building the whole package leads to the
above error. Is it a bug?
Regards,
CG
--
View this message in context: http://www.nabble.com/org.drools.base.accumulators.CountAccumulateFunctio...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
stateless session getQueryResults
by Mark Proctor
Is anyone using StatelessSession.getQueryResults(). Realised that it was
a mistake adding that. the idea of StatelessSessionResult is you have
something that is potentially serialisable. To execute that method then
you have to have a refernce to the entire WorkingMemory and that must
reference the RuleBase, so it suddenly makes that a little heavy. I'm
thinking of removing that method and also combining it with the ability
to specify only which inserted objects and set globals are exported as
part of a StatelessSessionResult, if not specified all inserted objects
will be made available and no globals.
I'm not sure that querries make any sense on a stateless session anyway,
only stateful.
This is an API change (removing getQueryResult), and if people are using
it I will leave as is, but I'm not sure if anyone will be using that
anyway. What do people think?
Mark
17 years, 3 months
Build Error from SVN Trunk
by Steven Waldren
I just downloaded the trunk from the subversion repository. When I
try to build with maven, I get a build failure during the JSR-94 API
Module building after starting the [surefire:test]. (Attached is the
log from maven with the error at the bottom)
Any idea what the problem is?
Thanks,
Steven
17 years, 3 months
java.lang.ClassNotFoundException: org.drools.brms.client.rpc.Rule Asset
by Baron, Stephen
Hi,
Im trying to run 4.00.01 of the JBoss Rules BRMS using Java 1.5.0_06 on a
Windows XP box and browsing using Firefox. Everything seems to work fine
until I create a Business Rule and try clicking 'View Source' or 'Validate'
when I get the following exception:
ERROR 07-09 13:20:54,953 (ApplicationContext.java:log:675) Exception
while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.ClassNotFoundException: org.drools.brms.client.rpc.RuleAsset
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserial
ize(ServerSerializationStreamReader.java:156)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readOb
ject(AbstractSerializationStreamReader.java:61)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserial
izeValue(ServerSerializationStreamReader.java:70)
at
org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.processCall(GWTRemoteSer
viceServlet.java:285)
at
org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.doPost(GWTRemoteServiceS
ervlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:56)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run()V(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
org.drools.brms.client.rpc.RuleAsset
at
java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lan
g.Class;(Unknown Source)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserial
ize(ServerSerializationStreamReader.java:135)
... 24 more
Any help would be greatly appreciated.
Kind Regards
Steve
LEGAL NOTICE
The information contained in this e-mail and any attachments are private and
confidential. This message is solely intended for a particular recipient, if
you are not the intended recipient you are prohibited from storing, copying,
disseminating or using the information in any way. If you received this
e-mail in error please notify the sender immediately. E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors, viruses or omissions in the contents of this message, which arise as
a result of transmission. This e-mail is not intended to create legally
binding commitments on behalf of Northern Rock plc, nor do its contents
reflect the corporate views or policies of Northern Rock plc.
Northern Rock plc, Registered Office Northern Rock House Gosforth Newcastle
upon Tyne NE3 4PL. Registered in England, number 3273685. Telephone No: 0191
2857191
Northern Rock plc is authorised and regulated by the Financial Services
Authority for deposit-taking; advising on and arranging mortgages and
general insurance; and for introducing life assurance and investments.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
17 years, 3 months
parsing error using accumulate
by Isabelle Hupont
Hi!
I'm integrating Weka with Drools v.4 and I have a parsing error while trying
to read the following DRL rule:
rule "calculate average"
when
$inst : Instance()
$media : Double(double value > 50000)
from accumulate($value : inst.classValue()
average($value))
then
System.out.println(media );
end
I have the following error:
org.drools.compiler.DroolsParserException: Unknown error while parsing. This
is a bug. Please contact the Development team.
at org.drools.compiler.DrlParser.compile(DrlParser.java:180)
at org.drools.compiler.DrlParser.parse(DrlParser.java:61)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:158)
at com.sample.DroolsTest.readRule(DroolsTest.java:67)
at com.sample.DroolsTest.main(DroolsTest.java:24)
What I am doing wrong?
Thx
--
View this message in context: http://www.nabble.com/parsing-error-using-accumulate-tf4390367.html#a1251...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
Deploying BRMS package
by kissro@lidp.com
Hello,
After building a rules package in BRMS, there is an option to create a
'Snapshot' and/or 'Download binary package'. If you select download,
where do you put the .pkg file? How do you deploy the .pkg file and get
your application to access it? The documentation does not say where to
download the file to or how to use it. Could someone tell me.
Thanks,
Rod
17 years, 3 months
storing array in variable!
by vamshidhar reddy chitti
hi
how to store array of string values in a variable and later checking for some value to be in that array..
for example
String[] str = new String[] { "Spouse", "Annuitant", "Nominee" };
am trying to store like this
$test1 : Object($example : str)
is it right?
and i need to compare like Object2 ( x in ($example) )
my rule doesnt fire..
please help me..
tnx
vamshi
---------------------------------
Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!
17 years, 3 months
Problem with debug Drools in Eclipse
by vdelbart
Hello,
I want to use the debug mode of my DSLR but when I put a breakpoint the line
number and the view is not correct.
Example :
---------------------------------------------
MY DSLR :
1 - #created on: 6 sept. 2007
2 - package exemple2
3 -
4 - #list any import classes here.
5 - import mcmipih.rules.demo.model.*;
6 -
7 - expander dslDemoMoteurVenue.dsl
8 -
9 - rule "Your First Rule"
10 - when
11 - soit 'variable' étant un/une "Param" tel que
12 - - IEP est égale à "nothing"
13 - - RIO est égale à ""
14 - then
15 - afficher le message "nothing in IEP"
16 - end
---------------------------------------------
In DRL Viewer I have
---------------------------------------------
1 - #created on: 6 sept. 2007
2 - package exemple2
3 -
4 - #list any import classes here.
5 - import mcmipih.rules.demo.model.*;
6 -
7 -
8 -
9 - rule "Your First Rule"
10 - when
11 - variable:Param( IEP == "nothing", RIO == "" )
12 - then
13 - System.out.println("nothing in IEP");
14 - end
---------------------------------------------
But when I put a beakpoint on the line 15 in my DSLR, my program don't stop.
But when I put the breakpoint on the line 13, my program stop in the then.
The reason is all the conditions like this is not count :
soit 'variable' étant un/une "Param" tel que
- IEP est égale à "nothing"
- RIO est égale à ""
number of line : 3
but in the DRL Viewer I have :
variable:Param( IEP == "nothing", RIO == "" )
number of line : only 1
And the debug takes the DRL and not the DSLR.
Strange !
Vdelbart
--
View this message in context: http://www.nabble.com/Problem-with-debug-Drools-in-Eclipse-tf4391132.html...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months