``` java.sql.SQLException: Invalid argument value:...
# exposed
a
Copy code
java.sql.SQLException: Invalid argument value: java.io.NotSerializableException

	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
	at com.mysql.jdbc.PreparedStatement.setSerializableObject(PreparedStatement.java:3835)
	at com.mysql.jdbc.PreparedStatement.setObject(PreparedStatement.java:3565)
	at com.mysql.jdbc.JDBC42PreparedStatement.setObject(JDBC42PreparedStatement.java:68)
	at org.jetbrains.exposed.sql.IColumnType$DefaultImpls.setParameter(ColumnType.kt:56)
	at org.jetbrains.exposed.sql.ColumnType.setParameter(ColumnType.kt:60)
	at org.jetbrains.exposed.sql.statements.StatementKt.fillParameters(Statement.kt:116)
	at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed(Statement.kt:51)
	at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:131)
	at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:125)
	at org.jetbrains.exposed.sql.statements.Statement.execute(Statement.kt:29)
	at org.jetbrains.exposed.sql.QueriesKt.insert(Queries.kt:45)
Caused by: java.io.NotSerializableException: org.jetbrains.exposed.dao.EntityID
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
	at com.mysql.jdbc.PreparedStatement.setSerializableObject(PreparedStatement.java:3824)
	... 45 more