org.luaj.vm2.LuaError: LuaTimeOutSandbox.loader:35 org.luaj.vm2.LuaError: #469:7 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. stack traceback: #469:5: in main chunk [Java]: in ? 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.call(TwoArgFunction.java:65) at org.luaj.vm2.LuaClosure.execute(LuaClosure.java:372) at org.luaj.vm2.LuaClosure.onInvoke(LuaClosure.java:190) 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.GeneratedConstructorAccessor59.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 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.recalcs(IRPitcher.java:252) at net.luaos.tb.tb32.IRPitcher.main(IRPitcher.java:40) at irpitcher.main(irpitcher.java:8)