Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Manohar Kokkula
Thanks a lot for the help. I changed the quotes from "default" to "(U+0022)". Now the program is getting executed correctly.It would be great if the default quotes are automatically replaced by the quotes supported by the decision table, as by looking at the drl they seem similar. Regards,Manohar

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Wolfgang Laun
t; >>>> >>>> >>>> >>>> >>>> >>>> >>>> Regards, >>>> Manohar Kokkula >>>> Mailto: manohar.kokk...@tcs.com >>>> >>>> -rules-users-boun...@lists.jboss.org wrote:

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Michael Anstis
s. >>> >>> >>> >>> >>> >>> >>> >>> Regards, >>> Manohar Kokkula >>> Mailto: manohar.kokk...@tcs.com >>> >>> -rules-users-boun...@lists.jboss.org wrote: - >>> >>> To: Ru

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Wolfgang Laun
Rules Users List >> From: Wolfgang Laun ** >> Sent by: rules-users-boun...@lists.jboss.org >> Date: 08/26/2011 12:26AM >> >> Subject: Re: [rules-users] Error is Java.lang.RuntimeException >> >> Heh :) Looking at the DRL, I spotted it: >> >> >

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Michael Anstis
To: Rules Users List >> From: Wolfgang Laun ** >> Sent by: rules-users-boun...@lists.jboss.org >> Date: 08/26/2011 12:26AM >> Subject: Re: [rules-users] Error is Java.lang.RuntimeException >> >> >> Heh :) Looking at the DRL, I spotted it: >> >&g

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Wolfgang Laun
kkula > Mailto: manohar.kokk...@tcs.com > > -rules-users-boun...@lists.jboss.org wrote: - > > To: Rules Users List > From: Wolfgang Laun ** > Sent by: rules-users-boun...@lists.jboss.org > Date: 08/26/2011 12:26AM > Subject: Re: [rules-users] Error is Java.l

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-26 Thread Michael Anstis
rules-users-boun...@lists.jboss.org wrote: - > > To: Rules Users List > From: Wolfgang Laun ** > Sent by: rules-users-boun...@lists.jboss.org > Date: 08/26/2011 12:26AM > > Subject: Re: [rules-users] Error is Java.lang.RuntimeException > > Heh :) Looking at th

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-25 Thread Manohar Kokkula
I am using Open Office Spreadsheet to create decision table. So what should i do to resolve this..Please help me on this.Regards,Manohar KokkulaMailto: manohar.kokk...@tcs.com-rules-users-boun...@lists.jboss.org wrote: -To: Rules Users List From: Wolfgang Laun Sent by: rules-users-boun...@l

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-25 Thread Wolfgang Laun
Heh :) Looking at the DRL, I spotted it: > rule *"*Allocation Rules_10*"* > when >$s:Student(marks == *"*60", age == "20") >$c:College(ranking == "A", location == "Mumbai") >then Up there, all quotes are ASCII quotes, code point U+0022. >

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-25 Thread FrankVhh
Shouldn't marks and age be integer values and not Strings? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3283990.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-us

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-25 Thread Manohar Kokkula
101] Line 34:19 no viable alternative at input ''[34,27]: [ERR 101] Line 34:27 no viable alternative at input ''[35,15]: [ERR 101] Line 35:15 no viable alternative at input ''[35,24]: [ERR 101] Line 35:24 no viable alternative at input '' at com.sample.Alloc

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-25 Thread Wolfgang Laun
The cell with the keyword RuleTable must also contain the string for the initial part of the rule name. It seems that you have this in the adjoining cell. - See the docs, section "Rule Tables". -W 2011/8/25 Manohar Kokkula > Hi Frank and Wolfgang, > > Thank you for your help, > I did everything

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-25 Thread Manohar Kokkula
Hi Frank and Wolfgang, Thank you for your help, I did everything as you both said,still i am getting the same error, java.lang.RuntimeException: [12,19]: [ERR 101] Line 12:19 no viable alternative at input ''[12,27]: [ERR 101] Line 12:27 no viable alternative at input ''[13,15]: [ERR 101] Lin

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-24 Thread Wolfgang Laun
For the conditions where a field is tested for equality with some value, the field name alone is sufficient. So, use [age] rather than [age==]. For other comparison operators, add the operator, and each value is appended, as written in a cell below. For more complicated expressions, use an expressi

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-24 Thread FrankVhh
Hi, Maybe you can put something like the following in the code: SpreadsheetCompiler xlsCompiler = new SpreadsheetCompiler(); String drl = xlsCompiler.compile(ResourceFactory.newClassPathResource("Sample.xls").getInputStream(),InputType.XLS); System.out.println(drl); This should enable you to see

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-24 Thread Manohar Kokkula
Hi,I put $param in the blank places, but still i am getting same error:Error is java.lang.RuntimeException: [10,23]: [ERR 101] Line 10:23 no viable alternative at input ''[10,25]: [ERR 101] Line 10:25 no viable alternative at input ''[10,38]: [ERR 101] Line 10:38 no viable alternative at input ''[

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-24 Thread FrankVhh
Hi, It was something that I did not spot immediately, but you also forgot to put $param in the cells where you evaluate an integer value marks == $param in stead of marks == blank But maybe that was something that you already corrected. I also noticed that Esteban explained the cell merging muc

Re: [rules-users] Error is Java.lang.RuntimeException

2011-08-24 Thread Manohar Kokkula
Hi Frank, I already did as you said, but still i am getting the following error: Error is java.lang.RuntimeException: [12,19]: [ERR 101] Line 12:19 no viable alternative at input ''[12,27]: [ERR 101] Line 12:27 no viable alternative at input ''[13,15]: [ERR 101] Line 13:15 no viable alternati