Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-3030

inputMessage is garbled at TeiidWSProvider when JDV booting with Shift-jis encoding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 9.0.7
    • Web Services Support
    • None
    • Hide
      • How to use reproducer.zip
        1. import project (reproducer.zip/testproject) into Teiid designer.
        2. deploy newvdb.vdb to JDV server
        3. Start JDV with SHIFT-JIS
        $ sudo localedef -f SHIFT_JIS -i ja_JP ja_JP.SJIS
        $ LANG=ja_JP.SJIS
        $ /JBOSS_HOME/bin/standalone.sh
        4. deploy web service (reproducer.zip/newvdb.war)
        5. invoke client (reproducer.zip/testclient)
        the client will send japanese 2byte charactor. "あああ"
        6. you can see the garbled charactor in server.log.
        INFO [TESTMESSAGE] (Worker0_QueryProcessorQueue0) ##### 縺ゅ≠縺?
        Expected log record is as follows.
        INFO [TESTMESSAGE] (Worker0_QueryProcessorQueue0) ##### あああ
      Show
      How to use reproducer.zip 1. import project (reproducer.zip/testproject) into Teiid designer. 2. deploy newvdb.vdb to JDV server 3. Start JDV with SHIFT-JIS $ sudo localedef -f SHIFT_JIS -i ja_JP ja_JP.SJIS $ LANG=ja_JP.SJIS $ /JBOSS_HOME/bin/standalone.sh 4. deploy web service (reproducer.zip/newvdb.war) 5. invoke client (reproducer.zip/testclient) the client will send japanese 2byte charactor. "あああ" 6. you can see the garbled charactor in server.log. INFO [TESTMESSAGE] (Worker0_QueryProcessorQueue0) ##### 縺ゅ≠縺? Expected log record is as follows. INFO [TESTMESSAGE] (Worker0_QueryProcessorQueue0) ##### あああ
    • Hide

      change the JDV process's charset to UTF-8 (change the LANG environment variable)

      Show
      change the JDV process's charset to UTF-8 (change the LANG environment variable)

    Description

      When logging inputvalue by SYSADMIN.logmsg on Web service (created by teiid designer),
      the log message is garbled if the JDV booting with shift-jis encoding.

      1. Generate War from VDB including webservice on Teiid Designer.
      1-1. create procedure (the procedure logs input parameter by SYSADMIN.logmsg)
      1-2. modeling -> create Web Service
      1-3. create vdb includeing the web service
      1-4. modeling -> Generate SOAP war
      2. Deploy the vdb and war to JDV.
      3. JDV boot with Shift-jis encoding.
      4. call the webservice with testclient, the log will be garbled.

      I attached reproducer.zip.

      • testproject (JBDS project)
      • testclient (webservice client)
      • newvdb.war (generated web service)

      Attachments

        Activity

          People

            rhn-engineering-tejones Edwin Jones
            rhn-support-hdaicho Hiroki Daicho (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: