Discussion:
OpenVMS - Java - XML: Content is not allowed in trailing section
(too old to reply)
Andoni
2005-08-25 10:41:39 UTC
Permalink
Hello all,

I have the latest version of my website which is written in Java working
well on my local (M$) machine. All the testing there went well and then it
goes to VMS testing.

Here we get an error message from the XML parser saying:

SEVERE: Parse Fatal Error at line 56 column 1: Content is not allowed in
trailing section.
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)


This usually means that there is whitespace after the last </xxx> closing
tag of my XML file but there isn't in this case. Even when I edit the file
in VMS and paste in just the content and save it on VMS I get the same
error. I tried doing a dump on the file to see if there were any more bytes
but what I get is just FFFF which I assume is an End Of File marker:

62656422 3D656D61 6E206D61 7261702D 6D6C6165 723C0909 0028003E 2F202273 s"
/>.(...<realm-param name="deb 000080
2F3C0018 003E6D6C 6165722F 3C090009 3E2F2022 31223D65 756C6176 20226775 ug"
value="1" />...</realm>...</ 0000A0
00000000 00000000 FFFF3E67 69666E6F 632D7265 746C6966 79746972 75636573
securityfilter-config>.......... 0000C0


Any help, suggestions, etc. that you may have would be very much
appreciated.

Thanks in advance,

Andoni.
Bob Koehler
2005-08-25 12:55:36 UTC
Permalink
Post by Andoni
SEVERE: Parse Fatal Error at line 56 column 1: Content is not allowed in
trailing section.
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
I don't know if it's related, by my colleagues who do XML on Windows
say the parser is only happy with UNIX format (Stream-LF) files.
Arne Vajhøj
2005-08-25 18:09:57 UTC
Permalink
Post by Bob Koehler
Post by Andoni
SEVERE: Parse Fatal Error at line 56 column 1: Content is not allowed in
trailing section.
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
I don't know if it's related, by my colleagues who do XML on Windows
say the parser is only happy with UNIX format (Stream-LF) files.
Java on Windows do not have a problem with XML files
with CRLF line terminator.

But Java on VMS have a strong "preference" for Stream LF, so
it is definatetly good advice to convert to that.

Arne
d***@snowy.net.au
2005-08-25 13:20:23 UTC
Permalink
If you look towards the end of this link,
it shows you how to get rid of the FFFF
http://www3.sympatico.ca/n.rieck/docs/openvms_text_files.html
Phil
Andoni
2005-08-26 13:34:51 UTC
Permalink
Hi all,

My thanks for your replies.

I have found that it was actually a bug in the old version of the XML Parser
Xerces that Tomcat on VMS uses.

I replaced the files in the <tomcat_home>/common/endorsed with the latest
version of the xerces xml parser and all is now working fine.

Links:
Article on parser error:
http://www.mail-archive.com/xerces-j-***@xml.apache.org/msg05500.html

Bugzilla report:
http://issues.apache.org/bugzilla/show_bug.cgi?id=17381

Tomcat Classloader Docs:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


My thanks again for all your help.

Andoni.

Loading...