Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-2047

gpd.xml is written in platform encoding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 6.0.0.Alpha1-SOA
    • 4.1.1.GA
    • jbpm
    • None
    • Workaround Exists
    • Hide

      Convert gpd.xml to UTF-8 manually.

      Show
      Convert gpd.xml to UTF-8 manually.

      Platform JIRA for GPD-184 and GPD-98

      Here are the reproduce steps but basically the same as those GPD Jiras.

      1. Window->Preference, General->Workspace, change the 'Text file encoding' to "Other: UTF-8". (Default is MS932 in Japanese Windows)
      2. Create a jBPM3 project. (with a sample process)
      3. Set 'スタート' the name of a start-state with GPD editor.
      4. Look at .simple.gpd.xml (you may need to edit Package Explorer Filter for .* resources to find the file in JBDS)

      The file is written in Shift_JIS(MS932) even though it declares encoding="UTF-8".
      It will cause a problem when you use jbpm-console to see the process image.

      • In jbpm-console : An exception of type "org.jbpm.util.XmlException" was thrown. The message is: failed to parse xml
      • In server.log : [Fatal Error] :4:15: Invalid byte 1 of 1-byte UTF-8 sequence.

      GPD editor doesn't lookup the workspace settings when it generates gpd.xml.
      Hard-coded "UTF-8" may be fine (the proposed patch in GPD-184)

              kverlaen@redhat.com Kris Verlaenen
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: