Re: [rules-users] ArrayIndexOutOfBounds when calling addKnowledgePackage?

2010-05-24 Thread malkhafaji
Yes. Actually that is exactly what I did, but I wanted to test something out in the process and I decided to try it like that. But in any case, I am using your line instead. I wrote the disclaimer in the email I sent with the code :) On Mon, May 24, 2010 at 12:59 AM, Wolfgang Laun-2 [via Drools

Re: [rules-users] ArrayIndexOutOfBounds when calling addKnowledgePackage?

2010-05-23 Thread malkhafaji
And for the same isolated test, but in a different run, I also get this (exactly at the same line): P.S. I was just trying to create 7 KnowledgeBase instances. I am also running with a huge perm memory setting: -XX:PermSize=128m -XX:MaxPermSize=672 Exception in thread main

Re: [rules-users] ArrayIndexOutOfBounds when calling addKnowledgePackage?

2010-05-23 Thread malkhafaji
Additional information. When I removed the threads (everything executing sequentially), I got rid of the first problem above which is the index out of bounds exception. However, I am consistently getting the perm gen out of memory exception although I have plenty of it. So, I decided to create

Re: [rules-users] ArrayIndexOutOfBounds when calling addKnowledgePackage?

2010-05-23 Thread malkhafaji
For those that are interested. I solved the problem. Basically I got over the following inherent problems in Drools (not that they are bugs, but they did not suit my application requirements): 1. A new class loader for each KnowledgeBase. This caused about 20-30K classes loaded per KnowledgeBase

Re: [rules-users] ArrayIndexOutOfBounds when calling addKnowledgePackage?

2010-05-23 Thread Wolfgang Laun
On 23 May 2010 15:31, malkhafaji moe.alkhaf...@medcpu.com wrote: Hello, I am trying to create a bunch of KnowledgeBase objects, this is what I am doing: 1. create one List of KnowledgePackage objects (pre-compile them). 2. Create X number of KnowledgeBases, and for each knowledge base do