axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning (JIRA) <j...@apache.org>
Subject [jira] [Created] (AXIS2-5748) axis2-metadata: Compilation failure: unmappable character for encoding UTF-8
Date Mon, 14 Mar 2016 10:33:33 GMT
Thorsten Schöning created AXIS2-5748:
----------------------------------------

             Summary: axis2-metadata: Compilation failure: unmappable character for encoding
UTF-8
                 Key: AXIS2-5748
                 URL: https://issues.apache.org/jira/browse/AXIS2-5748
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.8.0
         Environment: Windows 8.1 x86-64 German, jdk1.7.0_80 x86-64
            Reporter: Thorsten Schöning
         Attachments: package-info.java

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

{CODE}
[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
{CODE}

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:

{CODE}
//
// 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;
{CODE}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message