You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by Brian Devaney <bd...@docfinity.com> on 2007/07/30 22:46:10 UTC

MalformedURLException

I am running into a problem with DdlUtils running in Eclipse.  My
application works correctly in the IDE passing in the filename
'masterscript.xml' to DatabaseIO.read(String filename).  When I try to
run the app as an executable jar or run an ant script with some tests
built in, a MalformedURLException is thrown with the following stack
trace:

 

org.apache.ddlutils.DdlUtilsException: java.net.MalformedURLException

            at org.apache.ddlutils.io.DatabaseIO.read(Unknown Source)

            at
com.docfinity.maintenance.database.DdlUtilWrapper.setDatabaseModel(Unkno
wn Source)

            at
com.docfinity.maintenance.mvc.MaintenanceModel.createAlterScript(Unknown
Source)

            at
com.docfinity.maintenance.mvc.MaintenanceModel.run(Unknown Source)

            at java.lang.Thread.run(Unknown Source)

Caused by: java.net.MalformedURLException

            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.apache.commons.digester.Digester.parse(Digester.java:1647)

            at
org.apache.commons.betwixt.XMLIntrospector.loadMultiMapping(XMLIntrospec
tor.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(Unknown
Source)

            ... 5 more

 

According to GoogleGroups, this might be because the filename was not a
URL.  Converting it to: file///c|/dir/masterscript.xml did nothing to
fix the problem.  As far as I can tell, the classpath is the same for
the ant script and the IDE.  Does anyone have any ideas what might be
going wrong?

 

Brian Devaney
DocFinity Solution Developer
DocFinity(r) by Optical Image Technology, Inc.
100 Oakwood Avenue
Suite 700
State College, PA 16803
ph: 814.238.0038
fax: 814.238.0011
mailto:bdevaney@docfinity.com
www.docfinity.com <http://www.docfinity.com/> 


DISCLAIMER: This email may contain proprietary information, some or all
of which may be legally privileged. It is for the intended recipient
only. If an addressing or transmission error has misdirected this email,
please notify the author by replying to this email. If you are not the
intended recipient, you may not use, disclose, distribute, copy, print,
or rely on this email.