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 "Appajee Papolu (JIRA)" <ji...@apache.org> on 2006/01/20 18:40:41 UTC
[jira] Created: (DDLUTILS-63) ddltoDatabase errors due to specific
string values in table rows of data.xml -- ddltoDatabase(to MySQL) using
files produced by databaseToDdl(from MSSQL)
ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
----------------------------------------------------------------------------------------------------------------------------------------------------------
Key: DDLUTILS-63
URL: http://issues.apache.org/jira/browse/DDLUTILS-63
Project: DdlUtils
Type: Bug
Environment: Win 2K
SQL Server
jtds
MySQL 5.0
MySQL Connector/J
Reporter: Appajee Papolu
Assigned to: Thomas Dudziak
- Dumped out a MSSQL database using ddlutils ant task
- Used the resulting files to create a database in MySQL
- Getting errors while importing data that have embedded XML data in their row data, for example, as in:
<whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
- Receiving error as follows:
[ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
[ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
[ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (DDLUTILS-63) ddltoDatabase errors due to
specific string values in table rows of data.xml -- ddltoDatabase(to
MySQL) using files produced by databaseToDdl(from MSSQL)
Posted by "Appajee Papolu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DDLUTILS-63?page=comments#action_12442189 ]
Appajee Papolu commented on DDLUTILS-63:
----------------------------------------
[[ Old comment, sent by email on Mon, 31 Jul 2006 13:33:30 -0700 ]]
Thomas,
Unfortunately I am unable to locate the produced file, but I looked at the
table row's specific column data using DBVisualizer and this is what I
Set-schema: User$%$
Query: '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "%
$GID$;%"
Entry-list:
window-position: 0518 0145 0395 0326
end
<<<Value ends right above line>>>>
As you can see, this column value indeed has embedded Ascii character 1 as a
value (the square like thingy - right after User, before the $ sign). If
fact this character is XML encoded out (as "") in the DDLUtils produced
xml file - however this character does not seem to be valid is in xml char
field. And hence the error while parsing this file upon import attempt.
I am wondering if we can designate another type, so that export would
produce different kind of XML content node for such columns (that could have
non-textual ASCII characters).
regards
Appajee
On 7/18/06, Thomas Dudziak (JIRA) <ji...@apache.org> wrote:
http://issues.apache.org/jira/browse/DDLUTILS-63?page=comments#action_1242203
5]
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
> ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-63
> URL: http://issues.apache.org/jira/browse/DDLUTILS-63
> Project: DdlUtils
> Issue Type: Bug
> Components: Core (No specific database)
> Environment: Win 2K
> SQL Server
> jtds
> MySQL 5.0
> MySQL Connector/J
> Reporter: Appajee Papolu
> Assigned To: Thomas Dudziak
> Fix For: 1.0
>
> Attachments: RowWithAsciiOneChar.txt
>
>
> - Dumped out a MSSQL database using ddlutils ant task
> - Used the resulting files to create a database in MySQL
> - Getting errors while importing data that have embedded XML data in their row data, for example, as in:
> <whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
> - Receiving error as follows:
> [ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
> [ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
> [ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (DDLUTILS-63) ddltoDatabase errors due to specific
string values in table rows of data.xml -- ddltoDatabase(to MySQL) using
files produced by databaseToDdl(from MSSQL)
Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DDLUTILS-63?page=all ]
Thomas Dudziak updated DDLUTILS-63:
-----------------------------------
Component: Core (No specific database)
> ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-63
> URL: http://issues.apache.org/jira/browse/DDLUTILS-63
> Project: DdlUtils
> Type: Bug
> Components: Core (No specific database)
> Environment: Win 2K
> SQL Server
> jtds
> MySQL 5.0
> MySQL Connector/J
> Reporter: Appajee Papolu
> Assignee: Thomas Dudziak
> Fix For: 1.0
>
> - Dumped out a MSSQL database using ddlutils ant task
> - Used the resulting files to create a database in MySQL
> - Getting errors while importing data that have embedded XML data in their row data, for example, as in:
> <whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
> - Receiving error as follows:
> [ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
> [ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
> [ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (DDLUTILS-63) ddltoDatabase errors due to specific
string values in table rows of data.xml -- ddltoDatabase(to MySQL) using
files produced by databaseToDdl(from MSSQL)
Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DDLUTILS-63?page=all ]
Thomas Dudziak updated DDLUTILS-63:
-----------------------------------
Fix Version: 1.0
> ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-63
> URL: http://issues.apache.org/jira/browse/DDLUTILS-63
> Project: DdlUtils
> Type: Bug
> Environment: Win 2K
> SQL Server
> jtds
> MySQL 5.0
> MySQL Connector/J
> Reporter: Appajee Papolu
> Assignee: Thomas Dudziak
> Fix For: 1.0
>
> - Dumped out a MSSQL database using ddlutils ant task
> - Used the resulting files to create a database in MySQL
> - Getting errors while importing data that have embedded XML data in their row data, for example, as in:
> <whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
> - Receiving error as follows:
> [ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
> [ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
> [ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (DDLUTILS-63) ddltoDatabase errors due to specific
string values in table rows of data.xml -- ddltoDatabase(to MySQL) using
files produced by databaseToDdl(from MSSQL)
Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DDLUTILS-63?page=all ]
Thomas Dudziak resolved DDLUTILS-63.
------------------------------------
Resolution: Fixed
Values that contain such characters are now always written to sub elements, and Base64-encoded.
> ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-63
> URL: http://issues.apache.org/jira/browse/DDLUTILS-63
> Project: DdlUtils
> Issue Type: Bug
> Components: Core (No specific database)
> Environment: Win 2K
> SQL Server
> jtds
> MySQL 5.0
> MySQL Connector/J
> Reporter: Appajee Papolu
> Assigned To: Thomas Dudziak
> Fix For: 1.0
>
> Attachments: RowWithAsciiOneChar.txt
>
>
> - Dumped out a MSSQL database using ddlutils ant task
> - Used the resulting files to create a database in MySQL
> - Getting errors while importing data that have embedded XML data in their row data, for example, as in:
> <whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
> - Receiving error as follows:
> [ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
> [ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
> [ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (DDLUTILS-63) ddltoDatabase errors due to
specific string values in table rows of data.xml -- ddltoDatabase(to
MySQL) using files produced by databaseToDdl(from MSSQL)
Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DDLUTILS-63?page=comments#action_12422035 ]
Thomas Dudziak commented on DDLUTILS-63:
----------------------------------------
Could you state the row as it is in the database (e.g. copied from a sql tool) ? I'm not quite sure whether the reading of data from the database or the writing to XML is in error here.
> ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-63
> URL: http://issues.apache.org/jira/browse/DDLUTILS-63
> Project: DdlUtils
> Issue Type: Bug
> Components: Core (No specific database)
> Environment: Win 2K
> SQL Server
> jtds
> MySQL 5.0
> MySQL Connector/J
> Reporter: Appajee Papolu
> Assigned To: Thomas Dudziak
> Fix For: 1.0
>
>
> - Dumped out a MSSQL database using ddlutils ant task
> - Used the resulting files to create a database in MySQL
> - Getting errors while importing data that have embedded XML data in their row data, for example, as in:
> <whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
> - Receiving error as follows:
> [ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
> [ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
> [ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (DDLUTILS-63) ddltoDatabase errors due to specific
string values in table rows of data.xml -- ddltoDatabase(to MySQL) using
files produced by databaseToDdl(from MSSQL)
Posted by "Appajee Papolu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DDLUTILS-63?page=all ]
Appajee Papolu updated DDLUTILS-63:
-----------------------------------
Attachment: RowWithAsciiOneChar.txt
This file shows an exported row with one column that has some proprietary encoded text -- which has an ASCII - 1 as a separator character within the encoded data.
> ddltoDatabase errors due to specific string values in table rows of data.xml -- ddltoDatabase(to MySQL) using files produced by databaseToDdl(from MSSQL)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-63
> URL: http://issues.apache.org/jira/browse/DDLUTILS-63
> Project: DdlUtils
> Issue Type: Bug
> Components: Core (No specific database)
> Environment: Win 2K
> SQL Server
> jtds
> MySQL 5.0
> MySQL Connector/J
> Reporter: Appajee Papolu
> Assigned To: Thomas Dudziak
> Fix For: 1.0
>
> Attachments: RowWithAsciiOneChar.txt
>
>
> - Dumped out a MSSQL database using ddlutils ant task
> - Used the resulting files to create a database in MySQL
> - Getting errors while importing data that have embedded XML data in their row data, for example, as in:
> <whatever-table col1="78" col2="name" col2="Set-schema: User$%$ Query:  '104' LIKE "$GID$;%" OR '104' LIKE "%;$GID$;%" OR '104' LIKE "% $GID$;%" Entry-list: window-position: 0518 0145 0395 0326 end "/>
> - Receiving error as follows:
> [ddlToDatabase] Jan 20, 2006 7:36:58 AM org.apache.commons.digester.Digester fatalError
> [ddlToDatabase] SEVERE: Parse Fatal Error at line 1705 column 107: Character reference "" is an invalid XML character.
> [ddlToDatabase] org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira