Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-18 Thread malkhafaji
Thanks for the post Thomas. Actually, I wanted to load and unload KBs WHILE I am running the rules. That was not a problem at all, and it is not a problem with many other KBs. I was inspired by your post (so thank you very much) and started looking to maybe externalizing the removal from the rul

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-18 Thread Swindells, Thomas
n...@lists.jboss.org] On Behalf Of malkhafaji > Sent: 17 May 2010 20:35 > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] removeKnowledgePackage Call Hangs!! > > > Any help is appreciated. I am stuck on this. I stripped everything down to > two simple drls, and one o

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-17 Thread malkhafaji
Any help is appreciated. I am stuck on this. I stripped everything down to two simple drls, and one of them loads the other as a new KP, and then tries to unload it. Any ideas why the removeKnowledgePackage could possibly throw a NullPointerException in M1?? This is really hurting us as we are go

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-14 Thread malkhafaji
OK. So, I did an isolated test, and only tested two KP including this bad one. Both packages have their complete set of rules. But now, the other package is able to remove this faulty one. So, it is when I had my complete set of KPs (about 10 of them) all active, and then attempted to remove this

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-13 Thread malkhafaji
Again, there is probably no deadlock because if you look at the bold part of the stack trace I posted in the first post (and again below), it seems like it is throwing a NullPointerException and it is somehow killing the thread without returning back to my application (from Drools). Here are my fi

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-13 Thread malkhafaji
Thanks Greg. I just did what you suggested, and although I was able to regenerate the exact same scenario, I clicked on Detect Deadlock from JConsole and it said: No deadlock detected. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/removeKnowledgePackage-Cal

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-13 Thread Greg Barton
13/10, malkhafaji wrote: > From: malkhafaji > Subject: Re: [rules-users] removeKnowledgePackage Call Hangs!! > To: rules-users@lists.jboss.org > Date: Thursday, May 13, 2010, 3:15 PM > > I found out one more thing, this call above consistently > happens with that > rule a

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-13 Thread malkhafaji
I found out one more thing, this call above consistently happens with that rule and the package it is unloading. I checked another rule that unloads another package and it works consistently fine. What could be the problem? I am assuming that if there are threads launched by Drools to execute rul

[rules-users] removeKnowledgePackage Call Hangs!!

2010-05-13 Thread malkhafaji
I am trying to unload a KnowledgePackage that is already loaded in my KnowledgeBase. The call: this.knowledgeBase.removeKnowledgePackage(knowledgePackage.getName()); hangs (never returns). I had a similar problem with adding a KnowledgePackage to a KnowledgeBase and someone on here suggested tha