java.sql.SQLException: Field 'ID' doesn't have a default value

Oracle Community | jsun106 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Glassfish+MySQL Primary key generation not working

    Oracle Community | 1 decade ago | jsun106
    java.sql.SQLException: Field 'ID' doesn't have a default value
  2. 0

    Caused by: java.sql.SQLException: Field 'id' doesn't have a default value - longyuan20102011的专栏 - 博客频道 - CSDN.NET

    csdn.net | 1 year ago
    org.hibernate.exception.GenericJDBCException: could not insert: [com.green.vo.Login]
  3. 0

    Spring Hibernate - Saving multiple entities associated with each other

    Stack Overflow | 5 years ago | Abraham Miguel Espiritu
    java.sql.SQLException: Field 'addressID' doesn't have a default value
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to store messages containing special characters

    Stack Overflow | 5 years ago | diya
    java.sql.SQLException: Incorrect string value: '\xF0\x9F\x91\x8D\xF0\x9F...' for column 'message' at row 1
  6. 0

    Spring-JPA Does not result in insert, after in readOnly transaction?

    Stack Overflow | 5 years ago | hakdogan
    java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed

  1. Hronom 1 times, last 2 months ago
  2. kid 2 times, last 4 months ago
  3. kuldeep 4 times, last 5 months ago
  4. mortalman7 1 times, last 8 months ago
32 unregistered visitors
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. java.sql.SQLException

    Field 'ID' doesn't have a default value

    at com.mysql.jdbc.MysqlIO.checkErrorPacket()
  2. MySQL jdbc
    PreparedStatement.executeUpdate
    1. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
    2. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
    3. com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1125)
    4. com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:677)
    5. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1357)
    6. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1274)
    7. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1259)
    7 frames
  3. Hibernate
    AbstractReturningDelegate.performInsert
    1. org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
    2. org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
    2 frames