java.sql.BatchUpdateException: Packet for query is too large (4528379 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.

GitHub | Laurira | 4 months ago
  1. 0

    Exporting to mysql error: Packet for query is too large

    GitHub | 4 months ago | Laurira
    java.sql.BatchUpdateException: Packet for query is too large (4528379 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
  2. 0

    Few permission issues, not sure if it's a bug or just me being stupid.

    GitHub | 2 years ago | stefan10
    ru.tehkode.permissions.exceptions.PermissionBackendException: Deploying of default data failed. Please initialize database manually using mysql.sql
  3. 0

    Batch insert error mysql and java

    Stack Overflow | 3 years ago | user3344414
    java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failure on creating pending segments table in MySQL or MariaDB metadata storage

    GitHub | 11 months ago | sirpkt
    org.skife.jdbi.v2.exceptions.CallbackFailedException: org.skife.jdbi.v2.exceptions.UnableToExecuteStatementException: java.sql.BatchUpdateException: Specified key was too long; max key length is 1000 bytes [statement:"null", located:"null", rewritten:"null", arguments:null]
  6. 0

    BatchUpdateException on (re)activate

    ha-jdbc | 6 years ago | mkriv
    java.sql.BatchUpdateException: Error on rename of './cipherengine/co_folder' to './cipherengine/#sql2-7fcd-a' (errno: 152)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mysql.jdbc.PacketTooBigException

    Packet for query is too large (4528379 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.

    at com.mysql.jdbc.MysqlIO.send()
  2. MySQL jdbc
    StatementImpl.executeBatch
    1. com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3583)
    2. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2460)
    3. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
    4. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
    5. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
    6. com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
    7. com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
    8. com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094)
    9. com.mysql.jdbc.PreparedStatement.executeBatchedInserts(PreparedStatement.java:1528)
    10. com.mysql.jdbc.PreparedStatement.executeBatchInternal(PreparedStatement.java:1248)
    11. com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:959)
    11 frames
  3. com.databasepreservation.modules
    SIARD2ContentImportStrategy.endElement
    1. com.databasepreservation.modules.jdbc.out.JDBCExportModule.handleDataRow(JDBCExportModule.java:480)
    2. com.databasepreservation.modules.siard.in.content.SIARD2ContentImportStrategy.endElement(SIARD2ContentImportStrategy.java:296)
    2 frames
  4. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    2. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
    3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    6. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    7. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    8. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    10. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    11. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    12. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    12 frames
  5. com.databasepreservation.modules
    SIARDImportDefault.getDatabase
    1. com.databasepreservation.modules.siard.in.content.SIARD2ContentImportStrategy.importContent(SIARD2ContentImportStrategy.java:141)
    2. com.databasepreservation.modules.siard.in.input.SIARDImportDefault.getDatabase(SIARDImportDefault.java:45)
    2 frames
  6. com.databasepreservation
    Main.main
    1. com.databasepreservation.Main.run(Main.java:126)
    2. com.databasepreservation.Main.internal_main(Main.java:80)
    3. com.databasepreservation.Main.main(Main.java:62)
    3 frames