java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. at net.luaos.tb.remote.ServerConnection.loadSnippetFull(ServerConnection.java:381) at net.luaos.tb.remote.ServerConnection.loadImage(ServerConnection.java:442) at net.luaos.tb.tb32.RGBImageLuaAPI.addImgToSandbox(RGBImageLuaAPI.java:31) at net.luaos.tb.tb32.IRLuaScriptRunner.run_returnWithStats(IRLuaScriptRunner.java:26) 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) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. at sun.reflect.GeneratedConstructorAccessor46.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.loadSnippetFull(MySqlUtil.java:65) at net.luaos.tb.remote.ServerConnection.loadSnippetFull(ServerConnection.java:379) ... 8 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) ... 5 more