Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4629

StringIndexOutOfBoundsException if we have multiple rules in different package.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 6.4.1
    • BRE
    • BPMS 6.4.1

    • Hide

      If we move both rule files into one drl file or into same package it works fine.

      Show
      If we move both rule files into one drl file or into same package it works fine.
      • Import attached project into IDE and try to execute rules through DroolsTest class.

      If we have multiple rules(drl files) those belong to different packages, then it fails with below exception when we try to build project or kbase.
      ~~~
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1911)
      at org.drools.core.rule.constraint.MvelConstraint.getLeftInExpression (MvelConstraint.java:570)
      ~~~
      Exception with complete stacktrace attached.

        1. Exception
          3 kB
          Abhijit Humbe
        2. Sample.tar.gz
          4 kB
          Abhijit Humbe

              etirelli@redhat.com Edson Tirelli
              rhn-support-abhumbe Abhijit Humbe
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: