Exception in JBRMS with 4.0.2
by kissro@lidp.com
Hello,
I upgraded from 4.0.1 to 4.0.2 and am getting the following errors when
I try to bring up the BRMS in the web-based gui. I get the "JBoss Rules"
screen but it's blank; it doesn't have the login boxes. The console
shows:
[STDOUT] ERROR 09-10 (Contexts.java:flushAndDestroyContexts:
could not discover transaction status
[STDOUT] ERROR 09-10 (StandardWrapperValve.java:invoke:278)
Servlet.service() for servlet default threw exception
java.lang.IllegalStateException: Cannot create a session after
the response has been committed
at org.apache.catalina.connector.Request.doGetSession(Request.java:2284)
at org.apache.catalina.connector.Request.getSession(Request.java:2066)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833
at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:87)
at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:25)
Also, when I run my java program that reads the .drl file, builds
WorkingMemory, fires the rules, etc., I get this exception:
[STDOUT] ERROR 09-10 (Contexts.java:flushAndDestroyContexts:
could not discover transaction status
[STDOUT] Error calling UnderwritingRule java.lang.ClassCastException:
java.util.Collections$EmptyMap
If I revert back to the 4.0.1 jar files and 4.0.1 brms .war file,
everything works fine again. Could someone tell me how to resolve these
errors or point me in the direction to start looking? Did I just not
copy in a new file or update somewhere?
Thanks,
Rod
17 years, 2 months
Re: [rules-users] Stack Overflow error when using Drool 4.0 plug-in in Eclipse Europa
by Mark Proctor
Tim.Nguyen(a)expeditors.com wrote:
> Hi Mark,
>
> I just saw the Drool 4.02 has just been released. I wonder if the new
> plug-in works in Eclipse Europa (3.3). Thanks,
>
No it doesn't. But trunk has now been upgraded so that it does. Hudson
has just build this, so you can play with it now and find regressions:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/t...
> Best Regards,
> Tim Nguyen
>
>
>
>
> Mark Proctor
> <mproctor@codehau
> s.org> To
> Tim.Nguyen(a)expeditors.com
> 08/24/2007 03:47 cc
> PM
> Subject
> Re: [rules-users] Stack Overflow
> error when using Drool 4.0
> plug-in in Eclipse Europa
>
>
>
>
>
>
>
>
>
>
> yes we haen't done it yet, this is what is going into 4.0.1. I mean you can
> use a snapshot in a few weeks time, once we've updated.
>
> Mark
> Tim.Nguyen(a)expeditors.com wrote:
> Thanks Mark, I don't mind using snapshot but it seems like the
> snapshot is
> not working with Europa either. I drop the jar to eclipse, restart
> eclipse
> but it didn't start up Eclipse.
>
> Best Regards,
> Tim Nguyen
> Java Developer, Tradeflow
> Expeditors CHQ
> 206-674-3400 (x3126)
>
>
>
> Mark Proctor
>
> <mproctor@codehau
>
> s.org>
> To
> Tim.Nguyen(a)expeditors.com
>
> 08/24/2007 03:02
> cc
> PM
>
>
> Subject
> Re: [rules-users] Stack
> Overflow
> error when using Drool 4.0
>
> plug-in in Eclipse Europa
>
>
>
>
>
>
>
>
>
>
>
> our build system puts out regular snapshots. we'll upgrade the code
> to
> Eclipse 3.3 quite quickly, we just won't have an official release, so
> you'll have to use an unsupported snapshot build.
>
> http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules
>
> Mark
> Tim.Nguyen(a)expeditors.com wrote:
>
> Thanks Mark, what snapshot are you talking about?
>
> Best Regards,
> Tim Nguyen
>
>
>
>
>
>
>
> Mark Proctor
>
>
>
> <mproctor@codehau
>
>
>
> s.org>
>
> To
>
> Sent by: Rules Users List
>
>
>
> rules-users-bounc
> <rules-users(a)lists.jboss.org>
>
>
>
> es(a)lists.jboss.or
>
> cc
>
> g
>
>
>
> Subject
>
> Re: [rules-users] Stack
> Overflow
>
>
>
> 08/24/2007 02:33 error when using Drool
> 4.0
>
>
>
> PM pluggin in Eclipse
> Europa
>
>
>
>
>
>
>
> Please respond to
>
>
>
> Rules Users List
>
>
>
> <rules-users@list
>
>
>
> s.jboss.org>
>
>
>
>
>
>
>
>
>
>
> If you don't mind using a snapshot we should have it upgraded
> in a few
> weeks time.
>
> Mark
> Tim.Nguyen(a)expeditors.com wrote:
> Is there any work around for 4.0 plugin working in
> Europa? I use
> Europa but
> really like the new feature of drool 4.0.
>
> Or any time frame when the new 4.0 plugin that is
> compatible with
> europa
> will come out.
>
>
> Best Regards,
> Tim Nguyen
>
>
>
>
> Mark Proctor
>
> <mproctor@codehau
>
> s.org>
> To
> Sent by: Rules Users List
>
> rules-users-bounc
>
> <rules-users(a)lists.jboss.org>
>
> es(a)lists.jboss.or
> cc
> g
>
>
> Subject
> Re: [rules-users]
> Stack
> Overflow
> 08/24/2007 12:32 error when using
> Drool 4.0
> pluggin
> PM in Eclipse
> Europa
>
>
>
> Please respond to
>
> Rules Users List
>
> <rules-users@list
>
> s.jboss.org>
>
>
>
>
>
>
>
> We only work with eclipse 3.2.
>
> Mark
> Tim.Nguyen(a)expeditors.com wrote:
>
> Hi,
>
> I got the Stack Overflow error when I use Drool 4.0
> pluggin.
> Here is what
>
> I
>
> did:
>
> I have been using Drool 3.0.6 pluggin for a while
> without
> anyproblem. Now
>
> I
>
> want to upgrade to 4.0, so I delete the old 3.0.6
> pluggin,
> download the
>
> 4.0
>
> pluggin from the website, then drop the
> org.drools.eclipse_4.0.0.jar to
>
> my
>
> Eclipse Europa's pluggin.
> It starts up my Eclipse just fine, I can see new
> Drool icon
>
> and
>
> menu. But
> when I open any .drl file, I got the Stack Overflow
> error.
>
> Any idea?
>
> Here is my Eclipse's parameter:
>
> -Xms384m
> -Xmx512m
> -XX:PermSize=128m
> -XX:MaxPermSize=128m
>
>
>
>
> Best Regards,
> Tim Nguyen
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
17 years, 2 months
Problem in using genrics with drools4.0.1.
by Gaurav2007
HI ALL,
I am using drool 4.0.1 in my project.
I am facing problem in using generics feature of jdk1.5.
My objective is to perform validation on the basis of data type of variable.
for storing values of variable i have one Attribute Class it contains getter
setter for values of attribute and attributeId which is a string but value
of attribute is of deferent type so i am thinking to use generics here.
public class Attribute<T> {
public String qualifiedName;
public T newValue;
public T oldValue;
public String getQualifiedName() {
return qualifiedName;
}
public void setQualifiedName(String qualifiedName) {
this.qualifiedName = qualifiedName;
}
public T getNewValue() {
return (T)newValue;
}
public void setNewValue(T newValue) {
this.newValue = newValue;
}
public T getOldValue() {
return oldValue;
}
public void setOldValue(T oldValue) {
this.oldValue = oldValue;
}
}
my rule for date comparison looks like:
//Date Comparison.
rule "W250.1 DateComparison"
when
$dto : DataProvider()
Attribute(newValue < "29-Oct-2007") from $dto.getValue("W250.1")
then
System.out.println ("Error in Date check \t");
end
DataProvider class it is responsible to give instance of attribute
corresponding to attributeId:
public class DataProvider {
HashMap<String,Attribute> fieldMap=new HashMap<String, Attribute>();
public DataProvider() {
populateMap();
}
public Attribute getValue(String qualifiedName){
Attribute attribute = fieldMap.get(qualifiedName);
return attribute;
}
public void populateMap(){
Attribute<Date> attribute = new Attribute<Date>();
SimpleDateFormat format = new SimpleDateFormat("dd-MMM-yyyy");
Date date;
try {
date = format.parse("27-Oct-2007");
attribute.setQualifiedName("W250.1");
attribute.setOldValue(date);
attribute.setNewValue(date);
fieldMap.put(attribute.getQualifiedName(),attribute);
}
catch (ParseException e) {
e.printStackTrace();
}
}
}
in this case i am getting exception:
Exception in thread "main" java.lang.ClassCastException: java.lang.String
when i am not using generics this rule is working fine.
but in this case how should i perform validation depending upon data type of
attribute.
can you please help me in solving this problem.
Thanks,
Gaurav Joshi
--
View this message in context: http://www.nabble.com/Problem-in-using-genrics-with-drools4.0.1.-tf458655...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 2 months
About rules firing
by prateek.katiyar@wipro.com
Hi
I am using Drools 4.0.
I have two rules in my rule file.The "when" condition of my first rule is satisfying.Now please tell me that what should i do if i don't want to execute the second rule?
Thanks.
With Regards
Prateek
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
17 years, 2 months
eval
by Markus Helbig
Hi,
given the following DSL
[when]of type Item=Item()
[when]- Title equals "{value}"=eval(title.isEqual("{value}")
[when]- Event equals "{value}"=eval(id.isEqual("{value}")
[then]Log : "{message}"=System.out.println("{message}");
the dslr File:
expander Test.dsl
rule "Your First Rule"
when
$p : of type Item
- Title equals "test"
- Event equals "test"
then
#actions
end
resolves to (could be seen in the drl viewer)
rule "Your First Rule"
when
$p :Item( eval(title.isEqual("test", eval(id.isEqual("test") ) )
then
#actions
end
so this of course does not work because of the brackets in "eval"
How could i solve this problem? I need the two different eval
conditions, and sometimes they have to be combined.
Thanks
Markus
17 years, 2 months
BRMS - how to use variables on Action part?
by Felipe Piccolini
Ok, so to fit on the "not ignored emails" from the list Mark posted,
I changed the title. However I following in the list
anyways beacuse Im resending this email in less than 3 days.
Note: Im not desperate, nor this is for today. This just came out
today yesterday and well... its important to me, but I
think I can get a work around for now.
So here is the real on-topic question.
-----------------
Anyone knows how to use variables (from fields) setted on LHS, to
modify a field on the RHS using the GUI editor
from BRMS?
What I need is to write this rule on BRMS.
rule "Set approvedMount for a women"
no-loop true
when
$p: Person($sex: sex == "F", $income: incomeMount)
then
$p.setApprovedMount($income * 1.2);
update($p);
end
I know I can use formulas, but I only know how to set those on LHS, I
dont know how to put a formula on RHS (setter of the field to modify).
Thanks.
Felipe Piccolini M.
felipe.piccolini(a)bluesoft.cl
17 years, 2 months
Accumulate Functions for forms
by Chong Minsk Goh
Hi Everyone,
I am currently trying to write customize Java codes for
MinAccumulateFunction and MaxAccumulateFunction. However, I could not find
any guidelines or templates for these two (there is one for sum and avg in
the Documentation).
Could anyone provide some resources or examples how to write these
functions?
Much appreciated
Minsk
17 years, 2 months
DRL doubts
by Thiago H. Pojda
Hello,
I'm building a rule structure (drl) from scratch. My first idea was to make
a drl with it's corresponding dsl like: Geral.drl - Geral.dsl. But I saw
some other kind of structures, like "brl" files and now I'm not sure what to
use.
If you guys could send me some some examples of working structures it would
be great. I'm trying to make something organized, and looking at rules from
more experienced people would help a lot.
I'd like to have a general idea of things so I can make a better choice.
Any help would be appreciated.
Thank you,
--
Thiago Henrique Pojda
Curitiba - PR - Brasil
+55 41 99239019
17 years, 2 months