[xwiki-users] Error saving document with text in object
Hi All, i use a Changelistener on a Document to update an object. Now i added a larger text to the object an get the exception "data exception: string data, right truncation; table: XWIKISTRINGS column: XWS_VALUE". First i replaced the german "ü,ö,ä,ß", but they are not the reason as you can see. Did someone know that error? My text which throws the exception is Is there a character which i shoudl remove? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Error-saving-document-with-text-in-object-... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 02/13/2014 05:09 PM, Matthias Wegner wrote:
Hi All,
i use a Changelistener on a Document to update an object. Now i added a larger text to the object an get the exception "data exception: string data, right truncation; table: XWIKISTRINGS column: XWS_VALUE".
First i replaced the german "ü,ö,ä,ß", but they are not the reason as you can see.
Did someone know that error?
My text which throws the exception is
Is there a character which i shoudl remove?
Regards, Matthias
Is that a String Property or a TextArea property? String properties have a limit of 255 characters, while TextArea properties have a limit of ~60 000 characters. Putting a longer than allowed text usually triggers that error, and it doesn't matter what kind of characters you have in there (those are unicode characters, not bytes). -- Sergiu Dumitriu http://purl.org/net/sergiu
Perfect. That's it. I created the object with AbstractMandatoryDocumentInitializer and first set a TextField (String). I changed it to TextAreaField, but the Attribut was not reset. I deleted the attrib manually from the class and after a new server-start everything works fine. Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Error-saving-document-with-text-in-object-... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Matthias Wegner -
Sergiu Dumitriu