» Find Revision
L2J Revision Number:
L2JDP Revision Number:
Hello,
I use Interlude server and yesterday installed your new Community server, but i have some problems.
On test server (only two clans and 8 chars) it's works perfect, but then i trying to launch on live server, where play over 500 players i get this error:
Server side:
Code: Select all
=============================================================-[ GameServerLog ]INFO Registered on login as Server 1 : BartzINFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.INFO Siege of Dion: Sat Mar 20 20:00:00 EET 2010INFO Siege of Oren: Sun Mar 21 16:00:00 EET 2010INFO Siege of Aden: Sat Mar 20 20:00:00 EET 2010INFO Siege of Innadril: Sun Mar 21 16:00:00 EET 2010INFO Siege of Goddard: Sun Mar 21 16:00:00 EET 2010INFO Siege of Rune: Sat Mar 20 20:00:00 EET 2010INFO Siege of Schuttgart: Sat Mar 20 20:00:00 EET 2010INFO SevenSignsFestival: Initialization bypassed due to Seal Validation in effect.INFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.INFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.INFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.INFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.INFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.INFO CommunityServerThread: Trying to connect to localhost on port 9013.INFO CommunityServerThread: Connecting to localhost on port 9013 failed.NFO Transfering 917 Clan data to CB server.WARNING CommunityServerThread: TCP Connection lost!INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)INFO CommunityServerThread: Failed sending TCP packet.java.io.IOException: TCP Write: Not initialized. at org.netcon.NetConnection.write(NetConnection.java:120) at net.sf.l2j.gameserver.network.communityserver.CommunityServerThread.sendPacket(CommunityServerThread.java:106) at net.sf.l2j.gameserver.network.communityserver.readpackets.RequestWorldInfo.run(RequestWorldInfo.java:92) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619).........
Code: Select all
[15 Mar 11:30:35] MLog clients using java 1.4+ standard logging.[15 Mar 11:30:35] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10][15 Mar 11:30:36] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kfsx87qyicgb13qu4c8|52b2a2d8, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfsx87qyicgb13qu4c8|52b2a2d8, idleConnectionTestPeriod -> 3600, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://localhost:3001/l2jcb, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ][15 Mar 11:30:36] Loaded 1 registered GameServers[15 Mar 11:30:36] Cached 10 RSA keys for GameServer communication.[15 Mar 11:30:36] Cache[HTML]: Running lazy cache[15 Mar 11:30:36] Listening for GameServers on *:9013[15 Mar 11:30:40] Received connection: 127.0.0.1[15 Mar 11:30:40] GameServer connected![15 Mar 11:30:40] Transfering needed data for CommunityServer![15 Mar 11:30:55] Connection lost!java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145) at java.io.BufferedInputStream.read(BufferedInputStream.java:241) at com.l2jserver.communityserver.network.netcon.NetConnection.read(NetConnection.java:93) at com.l2jserver.communityserver.network.GameServerThread.run(GameServerThread.java:80)[15 Mar 11:31:05] Received connection: 127.0.0.1[15 Mar 11:31:05] GameServer connected![15 Mar 11:31:05] Transfering needed data for CommunityServer!SIGTERM received. Shutting down NOW! (I turned off it)
My RequestWorldInfo class part
Code: Select all
// players data java.sql.Connection con = null; StatsSet[] charDatList = new StatsSet[MAX_ARRAY]; try { con = L2DatabaseFactory.getInstance().getConnection(con); PreparedStatement statement = con.prepareStatement("SELECT account_name, obj_Id, char_name, level, clanid, accesslevel, online FROM characters"); ResultSet charList = statement.executeQuery(); i = 0; int charNumber = 0; while (charList.next()) { charNumber++; StatsSet charDat = new StatsSet(); charDat.set("account_name", charList.getString("account_name")); charDat.set("charId", charList.getInt("obj_Id")); charDat.set("char_name", charList.getString("char_name")); charDat.set("level", charList.getInt("level")); charDat.set("clanid", charList.getInt("clanid")); charDat.set("accesslevel", charList.getInt("accesslevel")); charDat.set("online", charList.getInt("online")); charDatList[i++] = charDat; if (i >= MAX_ARRAY) { i = 0; j++; _cst.sendPacket(new InitWorldInfo(charDatList, null, InitWorldInfo.TYPE_PLAYER, -1), false); (HERE IS 92 line) } } if (i != 0) { j++; _cst.sendPacket(new InitWorldInfo(charDatList, null, InitWorldInfo.TYPE_PLAYER, i), false); } _log.info("Transfering " + charNumber + " character data to CB server."); charList.close(); statement.close(); } catch (Exception e) { _log.warning("Could not restore char info: " + e.getMessage()); } finally { try { con.close(); } catch (Exception e) {} }