Re: Incorrect string value: '\xAC\xED\x00\x05sr...' for column
Posted by: Filipe Silva
Date: December 13, 2018 11:18AM

It seems that you are trying to insert a serialized Java object into a text, char or varchar column and the server it unable to decode the bytes into a valid string.

Is this really what you want to do?

I suppose you should instead try to insert each "subject" at a time, using `ps.setString(10. subjects.get(n))`, or something like that. The way you are doing it, you are adding the entire `List<String>` object into this field/column.

Options: ReplyQuote




Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.