Jump to content
  • 0

Offline Trade/craft


Question

Posted

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

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...