com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1

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

Solutions on the web

via segmentfault.com by Unknown author, 1 year ago
Data truncation: Data too long for column 'name' at row 1
via Stack Overflow by Itamar
, 2 years ago
Data truncation: Data too long for column 'content' at row 1
via mysql.com by Unknown author, 1 year ago
Data truncation: Incorrect datetime value: '2010-03-14 02:55:35' for column 'CREATED_TM' at row 1
via Stack Overflow by Mikey
, 2 years ago
Data truncation: Data too long for column 'weight' at row 1
via Stack Overflow by Rahoul
, 2 years ago
via GitHub by mabouza
, 2 years ago
Data truncation: Data too long for column 'notes' at row 1
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3885)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062)
at com.mousycoder.server.jdbc.JdbcNoTransaction.insertTest2(JdbcNoTransaction.java:61)
at com.mousycoder.server.jdbc.JdbcNoTransaction.main(JdbcNoTransaction.java:22)

Users with the same issue

Once, 3 weeks ago
4 times, 1 month ago
Once, 4 months ago
3 times, 6 months ago
Once, 7 months ago

Write tip

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