Are you using commons digester 1.8? The parse method on the Digester class in commons-digester-1.8 was changed to use URL rather than FileInputStream to get InputSource. WriteDataToDatabaseCommand takes the input file and passes file.getAbsolutePath() to DatabaseDataIO which in turn passes that string to Digester parse method. The changes in commons-digester 1.8 are not compatible with the way DDLUtils works. Cheers, Ricky
Wessam Abdrabo wrote: > > Hi, > I'm still getting the MalFormedURL exception by DatabaseIO.read(filename). > My guess is that the problem is not with the xml filename itself, but > is rather with the database.dtd and mapping.xml files. For some reason, > inside a netbeans module, referencing this resource is problematic. I'm a > bit lost here. Any bit of useful info can help. Here's the stack trace: > > org.apache.ddlutils.DdlUtilsException: java.net.MalformedURLException > at org.apache.ddlutils.io.DatabaseIO.read(DatabaseIO.java:194) > > Caused by: java.net.MalformedURLException > at java.net.URL.<init>(URL.java:601) > at java.net.URL.<init>(URL.java:464) > at java.net.URL.<init>(URL.java:413) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity( > XMLEntityManager.java:650) > at > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion > (XMLVersionDetector.java:186) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > XML11Configuration.java:771) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > XML11Configuration.java:737) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse( > XMLParser.java:107) > at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse( > AbstractSAXParser.java:1205) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse( > SAXParserImpl.java:522) > at org.apache.commons.digester.Digester.parse(Digester.java:1647) > at org.apache.commons.betwixt.XMLIntrospector.loadMultiMapping( > XMLIntrospector.java:665) > at > org.apache.commons.betwixt.XMLIntrospector.register(XMLIntrospector.java > :635) > at org.apache.commons.betwixt.io.BeanReader.registerMultiMapping( > BeanReader.java:216) > at org.apache.ddlutils.io.DatabaseIO.getReader(DatabaseIO.java:124) > at org.apache.ddlutils.io.DatabaseIO.read(DatabaseIO.java:190) > > > Thanks in advance, > > Wessam > > -- View this message in context: http://www.nabble.com/Need-help-tf4491236.html#a13906567 Sent from the Apache DdlUtils - Dev mailing list archive at Nabble.com.