JDK-4774761 : Relative Path not found: javax.xml.transform.TransformerException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_98
  • CPU: x86
  • Submitted: 2002-11-06
  • Updated: 2002-11-07
  • Resolved: 2002-11-07
Related Reports
Duplicate :  
Description

Name: gm110360			Date: 11/06/2002


FULL PRODUCT VERSION :
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)


FULL OPERATING SYSTEM VERSION :
Windows 98 [Version 4.10.2222]



A DESCRIPTION OF THE PROBLEM :
When I try to transform a XML file with xalan (version 2.2D11 or 2.4.1), it will not accept the URL of my DTD
document if I use '//server/path/file.dtd' and will terminate with following error message:

(Location of error unknown)XSLT-Fehler (javax.xml.transform.TransformerException):
sun.net.ftp.FtpLoginException: Not logged in

It worked with java 1.3.1. In java 1.4.1 it only works with '////server/path/file.dtd' which is not a solution, because
I want to transform the XML file also with other applications.
Same problem in fop, where the paths of sources are not solved correctly.

This bug seems connected with the bugs 4671171 and 4671216, which are in fixed status.

REGRESSION.  Last worked in version 1.3.1

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.  Create or get a valid XML file my.xml with a declaration for a external DTD on a server in your network, like

  <?xml version="1.0" encoding="iso-8859-1" ?>
     <!DOCTYPE mydtd SYSTEM "//server/dir1/dir2/mydtd.dtd">
  ...
  
2. Create or get an appropriate stylesheet for a XSL transformation my.xsl.

3. Start the XSLT transformation with

  java org.apache.xalan.xslt.Process  -IN my.xml -XSL my.xsl -OUT myfile



EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected: output of transformed file myfile

Actual Result: program termination with error message

ERROR MESSAGES/STACK TRACES THAT OCCUR :
(Location of error unknown)XSLT-Fehler (javax.xml.transform.TransformerException): sun.net.ftp.FtpLoginException: Not logged in

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER WORKAROUND :
Use '////server/path/file'  in relative filepaths
(Review ID: 166732) 
======================================================================

Comments
EVALUATION UNC handling was fixed in mantis - see 4671171. ###@###.### 2002-11-06
06-11-2002