Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1086

InitialFact should not be shadowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.GA
    • Fix Version/s: 4.0.1
    • Component/s: None
    • Labels:
      None

      Description

      If the app uses its own classLoader, Exception IllegalAccessError will be thrown when inserting fact. Here is the stack trace:

      2007 Aug 15, 09:08:13:193 Exception IllegalAccessError
      java.lang.IllegalAccessError: class org.drools.reteoo.InitialFactImplShadowProxy cannot access its superclass org.drools.reteoo.Init
      ialFactImpl
      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$ObjectTypeConf.loadOrGenerateProxy(Rete.java:379)
      at org.drools.reteoo.Rete$ObjectTypeConf.defineShadowProxyData(Rete.java:344)
      at org.drools.reteoo.Rete$ObjectTypeConf .<init>(Rete.java:320)
      at org.drools.reteoo.Rete.assertObject(Rete.java:145)
      at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:190)
      at org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(ReteooWorkingMemory.java:163)
      at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1241)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:858)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:822)
      at org.drools.common.AbstractWorkingMemory.insert (AbstractWorkingMemory.java:623)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michaelneale Michael Neale
                Reporter:
                anhtvuong Anh Vuong
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: