facebook

Hibernate Malformed exception [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #237133 Reply

    Hi,

    When I use the wizards to create a mapping or a config file I am getting an exception:

    com.ibm.encoding.resource.exceptions.MalformedInputExceptionWithDetail

    One or more characters could not be decoded according to the encoding parameter UTF-16. Position of first invalid character is 1.

    When I open the generated file, the encoding is UTF-16 and the content is illisible.

    I tested with a Sybase and an Oracle connection.

    Any idea?

    regards,

    #237149 Reply

    Brian Fernandes
    Moderator

    Herve,

    I just tried creating a mapping using our wizards when pointed to a hibernate configuration file encoded with UTF-16 and experienced no problems. I’m using MyEclipse 4.0GA and Eclipse 3.1 Final, just in case you aren’t using these versions, I suggest you download and install them before proceeding further.

    I think you see this error after the mapping wizard completes and you try to open the generated mapping file – can you please confirm this? Or do you see the error while the mapping wizard is working?

    Do you need your generated mapping files to be encoded UTF-16? If not, can you check the Encoding preference under MyEclipse > Editors > XML and see if that says UTF-16? If it does, please change that to UTF-8 and everything will work fine.
    If you do need UTF-16, please change the encoding parameter manually in mapping file generated.

    Please let us know if you need further assistance.

    Best,
    Brian.

    #237158 Reply

    I check out the editor parameters and it was set up on UTF-16 , I really don’t know why! I set up UTF-8 and it is working perfect.

    regards,

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Hibernate Malformed exception [Closed]

You must be logged in to post in the forum log in