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

BinaryRuleBaseLoader doesn't accept custom ClassLoader

    XMLWordPrintable

    Details

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

      Description

      AddPackage method of class BinaryRuleBaseLoader accepts custom classloader as a parameter, but this isn't propagated to DroolsObjectInputStream in addPackage method call. So custom class loading isn't available when constructing RuleBases from JBRMS packaged files.

      Error is in file org.drools.util.BinaryRuleBaseLoader.java, Core module, line 81. Code ObjectInputStream oin = new DroolsObjectInputStream( in ); should be changed to ObjectInputStream oin = new DroolsObjectInputStream( in, classLoader ).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                vsch Vladimir Schafer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: