<div>Hi,</div>
<div> </div>
<div>I am upgrading to Drools 4.0.4 and I am getting this exception when executing this rule:</div>
<div> </div>
<div>rule "insert iterator"<br>when <br> somecondition<br>then<br> insert(Arrays.asList(some array).iterator());<br>end</div>
<div> </div>
<div>Here is the exception. Is this a bug? Disabling shadow copy is not really an option for this application.</div>
<div><font color="#ff0000" size="2">
<p align="left">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</p>
<p align="left">at java.lang.ClassLoader.defineClass1(</p></font><u><font color="#000080" size="2">Native Method</font></u><font color="#ff0000" size="2">)
<p align="left">at java.lang.ClassLoader.defineClass(Unknown Source)</p>
<p align="left">at org.drools.rule.MapBackedClassLoader.fastFindClass(</p></font><u><font color="#000080" size="2">MapBackedClassLoader.java:60</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.rule.MapBackedClassLoader.loadClass(</p></font><u><font color="#000080" size="2">MapBackedClassLoader.java:79</font></u><font color="#ff0000" size="2">)
<p align="left">at java.lang.ClassLoader.loadClass(Unknown Source)</p>
<p align="left">at org.drools.reteoo.Rete$ClassObjectTypeConf.loadOrGenerateProxy(</p></font><u><font color="#000080" size="2">Rete.java:547</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.reteoo.Rete$ClassObjectTypeConf.defineShadowProxyData(</p></font><u><font color="#000080" size="2">Rete.java:494</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.reteoo.Rete$ClassObjectTypeConf.<init>(</p></font><u><font color="#000080" size="2">Rete.java:461</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.reteoo.Rete.assertObject(</p></font><u><font color="#000080" size="2">Rete.java:152</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.reteoo.ReteooRuleBase.assertObject(</p></font><u><font color="#000080" size="2">ReteooRuleBase.java:192</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.reteoo.ReteooWorkingMemory.doInsert(</p></font><u><font color="#000080" size="2">ReteooWorkingMemory.java:71</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.common.AbstractWorkingMemory.insert(</p></font><u><font color="#000080" size="2">AbstractWorkingMemory.java:909</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.common.AbstractWorkingMemory.insert(</p></font><u><font color="#000080" size="2">AbstractWorkingMemory.java:881</font></u><font color="#ff0000" size="2">)
<p align="left">at org.drools.base.DefaultKnowledgeHelper.insert(</p></font><u><font color="#000080" size="2">DefaultKnowledgeHelper.java:67</font></u><font color="#ff0000" size="2">)
<p>at org.drools.base.DefaultKnowledgeHelper.insert(</p></font><u><font color="#000080" size="2">DefaultKnowledgeHelper.java:61</font></u><font color="#ff0000" size="2">)</font>
<p><font color="#ff0000" size="2"></font> </p>
<p><font color="#ff0000" size="2">Thanks,</font></p>
<p><font color="#ff0000" size="2"></font> </p>
<p><font color="#ff0000" size="2">Narendra Valada</font></p></div>