org.luaj.vm2.LuaError: LuaTimeOutSandbox.loader:35 org.luaj.vm2.LuaError: vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. at net.luaos.tb.common.EnvDependentFunctions$getSnippet.call(EnvDependentFunctions.java:90) at org.luaj.vm2.lib.OneArgFunction.invoke(OneArgFunction.java:70) at net.luaos.tb.common.LuaGlobals$1.invoke(LuaGlobals.java:111) at org.luaj.vm2.lib.VarArgFunction.call(VarArgFunction.java:58) at net.luaos.tb.common.EnvDependentFunctions$loadSnippet.call(EnvDependentFunctions.java:100) at net.luaos.tb.common.EnvDependentFunctions$go.call(EnvDependentFunctions.java:132) at org.luaj.vm2.lib.TwoArgFunction.invoke(TwoArgFunction.java:73) at org.luaj.vm2.LuaValue.onInvoke(LuaValue.java:3593) at org.luaj.vm2.TailcallVarargs.eval(TailcallVarargs.java:68) at org.luaj.vm2.LuaClosure.invoke(LuaClosure.java:183) at org.luaj.vm2.LuaThread$State.run(LuaThread.java:192) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. at net.luaos.tb.remote.ServerConnection.loadSnippet(ServerConnection.java:221) at net.luaos.tb.common.LuaGlobals.getSnippet(LuaGlobals.java:171) at net.luaos.tb.common.EnvDependentFunctions$getSnippet.call(EnvDependentFunctions.java:85) ... 11 more Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.Util.getInstance(Util.java:386) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1014) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919) at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1269) at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1261) at com.mysql.jdbc.ConnectionImpl.createStatement(ConnectionImpl.java:2578) at com.mysql.jdbc.ConnectionImpl.createStatement(ConnectionImpl.java:2560) at net.luaos.tb.tb11.MySqlUtil.loadSnippet(MySqlUtil.java:37) at net.luaos.tb.remote.ServerConnection.loadSnippet(ServerConnection.java:202) ... 13 more Caused by: java.lang.OutOfMemoryError: Java heap space at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3516) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3456) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3997) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1907) at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3401) at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:483) at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3096) at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2266) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2687) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2713) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2663) at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1599) at net.luaos.tb.remote.ServerConnection.getIRResultsForLua_impl(ServerConnection.java:526) at net.luaos.tb.remote.ServerConnection.getIRResultsForLua_singleImage(ServerConnection.java:548) at net.luaos.tb.tb32.IRLuaScriptRunner.run_returnWithStats(IRLuaScriptRunner.java:29) at net.luaos.tb.tb32.IRPitcher.runScript(IRPitcher.java:151) at net.luaos.tb.tb32.IRPitcher.pitchPair(IRPitcher.java:135) at net.luaos.tb.tb32.IRPitcher.pitchRun(IRPitcher.java:105) at net.luaos.tb.tb32.IRPitcher.pitch(IRPitcher.java:76) at net.luaos.tb.tb32.IRPitcher.main(IRPitcher.java:39) at irpitcher.main(irpitcher.java:8) stack traceback: LuaTimeOutSandbox.loader:35: in main chunk [Java]: in ? at org.luaj.vm2.lib.BaseLib$error.call(BaseLib.java:179) at org.luaj.vm2.lib.TwoArgFunction.invoke(TwoArgFunction.java:73) at org.luaj.vm2.LuaClosure.execute(LuaClosure.java:385) at org.luaj.vm2.LuaClosure.onInvoke(LuaClosure.java:190) at org.luaj.vm2.LuaClosure.invoke(LuaClosure.java:183) at org.luaj.vm2.LuaValue.invoke(LuaValue.java:1743) at net.luaos.tb.common.Loader.invoke(Loader.java:65) at net.luaos.tb.common.LuaTimeOutSandbox.callLuaWithStats(LuaTimeOutSandbox.java:76) at net.luaos.tb.tb12.Sandbox.callFunctionWithStats(Sandbox.java:166) at net.luaos.tb.tb12.Sandbox.callLuaWithStats(Sandbox.java:156) at net.luaos.tb.tb12.Sandbox.runLuaWithStats(Sandbox.java:140) at net.luaos.tb.tb32.IRLuaScriptRunner.run_returnWithStats(IRLuaScriptRunner.java:33) at net.luaos.tb.tb32.IRPitcher.runScript(IRPitcher.java:151) at net.luaos.tb.tb32.IRPitcher.pitchPair(IRPitcher.java:135) at net.luaos.tb.tb32.IRPitcher.pitchRun(IRPitcher.java:105) at net.luaos.tb.tb32.IRPitcher.pitch(IRPitcher.java:76) at net.luaos.tb.tb32.IRPitcher.main(IRPitcher.java:39) at irpitcher.main(irpitcher.java:8)