[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

  • To: xml-dev@l...
  • Subject: java.net.UnknownHostException when xml file is transformed on separate drives on windows.
  • From: Nishi Prafull <nishiprafull@g...>
  • 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@g...>

java.net.unknownhostexception
Hi:

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) 
at 
@ sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:175) 
at @ sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java
:257)
@ 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.
Thanks.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.