OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   java.net.UnknownHostException when xml file is transformed on separate d

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: java.net.UnknownHostException when xml file is transformed on separate drives on windows.
  • From: Nishi Prafull <nishiprafull@gmail.com>
  • Date: Tue, 19 Apr 2005 11:25:54 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QO041+xSId8ITfh8p1TI1civmX1ZJNhUGEWXJ1KBHBs/O8uSKper3RNTF7fPoK6IY70B5KjAsrY0YtmeOKOgFWjU0Z62rDiwr1p7eZEahKEEIf0pER2kWxiDjZtFIZH0fYTSmjioXgv3B5U8n1vhCHl2RVtFiy//YEGzxcCWEcM=
  • Reply-to: Nishi Prafull <nishiprafull@gmail.com>


I am applying XSLT on a XML formatted file to merge some attributes
and elements from a source xml file into a destination xml file. I am
using DOM Parser for this.

Consider the source XML file say source.xml is on C:\ on a windows
box. The xslt to be applied to source.xml is on D:\ on the same box.
The destination file is on D:\ on the same box. The resultant merge
after the XSLT happens on the destination file on D:\ so after the
xslt is complete, the destination file on D:\ contains the merged
changes from the source and the destination according to the rules
specified in the xslt.

Apparently when i run the parser (as part of some java prog using jdk
1.4.2) to carry out the above operation, I get the following exception
from the parser when its about to read parse the source xml file to
carry out the transform. Note the "c" in the below exception is the
name of the drive.

@ java.net.UnknownHostException: c 
@ at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) 
@ at java.net.Socket.connect(Socket.java:452) 
@ at java.net.Socket.connect(Socket.java:402) 
@ at sun.net.NetworkClient.doConnect(NetworkClient.java:139) 
@ at sun.net.NetworkClient.openServer(NetworkClient.java:118) 
@ at sun.net.ftp.FtpClient.openServer(FtpClient.java:423) 
@ at sun.net.ftp.FtpClient.<init>(FtpClient.java:692) 
@ sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:175) 
at @ sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java
@ at java.net.URL.openStream(URL.java:913) 
at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2292) 
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:266) 
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:238) 

I checked the URL passed at
oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2292) and its
getting returned correctly.

This exception with the parser DOES NOT occur when both the source and
destination xml files are on the same drive.

What could be the cause of this issue?

Please advise.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS