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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

Solutions on the web

via spigotmc.org by Unknown author, 1 year ago
via GitHub by anjia0532
, 9 months ago
Incorrect string value: '\xF0\x9F\x92\x94' for column 'xxx' at row 1
via wordpress.com by Unknown author, 1 year ago
via Stack Overflow by kris14an
, 2 years ago
Incorrect string value: '\xB3\xF3\xBF\xBC\xE6\xBF...' for column 'content' at row 1
via wordpress.com by Unknown author, 1 year ago
Incorrect string value: '\xCF\x82 \xCE\xBC\xCE...' for column 'body' at row 1
via igniterealtime.org by Unknown author, 1 year ago
java.sql.SQLException: Field 'Locked' 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 com.mengcraft.playersql.PUtils.loadPlayer(PUtils.java:150)
at com.mengcraft.playersql.PlayerJoinThread.run(PMain.java:143)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
164 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.