Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-73

java.lang.AssertionError: invalid UTF8 when replacing mysql jdbc driver

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.1.6
    • None
    • None
    • Tomcat 7.0.39, Hibernate 4.1.10, mysql server 5.1.53

    Description

      Replace mysql-connector-java-5.1.22-bin.jar with Maria mariadb-java-client-1.1.5.jar, got the following exception:

      java.lang.AssertionError: invalid UTF8
      at org.mariadb.jdbc.MySQLClob.length(MySQLClob.java:128)
      at org.hibernate.type.descriptor.java.DataHelper.determineLengthForBufferSizing(DataHelper.java:300)
      at org.hibernate.type.descriptor.java.DataHelper.extractString(DataHelper.java:279)
      at org.hibernate.type.descriptor.java.StringTypeDescriptor.wrap(StringTypeDescriptor.java:89)
      at org.hibernate.type.descriptor.java.StringTypeDescriptor.wrap(StringTypeDescriptor.java:39)
      at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$1.doExtract(ClobTypeDescriptor.java:60)
      at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:65)
      at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:261)
      at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:257)
      at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:247)
      at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:332)
      at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2873)
      at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1668)
      at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1600)
      at org.hibernate.loader.Loader.getRow(Loader.java:1500)

      Attachments

        Activity

          People

            georg Georg Richter
            javaone9 Dave
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.