【发布时间】:2015-05-07 19:40:09
【问题描述】:
我的 ant xmlbean 任务在 HotSpot 1.8 下运行良好,但在 IBM J9 下失败,异常 IO Error java.nio.charset.UnmappableCharacterException: Input length = 1
我该如何解决这个问题?
这是我的蚂蚁任务:
<target name="gen">
<taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean" classpathref="cpth" />
<xmlbean destfile="./ttt.jar"
classpathref="cpth">
<fileset dir="C:\projects\whatever" includes="1.xsd 2.xsd conf.xsdconfig"/>
</xmlbean>
</target>
XSD 文件包含德语变音符号(ä、ü 等字母)。我尝试将文件保存为 UTF-8 和 iso-8859-1,但结果是一样的。
【问题讨论】:
标签: java ant jvm-hotspot j9