Hi,
I am upgrading to Drools 4.0.4 and I am getting this exception when
executing this rule:
rule "insert iterator"
when
somecondition
then
insert(Arrays.asList(some array).iterator());
end
Here is the exception. Is this a bug? Disabling shadow copy is not really an
option for this application.
Exception in thread "pool-1-thread-1" java.lang.IllegalAccessError: class
org.drools.shadow.java.util.AbstractList$ItrShadowProxy cannot access its
superclass java.util.AbstractList$Itr
at java.lang.ClassLoader.defineClass1(*Native Method*)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.drools.rule.MapBackedClassLoader.fastFindClass(*
MapBackedClassLoader.java:60*)
at org.drools.rule.MapBackedClassLoader.loadClass(*MapBackedClassLoader.java
:79*)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.drools.reteoo.Rete$ClassObjectTypeConf.loadOrGenerateProxy(*Rete.java
:547*)
at org.drools.reteoo.Rete$ClassObjectTypeConf.defineShadowProxyData(*
Rete.java:494*)
at org.drools.reteoo.Rete$ClassObjectTypeConf.<init>(*Rete.java:461*)
at org.drools.reteoo.Rete.assertObject(*Rete.java:152*)
at org.drools.reteoo.ReteooRuleBase.assertObject(*ReteooRuleBase.java:192*)
at org.drools.reteoo.ReteooWorkingMemory.doInsert(*ReteooWorkingMemory.java
:71*)
at org.drools.common.AbstractWorkingMemory.insert(*
AbstractWorkingMemory.java:909*)
at org.drools.common.AbstractWorkingMemory.insert(*
AbstractWorkingMemory.java:881*)
at org.drools.base.DefaultKnowledgeHelper.insert(*
DefaultKnowledgeHelper.java:67*)
at org.drools.base.DefaultKnowledgeHelper.insert(*
DefaultKnowledgeHelper.java:61*)
Thanks,
Narendra Valada