Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5748

axis2-metadata: Compilation failure: unmappable character for encoding UTF-8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.7.1
    • 1.8.0
    • None
    • None
    • Windows 8.1 x86-64 German, jdk1.7.0_80 x86-64

    Description

      I tried to build the current trunk and got the following errors:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:testCompile (default-testCompile) on project axis2-metadata: Compilation failure: Compilation failure:
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\package-info.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\Invoke.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\Invoke.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\FinOpResponse.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\FinOpResponse.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\OneWayVoid.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\OneWayVoid.java:[18,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\ReturnType.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\ReturnType.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\TwoWay.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\TwoWay.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\FinancialOperation.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\FinancialOperation.java:[18,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\OneWay.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\OneWay.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\FinOp.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\FinOp.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\Withdraw.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\Withdraw.java:[18,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\TwoWayHolder.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\TwoWayHolder.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\InvokeReturnType.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\InvokeReturnType.java:[19,19] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\ObjectFactory.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\Deposit.java:[4,3] error: unmappable character for encoding UTF-8
      [ERROR]
      [ERROR] \Users\tschoening\Documents\Eclipse\Java\Libs Java 3rd\Apache\Axis2\1.6.2-svn\modules\metadata\target\schema\src\org\test\proxy\doclitwrapped\Deposit.java:[18,19] error: unmappable character for encoding UTF-8
      

      Looking at package-info.java I can see that the generated file is language and OS dependent, in my case it contains German comments and is encoded in windows-1252 instead of UTF-8:

      //
      // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
      // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
      // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
      // Generiert: 2016.03.14 um 11:00:38 AM CET 
      //
      
      @javax.xml.bind.annotation.XmlSchema(namespace = "http://doclitwrapped.proxy.test.org")
      package org.test.proxy.doclitwrapped;
      

      Not sure what the result of the file is used for, but either don't assume its always encoded in UTF-8 or it looks like it helps to not generate any file header comments using the option "-no-header".

      http://grepcode.com/file/repo1.maven.org/maven2/com.sun.xml.bind/jaxb-xjc/2.1.13/com/sun/tools/xjc/Options.java#526

      Attachments

        1. AXIS2-5748 all.patch
          42 kB
          Thorsten Schöning
        2. Invoke.java
          2 kB
          Thorsten Schöning
        3. package-info.java
          0.5 kB
          Thorsten Schöning
        4. pom.xml.patch
          0.9 kB
          Thorsten Schöning

        Activity

          People

            veithen Andreas Veithen
            tschoening Thorsten Schöning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: