Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.7.1
-
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".