db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Armstrong (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DDLUTILS-186) WriteDataToDatabaseCommand throws MalFormedURL if used with commons-digester 1.8
Date Mon, 16 Jun 2008 06:03:45 GMT

    [ https://issues.apache.org/jira/browse/DDLUTILS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605197#action_12605197
] 

John Armstrong commented on DDLUTILS-186:
-----------------------------------------

As a comment for other Google hunters:

Explicit userland fix: Just add file:// to the front of your writeDataToDataBase file command

previous: <writeDataToDatabase datafile="data.xml">

new: <writeDataToDatabase datafile="file://data.xml"/>

In this case the path stays relative which is usually what you want but you can always do
a full filepath in there, its just a URI. Probably obvious to all readers but hopefully this
makes it 100% clear for other folks like me.

Thanks for the Jira ticket, saved me a ton of time.



> WriteDataToDatabaseCommand  throws MalFormedURL if used with commons-digester 1.8
> ---------------------------------------------------------------------------------
>
>                 Key: DDLUTILS-186
>                 URL: https://issues.apache.org/jira/browse/DDLUTILS-186
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core (No specific database)
>    Affects Versions: 1.0
>            Reporter: Ricky Hazelwood
>            Assignee: Thomas Dudziak
>
> 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. Since the file is passed as string without 'file:' prefix, new URL(filename)
throws a MalFormedURL  exception (missing protocol)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message