HI ,
I have added in the main java program , befor the main() funtion calling , also tried by
adding in the main function, but still getting the same error.
//
public class DroolsTest {
@SuppressWarnings("unused")
private final long serialVersionUID=5308493362083281112L;
/**
* @param args
*/
public static final void main(String[] args) {
System.out.println("Mainnnnnnnnnn");
Properties properties = new Properties();
try {
properties.load(new FileInputStream("Guvnor.properties"));
} catch (IOException e) {
}
RuleAgent agent = RuleAgent.newRuleAgent(properties);
System.out.println("Mainnnnnnnnnn1");
RuleBase ruleBase = agent.getRuleBase();
System.out.println("Mainnnnnnnnnn2");
WorkingMemory workingMemory = ruleBase.newStatefulSession();
// Driver d = new Driver("Jarek", 20, null);
GuvnorModel gm=new GuvnorModel();
gm.setAge(22);
workingMemory.insert(gm);
workingMemory.fireAllRules();
for (Iterator i = workingMemory.iterateObjects(); i.hasNext();) {
System.out.println(i.next().getClass().getCanonicalName());
}
}
}//
Regards,
Shantha
________________________________
From: Esteban [via Drools - Java Rules Engine]
[ml-node+871737-623743442-276432(a)n3.nabble.com]
Sent: Saturday, June 05, 2010 4:29 AM
To: Peddada, Shanthakumar
Subject: Re: RuleAgent in webservice
Where are you adding that field?
On Fri, Jun 4, 2010 at 6:11 PM, ShanzRules <[hidden
email]<UrlBlockedError.aspx>> wrote:
Hi ,
gettting the same error trace even after declaring the private final long
serialVersionUID=5308493362083281112 in the java class.
Please suggest to solve.
Shantha
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservi...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]<UrlBlockedError.aspx>
https://lists.jboss.org/mailman/listinfo/rules-users
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
_______________________________________________
rules-users mailing list
[hidden email]<UrlBlockedError.aspx>
https://lists.jboss.org/mailman/listinfo/rules-users
________________________________
View message @
http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservi...
To unsubscribe from Re: RuleAgent in webservice, click
here<http://drools-java-rules-engine.46999.n3.nabble.com/subscriptions...;.
________________________________
This e-mail message may contain proprietary, confidential or legally privileged
information for the sole use of the person or entity to whom this message was originally
addressed. Any review, e-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. If you have received this e-mail in error kindly delete this
e-mail from your records. If it appears that this mail has been forwarded to you without
proper authority, please notify us immediately at netadmin(a)patni.com and delete this
mail.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservi...
Sent from the Drools - User mailing list archive at
Nabble.com.