Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4671

"mismatched character '<EOF>' expecting '\n'" due to comment in script task

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • jBPM 6.2.0.Final
    • Runtime Engine
    • Hide

      1) Construct a process containing a script task.
      2) Set the script task's language to "Java".
      3) Set the script to, e.g.

      System.out.println("Hello world");
      // Comment

      Do not terminate the last line with a newline. In the XML, the last character of the <script> text should be the "t" in "Comment".

      4) Run the process.
      5) Observe the error message printed to stderr.

      Show
      1) Construct a process containing a script task. 2) Set the script task's language to "Java". 3) Set the script to, e.g. System.out.println("Hello world"); // Comment Do not terminate the last line with a newline. In the XML, the last character of the <script> text should be the "t" in "Comment". 4) Run the process. 5) Observe the error message printed to stderr.

    Description

      If the (java) code block of a script task ends in a // comment, and the comment isn't terminated with a newline, jbpm will emit an error like "line 2:11 mismatched character '<EOF>' expecting '\n'" to stderr while building the process.

      I haven't tested with languages other than java or with other types of nodes that can contain code blocks.

      Attachments

        Issue Links

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              kjherron_jira Kenneth Herron (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: