[jdom-interest] SAXBuilder on OS/390
Kevin Baynes
kbaynes at seagullsw.com
Fri Sep 21 08:38:50 PDT 2001
I'm having trouble reading in an XML file into SAXBuilder from a Servlet in
WebSphere on OS/390. It works fine on WAS on NT and Tomcat on NT.
I'v uploaded the file via FTP using ASCII mode, which I think should
translate it into EBCDIC on the other side. When I download the XML file and
look at it, it looks fine.
I built some debug code into the servlet, where I get the XML file and write
it into the debug log prior to giving it to SAXBuilder. The log info is
below.
Any ideas? Do I need to modify the character encoding prior to giving it to
JDOM?
--- LOG FILE
Init Date = Thu Sep 20 06:14:00 PDT 2001
getDocument(): got the file
getDocument(): trying to build doc
getDocument(): building from clear data, code 001
getDocument(): document =
'Loõ»¼@¾Õ˽ÂÌÉ~
¤KÐ
@ÕÉÙÌ¿ÂÉÁ~
"Æ'`>
onLZ``@Z(tm)ÇÆSz@¼ÌÁÂɽ@fSfÆâ@
¼ÌÁÂÉ
½K¿oe¿
@``nL¼ÌÁÂɽn@@LϽÕËn@@@@LϽÕËɳ»ÕnP¼oe^ÉÌoe@ÊË̾¿տPÁoe^LaϽÕËɳ»
Õn@@@@L¼ÌÁÂÉ¿nÌÝÉÕËLa¼ÌÁÂÉ¿n@@@@LÊÝÌË¿nÌÝÉÕËLaÊÝÌË¿n@@@@L³¿»ÂɼվռnÌÝÉ
ÕËLa³¿»Âɼվռn@@LaϽÕËn@@LϽÕËn@@@@LϽÕËɳ»ÕnP¼oe^ÉÌoe@ÊË̾¿տPÁoe^LaϽ
ÕËɳ»Õn@@@@L¼ÌÁÂÉ¿n³¿»ÂÉLa¼ÌÁÂÉ¿n@@@@LÊÝÌË¿n³¿»ÂÉLaÊÝÌË¿n@@@@L³¿»ÂɼվÕ
¼n³¿»ÂÉLa³¿»Âɼվռn@@LaϽÕËn@@LϽÕËn@@@@LϽÕËɳ»ÕnP¼oe^ÉÌoe@ÊË̾¿տPÁoe
^LaϽÕËɳ»Õn@@@@L¼ÌÁÂÉ¿n¿Õ»ÌLa¼ÌÁÂÉ¿n@@@@LÊÝÌË¿n¿Õ»ÌLaÊÝÌË¿n@@@@L³¿»Âɼ
Õ¾Õ¼nϽÕËLa³¿»Âɼվռn@@LaϽÕËn@@LϽÕËn@@@@LϽÕËɳ»ÕnP¼oe^ÉÌoe@ÊË̾¿տPÁ
oe^LaϽÕËɳ»Õn@@@@L¼ÌÁÂÉ¿nϽÕËmö"¢>La¼ÌÁÂÉ¿n@@@@LÊÝÌË¿@an@@@@L³¿»ÂɼվÕ
¼nϽÕËLa³¿»Âɼվռn@@LaϽÕËnLa¼ÌÁÂɽn'
getDocument(): Exception: org.jdom.JDOMException: Error on line 1 of
document
file:/usr/lpp/WebSphere/AppServer/hosts/default_host/swm/data/logins.xml:
The root element is required in a well-formed document.
error in login
--------------------
Kevin Baynes
Software Engineer
kbaynes at seagullsw.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2748 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010921/59b1fcd0/winmail.bin
More information about the jdom-interest
mailing list