Umlauts in WSDL cause org.xml.sax.SAXParseException errors
search cancel

Umlauts in WSDL cause org.xml.sax.SAXParseException errors

book

Article ID: 88092

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 39; Invalid byte 2 of 3-byte UTF-8 sequence

German Umlauts in <wsdl:documentation> cause the Adapter compilation to fail with an error message similar to the one above.

Entire Error Message:
 
Caused by: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 39; Invalid byte 2 of 3-byte UTF-8 sequence.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder$parse.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at GuiEventClass.getWebserviceEndpoint(GuiEventClass.groovy:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:362)

This problem occurs on Unix/Linux java distributions where a special parameter for javac is required. In this case it's necessary to export an environment variable so that this settings will be automatically active:

export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8

Environment

OS Version: N/A

Cause

Cause type:
Configuration
Root Cause: Occurs only for Unix/Linux java distributions where a special parameter for javac is required.

Resolution

This occurs on Unix/Linux java distributions where a special parameter for javac is required. In this case, it's necessary to export the following environment variable so that this settings will be automatically active.

export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8


Fix Status: No Fix

Fix Version(s):
N/A

Additional Information

Workaround :
N/A