Error on Rule Parsing on JBOSS server
by ramram
Hi All,
I have the below rule that I am testing when using a Tomcat server errors
the application deploys fine and the rule fires with no errors on the other
hand when I tried to deploy the same war on JBOSS I had the following
exception can anyone help on this.
Exception (
ERROR [STDERR] [1,9]: [ERR 101] Line 1:9 no viable alternative
at input '.'
java.lang.IllegalArgumentException: Could not parse
knowledge.
at
com.fp.engine.RuleEngineDef.newStatefulKnowledgeSession(RuleEngineDef.java:49)
at
com.fp.engine.RuleEngineDef.getSession(RuleEngineDef.java:29)
)
#created on: May 12, 2010
package com.fp
#list any import classes here.
import com.fp.vo.StageLine;
rule "test revenue rule"
when
stgLine : StageLine ( ruleName == 'testRev' )
then
System.out.println("++++ RULE HIT ON NETSALES ++++");
end
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-on-Rule-Parsing...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 6 months
Problem with poi.apache.usermodel.hssf file
by Fnu Mahalakshmi
Hi,
I tried downloading the apache poi 3.6 files from the apache site but I could not find any .jar files which I could add.
I got all java files for hssf and I added it to my eclipse project as external reference>add external class folder.
But still it is not recognized and I get error when I try to do this:
import org.apache.poi.hssf.usermodel.HSSFCell;
I do not understand what to download or add to make it work?
Can someone please help!!
Thank you in advance.
Mahalakshmi
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 6 months
reading brl files in eclipse
by Fnu Mahalakshmi
Hi,
How can we read .brl files in eclipse (when I import a business rule to eclipse)?
How can I create a guided rule in eclipse? I am unable to use the facts in my project like it appears with the guvnor editor?
Please help ..
Thank you.
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 6 months
Problem uploading project in eclipse
by Fnu Mahalakshmi
Hi,
I have created my rules and test scenarios as per the drools tutorial & guide.
But I am having trouble uploading that project into my Eclipse IDE.
I just selected upload from Guvnor Repository and I can then only select certain files.
Again the .brl files do not open in eclipse.
how I can test my sample dataset (contained in an excel file) in the drools guvnor itself without uploading the whole project in eclipse?
Or do I need to write all the rules from a scratch in eclipse again for it to work? Then whats the whole point of using the guvnor guided editor??
Please help me out. Am new to drools.
Thank you.
Please consider the environment before printing this email.
Visit our website at http://www.nyse.com
****************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
14 years, 6 months
Problem uploading project in eclipse
by Fnu Mahalakshmi
Hi,
I have created my rules and test scenarios as per the drools tutorial & guide.
But I am having trouble uploading that project into my Eclipse IDE.
I just selected upload from Guvnor Repository and I can then only select certain files.
Again the .brl files do not open in eclipse.
how I can test my sample dataset (contained in an excel file) in the drools guvnor itself without uploading the whole project in eclipse?
Or do I need to write all the rules from a scratch in eclipse again for it to work? Then whats the whole point of using the guvnor guided editor??
Please help me out. Am new to drools.
Thank you.
Please consider the environment before printing this email.
Visit our website at http://www.nyse.com
****************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
14 years, 6 months
Importing data in drools applications..
by Mahalakshmi
hi,
I am new to drools and am really confused with the follwing:
1.
how I can go about adding a data set and modifying the data set based on my
rules.
Can I add a data set to my drools-guvnor itself and apply my rules to it and
check? Does the data set need to be in an excel file?
For example. I want to store 2 columns ( customer name & billingnumber)
2.
How can i import my drools project into eclipse and work with the data set?
Because when I tried doing that I could not see the rules I created in
eclipse. It just showed me the first import package statements.
Also I am unable to import the whole project at once.
Can somebody please guide me or give me some documentation I can refer to? I
am just going about in circles.
3.
How can I go about creating a front end for the application??
Any help highly appreciated :)
thank you.
Jillika
14 years, 6 months
drools 5.0.1 generating fact types as non-serializable classes
by cjohnston
Hello, I have declared a fact type in a drl file:
package com.innovativeinfo.amacus.drools.model
declare AmacusUser
id : long
timeZone : String
end
which according to
http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/ht...
should result in a generated class that implements Serializable.
However when I try to persist the KnowledgeSession, I get:
Caused by: java.io.NotSerializableException:
com.innovativeinfo.amacus.drools.model.AmacusUser
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at
org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy.write(SerializablePlaceholderResolverStrategy.java:37)
at
org.drools.marshalling.impl.OutputMarshaller.writeFactHandle(OutputMarshaller.java:278)
at
org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:242)
at
org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:85)
at
org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:117)
at
org.drools.persistence.session.JPASessionMarshallingHelper.getSnapshot(JPASessionMarshallingHelper.java:76)
Is there a configuration option I need to set to generate Serializable fact
types? Or is this a bug in 5.0.1? I realize I can define "fact types" myself
as classes in Java, but would prefer to use the shortened syntax if
possible.
Any advice appreciated.
Cheers
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-5-0-1-generati...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 6 months