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

java.io.IOException: Last packet not finished

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.5
    • 1.3.0
    • Other
    • None
    • Windows 7 64-bit, mysql 5.5.15-enterprise-commercial-advanced MySQL Enterprise Server 32 bit, glassfish 3.1.2.2. jdk 1.7

    Description

      (Sorry, I can't speak english)

      I'm trying to replace the mysql jdbc driver with mariadb jdbc driver 1.5.

      In glassfish the connection pool is configured with

      • Resource Type: javax.sql.ConnectionPoolDataSource
      • Data Source Class Name: org.mariadb.jdbc.MySQLDataSource
      • user: xx
      • password: xxx
      • characterEncoding: UTF-8 (missing this in mariadb)
      • portNumber: 3306
      • serverName: localhost
      • databaseName: xxxx

      Our over 400 integrations tests are running without errors with the mysql jdbc driver.
      With mariadb the last 100 test fail with this exception:

      ```
      Caused by: java.sql.SQLNonTransientConnectionException: Could not send query: Last packet not finished
      at org.mariadb.jdbc.internal.SQLExceptionMapper.get(SQLExceptionMapper.java:136)
      at org.mariadb.jdbc.internal.SQLExceptionMapper.throwException(SQLExceptionMapper.java:106)
      at org.mariadb.jdbc.MySQLStatement.executeQueryEpilog(MySQLStatement.java:263)
      at org.mariadb.jdbc.MySQLStatement.execute(MySQLStatement.java:287)
      at org.mariadb.jdbc.MySQLStatement.executeQuery(MySQLStatement.java:301)
      at org.mariadb.jdbc.MySQLPreparedStatement.executeQuery(MySQLPreparedStatement.java:112)
      at com.sun.gjc.spi.jdbc40.PreparedStatementWrapper40.executeQuery(PreparedStatementWrapper40.java:642)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:931)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:607)
      ... 125 more
      Caused by: org.mariadb.jdbc.internal.common.QueryException: Could not send query: Last packet not finished
      at org.mariadb.jdbc.internal.mysql.MySQLProtocol.executeQuery(MySQLProtocol.java:975)
      at org.mariadb.jdbc.MySQLStatement.execute(MySQLStatement.java:280)
      ... 130 more

      Caused by: java.io.IOException: Last packet not finished
      at org.mariadb.jdbc.internal.common.packet.PacketOutputStream.startPacket(PacketOutputStream.java:38)
      at org.mariadb.jdbc.internal.common.packet.commands.StreamedQueryPacket.send(StreamedQueryPacket.java:76)
      at org.mariadb.jdbc.internal.mysql.MySQLProtocol.executeQuery(MySQLProtocol.java:973)
      ... 131 more
      ```

      Attachments

        Issue Links

          Activity

            People

              ratzpo Rasmus Johansson (Inactive)
              lier99 Torsten Liermann
              Votes:
              14 Vote for this issue
              Watchers:
              21 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.