<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18702">



<div dir="ltr"><font color="#000000" size="2" face="Tahoma">HI ,</font></div>
<div dir="ltr"><font size="2" face="Tahoma">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.</font></div>
<div dir="ltr"><font size="2" face="Tahoma"></font>&nbsp;</div>
<div dir="ltr"><font size="2" face="Tahoma">//</font></div>
<div dir="ltr"><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">
<p align="left">public</b></font></font><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">class</b></font></font><font size="2"> DroolsTest {</p>
<p align="left"></p>
<p align="left"></p>
<p align="left"></font><font color="#646464" size="2"><font color="#646464" size="2">@SuppressWarnings</font></font><font size="2">(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">&quot;unused&quot;</font></font><font size="2">)</p>
<p align="left"></p>
<p align="left"></font><strong><font style="BACKGROUND-COLOR: #ffff99"><font color="#7f0055" size="2"><font color="#7f0055" size="2">private</font></font><font size="2">
</font><font color="#7f0055" size="2"><font color="#7f0055" size="2">final</font></font><font size="2">
</font><font color="#7f0055" size="2"><font color="#7f0055" size="2">long</font></font><font size="2">
</font><font color="#0000c0" size="2"><font color="#0000c0" size="2">serialVersionUID</font></font></font></strong><font size="2"><strong><font style="BACKGROUND-COLOR: #ffff99">=5308493362083281112L;</font></strong></p>
<p align="left"></p>
<p align="left"></font><font color="#3f5fbf" size="2"><font color="#3f5fbf" size="2">/**</p>
<p align="left">* </font></font><b><font color="#7f9fbf" size="2"><font color="#7f9fbf" size="2">@param</b></font></font><font color="#3f5fbf" size="2"><font color="#3f5fbf" size="2"> args</p>
<p align="left">*/</p>
</font></font><font size="2">
<p align="left"></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">public</b></font></font><font size="2">
</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">static</b></font></font><font size="2">
</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">final</b></font></font><font size="2">
</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">void</b></font></font><font size="2"> main(String[] args) {</p>
<p align="left">System.</font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</i></font></font><font size="2">.println(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">&quot;Mainnnnnnnnnn&quot;</font></font><font size="2">);</p>
<p align="left">Properties properties = </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">new</b></font></font><font size="2"> Properties();</p>
<p align="left"></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">try</b></font></font><font size="2"> {</p>
<p align="left">properties.load(</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">new</b></font></font><font size="2"> FileInputStream(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">&quot;Guvnor.properties&quot;</font></font><font size="2">));</p>
<p align="left">} </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">catch</b></font></font><font size="2"> (IOException e) {</p>
<p align="left">}</p>
<p align="left"></p>
<p align="left"></p>
<p align="left">RuleAgent agent = RuleAgent.<i>newRuleAgent</i>(properties);</p>
<p align="left"></p>
<p align="left">System.</font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</i></font></font><font size="2">.println(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">&quot;Mainnnnnnnnnn1&quot;</font></font><font size="2">);
</p>
<p align="left">RuleBase ruleBase = agent.getRuleBase();</p>
<p align="left">System.</font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</i></font></font><font size="2">.println(</font><font color="#2a00ff" size="2"><font color="#2a00ff" size="2">&quot;Mainnnnnnnnnn2&quot;</font></font><font size="2">);
</p>
<p align="left">WorkingMemory workingMemory = ruleBase.newStatefulSession();</p>
<p align="left"></p>
<p align="left"></font><font color="#3f7f5f" size="2"><font color="#3f7f5f" size="2">// Driver d = new Driver(&quot;<u>Jarek</u>&quot;, 20, null);</p>
</font></font><font size="2">
<p align="left">GuvnorModel gm=</font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">new</b></font></font><font size="2"> GuvnorModel();</p>
<p align="left">gm.setAge(22);</p>
<p align="left"></p>
<p align="left">workingMemory.insert(gm);</p>
<p align="left"></p>
<p align="left">workingMemory.fireAllRules();</p>
<p align="left"></p>
<p align="left"></font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">for</b></font></font><font size="2"> (<u>Iterator</u> i = workingMemory.iterateObjects(); i.hasNext();) {</p>
<p align="left">System.</font><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</i></font></font><font size="2">.println(i.next().getClass().getCanonicalName());</p>
<p align="left">}</p>
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p align="left">}</p>
<p align="left"></p>
<p>}//</p>
</font></div>
<div dir="ltr"><font size="2" face="Tahoma"></font>&nbsp;</div>
<div dir="ltr"><font size="2" face="Tahoma"></font>&nbsp;</div>
<div dir="ltr"><font size="2" face="Tahoma">Regards,</font></div>
<div dir="ltr"><font size="2" face="Tahoma">Shantha</font></div>
<div style="DIRECTION: ltr" id="divRpF622313">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> Esteban [via Drools - Java Rules Engine] [ml-node&#43;<a href="/user/SendEmail.jtp?type=node&node=874345&i=0" target="_top" rel="nofollow">[hidden email]</a>]<br>
<b>Sent:</b> Saturday, June 05, 2010 4:29 AM<br>
<b>To:</b> Peddada, Shanthakumar<br>
<b>Subject:</b> Re: RuleAgent in webservice<br>
</font><br>
</div>
<div></div>
<div>Where are you adding that field?<br>
<br>
<div class="gmail_quote">On Fri, Jun 4, 2010 at 6:11 PM, ShanzRules <span dir="ltr">
&lt;<a href="UrlBlockedError.aspx?by-user=t" rel="nofollow" target="_blank" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex; PADDING-RIGHT: 1em; PADDING-TOP: 0px" class="gmail_quote">
<br>
Hi ,<br>
<br>
gettting the same error trace even after declaring the private final long<br>
serialVersionUID=5308493362083281112 in the java class.<br>
<br>
Please suggest to solve.<br>
<br>
Shantha<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservice-tp767359p871528.html" rel="nofollow" target="_blank" link="external">
http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservice-tp767359p871528.html</a><br>
</font>
<div>
<div></div>
<div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="UrlBlockedError.aspx?by-user=t" rel="nofollow" target="_blank" link="external">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" target="_blank" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>
Esteban Aliverti<br>
<br>
_______________________________________________ <br>
rules-users mailing list <br>
<a href="UrlBlockedError.aspx?by-user=t" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" target="_blank" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<hr color="#cccccc" size="1" noshade="">
<div style="FONT: 11px tahoma,geneva,helvetica,arial,sans-serif; COLOR: #666666">
View message @ <a href="http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservice-tp767359p871737.html" target="_blank" rel="nofollow" link="external">
http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservice-tp767359p871737.html</a>
<br>
To unsubscribe from Re: RuleAgent in webservice, <a target="_blank" rel="nofollow" link="external">
click here</a>. </div>
<br>
</div>
<br>
<hr>
<font face="Arial" color="Black" size="2">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 <a href="/user/SendEmail.jtp?type=node&node=874345&i=1" target="_top" rel="nofollow">[hidden email]</a> and delete this mail.<br>
</font>



<br><hr align="left" width="300">
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/RuleAgent-in-webservice-tp767359p874345.html">RE: RuleAgent in webservice</a><br>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools - User mailing list archive</a> at Nabble.com.<br>