[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug xml/25903] New: DocumentBuilder.parse() is unable to read from loca
From: |
stephan at apache dot org |
Subject: |
[Bug xml/25903] New: DocumentBuilder.parse() is unable to read from local specified files |
Date: |
21 Jan 2006 22:02:59 -0000 |
Hi,
I have a problem with following code:
String uri = "Zeitansage.wsdl";
InputSource is = new InputSource(uri);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(is);
I found a similar snippet in WSDL2Java of the Apache Axis project.
I got following results if I compare IBM's VM and Cacao(uses CP 0.19 ATM):
address@hidden:~/projects/test-axis/src$ /usr/lib/j2sdk1.5-ibm/bin/java -cp .
URLTest
address@hidden:~/projects/test-axis/src$ cacao -cp . URLTest
Exception in thread "main" java.net.MalformedURLException: Absolute URL
required with null context: Zeitansage.wsdl
at java.net.URL.<init> (URL.java:433)
at java.net.URL.<init> (URL.java:324)
at gnu.xml.dom.DomDocumentBuilder.parse (DomDocumentBuilder.java:160)
at URLTest.main (URLTest.java:28)
True is that both VMs throw an exception if I execute new URL(".."). But it
seems that DocumentBuilder.parse() from the IBM VM use a different approach
to create a Reader for the given InputSource.
--
Summary: DocumentBuilder.parse() is unable to read from local
specified files
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: xml
AssignedTo: dog at gnu dot org
ReportedBy: stephan at apache dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25903
- [Bug xml/25903] New: DocumentBuilder.parse() is unable to read from local specified files,
stephan at apache dot org <=