games647 / ScoreboardStats

Bukkit plugin for customizing the sidebar of the scoreboard feature from minecraft
https://dev.bukkit.org/bukkit-mods/scoreboardstats/
MIT License
28 stars 45 forks source link

Error with SQL #7

Closed Smexhy closed 10 years ago

Smexhy commented 11 years ago

11:33:03 [INFO] DataSourcePool [ScoreboardStats] grow; id[ScoreboardStats.9] busy[10] max[250] 11:33:03 [INFO] Can not test connection as heartbeatsql is not set 11:33:03 [INFO] Closing Connection[ScoreboardStats.9] psReuse[0] psCreate[1] psSize[0] 11:33:03 [INFO] DataSourcePool [ScoreboardStats] grow; id[ScoreboardStats.10] busy[11] max[250] 11:33:03 [SEVERE] Exception in thread "pool-1-thread-56" 11:33:03 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin ScoreboardStats v0.5.9 generated an exception while executing task 15627 at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: javax.persistence.PersistenceException: Query threw SQLException:[SQLITE_ERROR] SQL error or missing database (no such table: PlayerStats) Bind values:[null] Query was: select t0.playername c0, t0.kills c1, t0.deaths c2, t0.mobkills c3, t0.killstreak c4 from PlayerStats t0 where t0.playername = ?

at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:849) at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:829) at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:238) at com.avaje.ebeaninternal.server.query.DefaultOrmQueryEngine.findMany(DefaultOrmQueryEngine.java:104) at com.avaje.ebeaninternal.server.core.OrmQueryRequest.findList(OrmQueryRequest.java:344) at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1469) at com.avaje.ebeaninternal.server.core.DefaultServer.findUnique(DefaultServer.java:1236) at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findUnique(DefaultOrmQuery.java:924) at com.avaje.ebeaninternal.util.DefaultExpressionList.findUnique(DefaultExpressionList.java:217) at com.github.games647.scoreboardstats.pvpstats.Database.saveAccount(Database.java:68) at com.github.games647.scoreboardstats.pvpstats.AppearTask.run(AppearTask.java:18) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more Caused by: java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: PlayerStats) at org.sqlite.DB.newSQLException(DB.java:383) at org.sqlite.DB.newSQLException(DB.java:387) at org.sqlite.DB.throwex(DB.java:374) at org.sqlite.NativeDB.prepare(Native Method) at org.sqlite.DB.prepare(DB.java:123) at org.sqlite.PrepStmt.(PrepStmt.java:42) at org.sqlite.Conn.prepareStatement(Conn.java:404) at org.sqlite.Conn.prepareStatement(Conn.java:399) at org.sqlite.Conn.prepareStatement(Conn.java:383) at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:426) at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:396) at com.avaje.ebeaninternal.server.query.CQuery.prepareBindExecuteQuery(CQuery.java:399) at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:198) ... 13 more