Kai Moritz
2008-03-26 08:14:16 UTC
Hi Folks,
I have this really strange problem with german umlauts in my testcases.
On my development system (Ubuntu feisty with Sun JDK 6.0
and "LANG=***@euro") all my testcases work fine. But when I check out the
sources on my production system (Debian etch with Sun JDK 5.0
and "LANG=en_US.ISO-8859-15") "mvn test" failes with a weired errors:
-------------------------------------
[INFO] Error executing database operation: CLEAN_INSERT
Embedded error: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too
long for column 'description' at row 1
-------------------------------------
The mentioned column holds an "ä" and the error vanishes, if I remove that
character. But even more strange: another column of the same row can hold any
number of german umlauts without any error! The only difference between the
two rows is, that the one with the error was maped with type="text" in
Hibernate (which results in "text") and the one without the error with
type="string" (which results in "varchar(255)") ...
When I remove the "ä" CLEAN_INSERT works, but all my testcases, which are
comparing strings that contain german umlauts, are failing with errors like:
----------------------------------------
junit.framework.ComparisonFailure: null expected:<S[Ì]dring 2> but
was:<S[ü]dring 2>
----------------------------------------
I am hopelessly stuck! I hope someone has an idea or can give me a clue!
Greetings kai
I have this really strange problem with german umlauts in my testcases.
On my development system (Ubuntu feisty with Sun JDK 6.0
and "LANG=***@euro") all my testcases work fine. But when I check out the
sources on my production system (Debian etch with Sun JDK 5.0
and "LANG=en_US.ISO-8859-15") "mvn test" failes with a weired errors:
-------------------------------------
[INFO] Error executing database operation: CLEAN_INSERT
Embedded error: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too
long for column 'description' at row 1
-------------------------------------
The mentioned column holds an "ä" and the error vanishes, if I remove that
character. But even more strange: another column of the same row can hold any
number of german umlauts without any error! The only difference between the
two rows is, that the one with the error was maped with type="text" in
Hibernate (which results in "text") and the one without the error with
type="string" (which results in "varchar(255)") ...
When I remove the "ä" CLEAN_INSERT works, but all my testcases, which are
comparing strings that contain german umlauts, are failing with errors like:
----------------------------------------
junit.framework.ComparisonFailure: null expected:<S[Ì]dring 2> but
was:<S[ü]dring 2>
----------------------------------------
I am hopelessly stuck! I hope someone has an idea or can give me a clue!
Greetings kai