-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL exception on UPDATE HELP Plz #46
Comments
Either disable online time logging fully by setting loggin.playerInfo in LB main config to false, or if you need it, check the online time column if there is a null: |
logPlayerInfo: true This in false ? Thx you Diddiz ! |
2011-12-07 22:23:08 [INFO] [LogBlock] Permissions plugin found. |
SELECT onlinetime FROM Yes, set it to false. Or, just one shot in the dark, try: |
It's ok, very thx for you'r help and rapidity ! |
2011-12-07 17:42:56 [SEVERE] [LogBlock Consumer] SQL exception on UPDATE
lb-players
SET onlinetime = ADDTIME(onlinetime, TIMEDIFF(FROM_UNIXTIME(1323276173), lastlogin)) WHERE playerid = 548;:com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'onlinetime' cannot be null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
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.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:622)
at de.diddiz.LogBlock.Consumer.run(Consumer.java:276)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Thread.java:636)
All the time with 1.3 and 1.4 ...
how i can fix that plz? i dont understand what is this bug
I'm not an hard user for SQL :/
craftbukkit 1337
logblock 1.4.1
Thx dude !
The text was updated successfully, but these errors were encountered: