One Star Myk
One Star

tFileInputXML SAXReader exception

windows, version 3.0.2, java project
Hi,
when I am trying to read xml input it says following exception:
Starting job ImportDiscounts at 22:21 27/01/2009.
Exception in component tFileInputXML_1
org.dom4j.DocumentException: unknown protocol: c Nested exception: unknown protocol: c
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:321)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.tFileInputXML_1Process(ImportDiscounts.java:480)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.runJobInTOS(ImportDiscounts.java:716)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.main(ImportDiscounts.java:628)
Nested exception:
java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:321)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.tFileInputXML_1Process(ImportDiscounts.java:480)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.runJobInTOS(ImportDiscounts.java:716)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.main(ImportDiscounts.java:628)
Nested exception: java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:321)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.tFileInputXML_1Process(ImportDiscounts.java:480)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.runJobInTOS(ImportDiscounts.java:716)
at discoutplusput.importdiscounts_0_1.ImportDiscounts.main(ImportDiscounts.java:628)
Job ImportDiscounts ended at 22:21 27/01/2009.
I suppose it is a bug, but as I am newbie with Talend it may be caused my mistake Smiley Happy.
Any advice?
2 REPLIES
One Star

Re: tFileInputXML SAXReader exception

Hi,
I found the following SUN bugdatabase.
Could this be your problem? What is your filename and your java version?
Bye
Volker
One Star Myk
One Star

Re: tFileInputXML SAXReader exception

Thanks Volker.
It seems that the problem is caused by space character in directory path. (java 1.6.0)
When I changed the path, it started to work. Btw, the space character in the filename or directory name causes also problems in xml source definition wizard. The preview function did not work when a space character was in directory name, after moving the file into another directory it works fine.