On 5/2/06, [EMAIL PROTECTED]
I am trying to generate a sql script to modify an existing database
schema. Unfortunately I run into problems. Exporting the existing
schema seems to be fine. However when I try to use the export
to generate the sql script I get the following error.
$ ant -f xpol-alter.xml (a slightly modified build-sample.xml)
Buildfile: xpol-alter.xml
writeSchemaSqlToFile:
BUILD FAILED
K:\DevTools\ddlutils\xpol-alter.xml:74: Could not read schema file K:\DevTools\d
dlutils\xpol2004a-schoon.xml: java.io.UTFDataFormatException: Invalid byte 1 of
1-byte UTF-8 sequence.
The error says that the encoding is specified as UTF-8 (in the XML
header) but there is an invalid UTF-8 sequence in the file. Is the XML
generated by DdlUtils or is it manually created or modified ?
You could use an encoding-aware XML-capable editor (e.g. Eclipse WTP,
or XMLSpy or something similar) to check the file.
Tom