Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-738

Erro to read a drl files without a recurse folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Trivial Trivial
    • 7.4.1.Final
    • 6.5.0.Final
    • optaplanner-core
    • None
    • Hide

      Just change on solver xml file as show above:

      <scoreDirectorFactory>
      <scoreDefinitionType>SIMPLE</scoreDefinitionType>
      <scoreDrl>ScoreRules.drl</scoreDrl>
      </scoreDirectorFactory>

      Show
      Just change on solver xml file as show above: <scoreDirectorFactory> <scoreDefinitionType>SIMPLE</scoreDefinitionType> <scoreDrl>ScoreRules.drl</scoreDrl> </scoreDirectorFactory>
    • NEW
    • NEW

      When i'm try read a drl file from a xml, i'm getting a path error coz i'm don't have a recurse folder on my project. Even i'm use absolute path for the file.

      Load from absolute path.

       (java.lang.IllegalArgumentException) java.lang.IllegalArgumentException: The scoreDrl (C:\Users\pedro\Documents\NetBeansProjects\Opmz\src\main\java\br\com\quadrisistem\opmz\solver\OpmizerRules.drl) does not exist as a classpath resource in the classLoader (sun.misc.Launcher$AppClassLoader@18b4aac2).
      

      Load as example with "\"

      (java.lang.IllegalArgumentException) java.lang.IllegalArgumentException: The scoreDrl (br\com\quadrisistem\opmz\solver\ScoreRules.drl) does not exist as a classpath resource in the classLoader (sun.misc.Launcher$AppClassLoader@18b4aac2).
      

      Load as example with "/"

       (java.lang.IllegalArgumentException) java.lang.IllegalArgumentException: The scoreDrl (br/com/quadrisistem/opmz/solver/ScoreRules.drl) does not exist as a classpath resource in the classLoader (sun.misc.Launcher$AppClassLoader@18b4aac2).
      

      Only file.

      (java.lang.IllegalArgumentException) java.lang.IllegalArgumentException: The scoreDrl (ScoreRules.drl) does not exist as a classpath resource in the classLoader (sun.misc.Launcher$AppClassLoader@18b4aac2).
      

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              pedroopovoleri Pedro Povoleri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: