Jump to content
  • 0

Offline Trade/craft


KONO

Question

Hello, help me please

 

my server linux centos 5.9

 

Error

OfflineTradersTable: Loading offline traders...
Exception in thread "main" java.lang.Error: Unable to determine localhost address.
    at com.l2jserver.gameserver.network.L2GameClient.<init>(L2GameClient.java:148)
    at com.l2jserver.gameserver.datatables.OfflineTradersTable.restoreOfflineTraders(OfflineTradersTable.java:178)
    at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:397)
    at com.l2jserver.gameserver.GameServer.main(GameServer.java:486)
 

L2GameClient.java:148

	public L2GameClient(MMOConnection<L2GameClient> con)
	{
		super(con);
		_state = GameClientState.CONNECTED;
		_connectionStartTime = System.currentTimeMillis();
		_crypt = new GameCrypt();
		_stats = new ClientStats();
		
		_packetQueue = new ArrayBlockingQueue<>(Config.CLIENT_PACKET_QUEUE_SIZE);
		
		if (Config.CHAR_STORE_INTERVAL > 0)
		{
			_autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), 300000L, (Config.CHAR_STORE_INTERVAL * 60000L));
		}
		else
		{
			_autoSaveInDB = null;
		}
		
		try
		{
			_addr = con != null ? con.getInetAddress() : InetAddress.getLocalHost();
		}
		catch (UnknownHostException e)
		{
			throw new Error("Unable to determine localhost address.");
		}
	}

/etc/hosts

127.0.0.1       localhost localhost.localdomain
127.0.0.1       localhost
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

Thank for help

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...