Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-378

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 6.x.x
    • jBPM Core
    • Workaround Exists
      • Add a newline at the end of the script
    • Hide
      • Create a process
      • Create a Script Task
      • Write script. Don't have a newline at the end of the script
        System.out.println("hi");
        //System.out.println("bye");
        
      • Build
      Show
      Create a process Create a Script Task Write script. Don't have a newline at the end of the script System.out.println("hi"); //System.out.println("bye"); Build

      If you have a Script Task with a script which last line is a comment and without a newline at the end,

      for example)

          <bpmn2:scriptTask id="_0A8576E5-B027-4723-BE2E-5738A09DC887" drools:selectable="true" color:background-color="#fafad2" color:border-color="#000000" color:color="#000000" name="S1" scriptFormat="http://www.java.com/java">
            ...
            <bpmn2:script><![CDATA[System.out.println("hi");                                                                                                                                                                                                                          
      //System.out.println("bye");]]></bpmn2:script>
          </bpmn2:scriptTask>
      

      you will hit the following error during build.

      17:02:02,507 ERROR [stderr] (EJB default - 6) line 2:29 mismatched character '<EOF>' expecting '\n'
      

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: