Getting XSD Unmarshal Error: Error: com.stc.antlr.TokenStreamException: Line 1.16: java.lang.RuntimeException: undefined prefix: (Doc ID 1029090.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Sun e*Gate - Version 4.1.2 and later
Information in this document applies to any platform.
Sun SeeBeyond e*Gate - Version: 4.5.2 and later.
Checked for relevance on 22-March-2011
***Checked for relevance on 21-June-2013***

Symptoms

Received the following error when trying to parse an XML message into an ETD:

Error: com.stc.antlr.TokenStreamException: Line 1.16: java.lang.RuntimeException: undefined prefix:

For example, in the error below the problem is with the namespace prefix, "ns". This is seen in the error message below:

Error: com.stc.antlr.TokenStreamException: Line 1.16: java.lang.RuntimeException: undefined prefix: ns in com.sbyn.kxml.PrefixMap@18a455 at StartTag <nrsMessage> line: 1 attr: null @1:16

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms