<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks for trying it out. <br>Actually it was a typo in my posting text and not in the code. I have declared variable called tText and have a getTText() method.<br>Below is the rule segment.<br><br>rule "entity.testrule"<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; $rulesSerivceTest:RulesServiceTest(tText:tText)<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; logger.info("Received an Test");<br>end<br><br>Below is the error while creating the package.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; [java] java.lang.RuntimeException: Unable to create Field Extractor for 'tText' : [Rule name=entity.testrule, agendaGroup=MAIN, salience=0, no-loop=false]<br>&nbsp;&nbsp;&nbsp;&nbsp; [java]
 org.drools.RuntimeDroolsException: org.drools.RuntimeDroolsException: Field/method 'tText' not found for class 'com.satmetrix.rules.test.rulestest.RulesServiceTest'<br>&nbsp;&nbsp;&nbsp;&nbsp; [java] 16:24:57,642 INFO&nbsp;&nbsp; - Error Summary : Unable to create Field Extractor for 'tText' : [Rule name=entity.testrule, agendaGroup=MAIN, salience=0, no-loop=false]<br><br><br><br>I was using 4.0.4 then I tried with 4.0.7 and got the same error. Are you extracting the field in the rule?<br><br><br>Regards,<br>Siva<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Alexander Claus &lt;styjdt@claus4joy.de&gt;<br>To: Rules Users List &lt;rules-users@lists.jboss.org&gt;<br>Sent: Wednesday, June 11, 2008 3:41:29 PM<br>Subject: [rules-users] Re: Rules compiler is not able to extract the field withxXXX format<br><br>
&gt; I have a member variable called tText (i.e any variable with xXXX format)<br>&gt; and have the proper getter/setter ( getTText() and setTText(String arg) ).<br>&gt; If I try the extract that field in the rule LHS ( i.e.<br>&gt; someclass(myText:tText)&nbsp; ) then I get the "Unable to create Field <br>&gt; Extractor<br>&gt; for 'sText'" error.<br><br>Sorry, but I can't reproduce that.<br>I'm working with Drools 4.0.7 and if I set up a test case with the values as <br>you describe (String tText, ...), my test runs successfully.<br>Stupid question: Are you sure that you have no typo in your rule? You get an <br>error for "sText", but you have declared "tText".<br><br>Alexander Claus <br><br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a
 href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div></div><br>



      </body></html>