com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException

Column 'username_id' cannot be null

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web574

  • via GitHub by viet
    ,
  • via GitHub by random1167
    ,
  • via GitHub by simplechen
    ,
  • Stack trace

    • com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'username_id' cannot be null at sun.reflect.GeneratedConstructorAccessor150.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.Util.getInstance(Util.java:387) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861) at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073) at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009) at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994) at com.greatmancode.com.zaxxer.libs.hikari.proxy.PreparedStatementProxy.executeUpdate(PreparedStatementProxy.java:61) at com.greatmancode.com.zaxxer.libs.hikari.proxy.PreparedStatementJavassistProxy.executeUpdate(PreparedStatementJavassistProxy.java) at com.greatmancode.craftconomy3.storage.sql.SQLStorageEngine.getAccount(SQLStorageEngine.java:114) at com.greatmancode.craftconomy3.storage.StorageEngine.getAccount(StorageEngine.java:54) at com.greatmancode.craftconomy3.account.AccountManager.getAccount(AccountManager.java:54) at com.greatmancode.craftconomy3.events.EventManager.playerJoinEvent(EventManager.java:54) at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.greatmancode.craftconomy3.tools.events.ListenerRegistration.callEvent(ListenerRegistration.java:40) at com.greatmancode.craftconomy3.tools.events.EventManager.callEvent(EventManager.java:66) at com.greatmancode.craftconomy3.tools.events.bukkit.PlayerJoinEventListener.onPlayerJoin(PlayerJoinEventListener.java:32) at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor59.execute(Unknown Source) at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) at net.minecraft.server.v1_10_R1.PlayerList.onPlayerJoin(PlayerList.java:356) at net.minecraft.server.v1_10_R1.PlayerList.a(PlayerList.java:175) at net.minecraft.server.v1_10_R1.LoginListener.b(LoginListener.java:144) at net.minecraft.server.v1_10_R1.LoginListener.E_(LoginListener.java:54) at net.minecraft.server.v1_10_R1.NetworkManager.a(NetworkManager.java:233) at net.minecraft.server.v1_10_R1.ServerConnection.c(ServerConnection.java:152) at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:886) at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:404) at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:725) at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:624) at java.lang.Thread.run(Thread.java:745)

    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

    slashslash
    3 times, last one
    tvrmsmithtvrmsmith
    22 times, last one
    Unknown UserUnknown User
    18 times, last one
    Михайло ТітовМихайло Тітов
    2 times, last one
    ivanszkypeterivanszkypeter
    8 times, last one
    61 more bugmates