java.sql.SQLException

Field 'uuid' doesn't have a default value

Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1662

  • via GitHub by alfista-sk
    ,
  • Stack trace

    • java.sql.SQLException: Field 'uuid' doesn't have a default value at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1662) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1581) at me.kubqoa.creativecontrol.Methods.updateSQL(Methods.java:352) at me.kubqoa.creativecontrol.WriteToDB.run(WriteToDB.java:45) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:722) at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653) at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556) at java.lang.Thread.run(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    AxeloAxelo
    5 times, last one
    jshakiljshakil
    3 times, last one
    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    148 more bugmates