Error during Startup

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
alehawk
Posts: 50
Joined: Wed Mar 24, 2010 10:42 pm

Error during Startup

Post by alehawk »

Hi!
I got gracia 2.1 and since fortsieges doesnt work I aplied a patch that I fpund in the old l2jforum.
Everything went ok, I mean, I didnt got compiler problems but I got this error during startup:

ADVERTENCIA: NPC 31356 class not found
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:459)
at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:417)
at net.sf.l2j.gameserver.model.L2Spawn.init(L2Spawn.java:384)
at net.sf.l2j.gameserver.datatables.SpawnTable.fillSpawnTable(SpawnTable.java:118)
at net.sf.l2j.gameserver.datatables.SpawnTable.<init>(SpawnTable.java:56)
at net.sf.l2j.gameserver.datatables.SpawnTable.<clinit>(SpawnTable.java:40)
at net.sf.l2j.gameserver.instancemanager.FortManager.initNpcs(FortManager.java:265)
at net.sf.l2j.gameserver.instancemanager.FortManager.<init>(FortManager.java:73)
at net.sf.l2j.gameserver.model.entity.Fort.<init>(Fort.java:259)
at net.sf.l2j.gameserver.instancemanager.FortManager.load(FortManager.java:125)
at net.sf.l2j.gameserver.instancemanager.FortManager.getInstance(FortManager.java:55)
at net.sf.l2j.gameserver.model.zone.type.L2FortZone.setParameter(L2FortZone.java:61)
at net.sf.l2j.gameserver.instancemanager.ZoneManager.load(ZoneManager.java:324)
at net.sf.l2j.gameserver.instancemanager.ZoneManager.<init>(ZoneManager.java:68)
at net.sf.l2j.gameserver.instancemanager.ZoneManager.getInstance(ZoneManager.java:56)
at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:224)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:535)
Caused by: java.lang.NullPointerException
at net.sf.l2j.gameserver.datatables.NpcWalkerRoutesTable.getRouteForNpc(NpcWalkerRoutesTable.java:111)
at net.sf.l2j.gameserver.ai.L2NpcWalkerAI.<init>(L2NpcWalkerAI.java:61)
at net.sf.l2j.gameserver.model.actor.instance.L2NpcWalkerInstance.<init>(L2NpcWalkerInstance.java:44)
... 21 more

I checked up and the NPC is in the SPAWNLIST, WALKER_ROUT and NPC table.
Any suggestion?
Thank you!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Error during Startup

Post by JIV »

load forts before something invoke it before
alehawk
Posts: 50
Joined: Wed Mar 24, 2010 10:42 pm

Re: Error during Startup

Post by alehawk »

Where do I change the startup order?
Tnx!
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Error during Startup

Post by janiii »

net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:224) - in the constructor of GameServer class.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
alehawk
Posts: 50
Joined: Wed Mar 24, 2010 10:42 pm

Re: Error during Startup

Post by alehawk »

Did this

CastleManager.getInstance();
SiegeManager.getInstance();
FortManager.getInstance();
FortSiegeManager.getInstance();
ExtractableItemsData.getInstance();
SummonItemsData.getInstance();
ZoneManager.getInstance();
MerchantPriceConfigTable.getInstance();
TradeController.getInstance();

Will try it...
alehawk
Posts: 50
Joined: Wed Mar 24, 2010 10:42 pm

Re: Error during Startup

Post by alehawk »

The problem is here NpcWalkerRoutesTable.getInstance().load(); for a reason I dont know it doesnt it throws the NPC class not found exception :S
Any suggestion? :S
Thank you!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Error during Startup

Post by JIV »

this ones must be loaded before SpawnList, put it before any npc init.

Code: Select all

CastleManager.getInstance().loadInstances();FortManager.getInstance().loadInstances();
alehawk
Posts: 50
Joined: Wed Mar 24, 2010 10:42 pm

Re: Error during Startup

Post by alehawk »

Same error :S

Here is what I get:

Code: Select all

 Geo Engine: - Loading: ./data/geodata/26_15.l2j -> region offset: 847X: 26 Y: 15Geo Engine: - Max Layers: 0 Size: 228864 Loaded: 228864Geo Engine: - Loading: ./data/geodata/26_16.l2j -> region offset: 848X: 26 Y: 16Geo Engine: - Max Layers: 0 Size: 261372 Loaded: 261372Siege of Oren: Sun Jun 20 16:00:00 GMT-03:00 2010MerchantPriceConfigTable: Loaded 28 merchant price configs.Initializing Walkers Routes Table.NPC 31356 class not foundjava.lang.reflect.InvocationTargetException        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)        at java.lang.reflect.Constructor.newInstance(Unknown Source)        at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:459)        at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:417)        at net.sf.l2j.gameserver.model.L2Spawn.init(L2Spawn.java:384)        at net.sf.l2j.gameserver.datatables.SpawnTable.fillSpawnTable(SpawnTable.java:118)        at net.sf.l2j.gameserver.datatables.SpawnTable.<init>(SpawnTable.java:56)        at net.sf.l2j.gameserver.datatables.SpawnTable.<clinit>(SpawnTable.java:40)        at net.sf.l2j.gameserver.instancemanager.FortManager.initNpcs(FortManager.java:265)        at net.sf.l2j.gameserver.instancemanager.FortManager.<init>(FortManager.java:73)        at net.sf.l2j.gameserver.model.entity.Fort.<init>(Fort.java:259)        at net.sf.l2j.gameserver.instancemanager.FortManager.load(FortManager.java:125)        at net.sf.l2j.gameserver.instancemanager.FortManager.getInstance(FortManager.java:55)        at net.sf.l2j.gameserver.model.zone.type.L2FortZone.setParameter(L2FortZone.java:61)        at net.sf.l2j.gameserver.instancemanager.ZoneManager.load(ZoneManager.java:324)        at net.sf.l2j.gameserver.instancemanager.ZoneManager.<init>(ZoneManager.java:68)        at net.sf.l2j.gameserver.instancemanager.ZoneManager.getInstance(ZoneManager.java:56)        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:224)        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:537)Caused by: java.lang.NullPointerException        at net.sf.l2j.gameserver.datatables.NpcWalkerRoutesTable.getRouteForNpc(NpcWalkerRoutesTable.java:111)        at net.sf.l2j.gameserver.ai.L2NpcWalkerAI.<init>(L2NpcWalkerAI.java:61)        at net.sf.l2j.gameserver.model.actor.instance.L2NpcWalkerInstance.<init>(L2NpcWalkerInstance.java:44)        ... 21 more  
Here is my Gameserver.java

Code: Select all

 /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. *  * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. *  * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver; import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.net.InetAddress;import java.net.UnknownHostException;import java.util.Calendar;import java.util.logging.Level;import java.util.logging.LogManager;import java.util.logging.Logger; import net.sf.l2j.Config;import net.sf.l2j.L2DatabaseFactory;import net.sf.l2j.Server;import net.sf.l2j.gameserver.cache.CrestCache;import net.sf.l2j.gameserver.cache.HtmCache;import net.sf.l2j.gameserver.communitybbs.Manager.ForumsBBSManager;import net.sf.l2j.gameserver.datatables.AccessLevels;import net.sf.l2j.gameserver.datatables.ArmorSetsTable;import net.sf.l2j.gameserver.datatables.AugmentationData;import net.sf.l2j.gameserver.datatables.CharNameTable;import net.sf.l2j.gameserver.datatables.CharTemplateTable;import net.sf.l2j.gameserver.datatables.ClanTable;import net.sf.l2j.gameserver.datatables.DoorTable;import net.sf.l2j.gameserver.datatables.EventDroplist;import net.sf.l2j.gameserver.datatables.ExtractableItemsData;import net.sf.l2j.gameserver.datatables.FishTable;import net.sf.l2j.gameserver.datatables.HelperBuffTable;import net.sf.l2j.gameserver.datatables.HennaTable;import net.sf.l2j.gameserver.datatables.HennaTreeTable;import net.sf.l2j.gameserver.datatables.HeroSkillTable;import net.sf.l2j.gameserver.datatables.ItemTable;import net.sf.l2j.gameserver.datatables.AdminCommandAccessRights;import net.sf.l2j.gameserver.datatables.LevelUpData;import net.sf.l2j.gameserver.datatables.MapRegionTable;import net.sf.l2j.gameserver.datatables.MerchantPriceConfigTable;import net.sf.l2j.gameserver.datatables.NobleSkillTable;import net.sf.l2j.gameserver.datatables.NpcBufferTable;import net.sf.l2j.gameserver.datatables.NpcTable;import net.sf.l2j.gameserver.datatables.NpcWalkerRoutesTable;import net.sf.l2j.gameserver.datatables.SkillSpellbookTable;import net.sf.l2j.gameserver.datatables.SkillTable;import net.sf.l2j.gameserver.datatables.SkillTreeTable;import net.sf.l2j.gameserver.datatables.SpawnTable;import net.sf.l2j.gameserver.datatables.StaticObjects;import net.sf.l2j.gameserver.datatables.SummonItemsData;import net.sf.l2j.gameserver.datatables.TeleportLocationTable;import net.sf.l2j.gameserver.geoeditorcon.GeoEditorListener;import net.sf.l2j.gameserver.handler.AdminCommandHandler;import net.sf.l2j.gameserver.handler.ChatHandler;import net.sf.l2j.gameserver.handler.ItemHandler;import net.sf.l2j.gameserver.handler.SkillHandler;import net.sf.l2j.gameserver.handler.UserCommandHandler;import net.sf.l2j.gameserver.handler.VoicedCommandHandler;import net.sf.l2j.gameserver.idfactory.IdFactory;import net.sf.l2j.gameserver.instancemanager.AuctionManager;import net.sf.l2j.gameserver.instancemanager.BoatManager;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.instancemanager.CastleManorManager;import net.sf.l2j.gameserver.instancemanager.ClanHallManager;import net.sf.l2j.gameserver.instancemanager.CoupleManager;import net.sf.l2j.gameserver.instancemanager.CursedWeaponsManager;import net.sf.l2j.gameserver.instancemanager.DayNightSpawnManager;import net.sf.l2j.gameserver.instancemanager.DimensionalRiftManager;import net.sf.l2j.gameserver.instancemanager.FortManager;import net.sf.l2j.gameserver.instancemanager.FortSiegeManager;import net.sf.l2j.gameserver.instancemanager.FourSepulchersManager;import net.sf.l2j.gameserver.instancemanager.GrandBossManager;import net.sf.l2j.gameserver.instancemanager.ItemsOnGroundManager;import net.sf.l2j.gameserver.instancemanager.MercTicketManager;import net.sf.l2j.gameserver.instancemanager.PetitionManager;import net.sf.l2j.gameserver.instancemanager.QuestManager;import net.sf.l2j.gameserver.instancemanager.RaidBossPointsManager;import net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager;import net.sf.l2j.gameserver.instancemanager.SiegeManager;import net.sf.l2j.gameserver.instancemanager.TransformationManager;import net.sf.l2j.gameserver.instancemanager.ZoneManager;import net.sf.l2j.gameserver.model.AutoChatHandler;import net.sf.l2j.gameserver.model.AutoSpawnHandler;import net.sf.l2j.gameserver.model.L2Manor;import net.sf.l2j.gameserver.model.L2PetDataTable;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.entity.Hero;import net.sf.l2j.gameserver.model.entity.TvTManager;import net.sf.l2j.gameserver.network.L2GameClient;import net.sf.l2j.gameserver.network.L2GamePacketHandler;import net.sf.l2j.gameserver.pathfinding.PathFinding;import net.sf.l2j.gameserver.script.faenor.FaenorScriptEngine;import net.sf.l2j.gameserver.scripting.CompiledScriptCache;import net.sf.l2j.gameserver.scripting.L2ScriptEngineManager;import net.sf.l2j.gameserver.taskmanager.KnownListUpdateTaskManager;import net.sf.l2j.gameserver.taskmanager.TaskManager;import net.sf.l2j.gameserver.util.DynamicExtension;import net.sf.l2j.gameserver.util.FloodProtector;import net.sf.l2j.status.Status;import net.sf.l2j.util.DeadLockDetector; import org.mmocore.network.SelectorConfig;import org.mmocore.network.SelectorThread; /** * This class ... *  * @version $Revision: 1.29.2.15.2.19 $ $Date: 2005/04/05 19:41:23 $ */public class GameServer{	private static final Logger _log = Logger.getLogger(GameServer.class.getName()); 	private final SelectorThread<L2GameClient> _selectorThread;	private final DeadLockDetector _deadDetectThread;	private final SkillTable _skillTable;	private final ItemTable _itemTable;	private final NpcTable _npcTable;	private final HennaTable _hennaTable;	private final IdFactory _idFactory;	public static GameServer gameServer;	private static ClanHallManager _cHManager;	private final Shutdown _shutdownHandler;	private final DoorTable _doorTable;	private final SevenSigns _sevenSignsEngine;	private final AutoChatHandler _autoChatHandler;	private final AutoSpawnHandler _autoSpawnHandler;	private LoginServerThread _loginThread;	private final HelperBuffTable _helperBuffTable;	private static Status _statusServer;	@SuppressWarnings("unused")	private final ThreadPoolManager _threadpools;	public static final Calendar dateTimeServerStarted = Calendar.getInstance(); 	public long getUsedMemoryMB()	{		return (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1048576;																				   // ;	} 	public SelectorThread<L2GameClient> getSelectorThread()	{		return _selectorThread;	} 	public DeadLockDetector getDeadLockDetectorThread()	{		return _deadDetectThread;	} 	public ClanHallManager getCHManager()	{		return _cHManager;	} 	public GameServer() throws Exception	{		long serverLoadStart = System.currentTimeMillis(); 		gameServer = this;		_log.finest("used mem:" + getUsedMemoryMB() + "MB"); 		if (Config.SERVER_VERSION != null)		{			_log.info("L2J Server Version:    " + Config.SERVER_VERSION);		}		if (Config.DATAPACK_VERSION != null)		{			_log.info("L2J Datapack Version:  " + Config.DATAPACK_VERSION);		}		_idFactory = IdFactory.getInstance(); 		if (!_idFactory.isInitialized())		{			_log.severe("Could not read object IDs from DB. Please Check Your Data.");			throw new Exception("Could not initialize the ID factory");		} 		_threadpools = ThreadPoolManager.getInstance(); 		new File(Config.DATAPACK_ROOT, "data/clans").mkdirs();		new File(Config.DATAPACK_ROOT, "data/crests").mkdirs(); 		// load script engines		L2ScriptEngineManager.getInstance(); 		// start game time control early		GameTimeController.getInstance(); 		// keep the references of Singletons to prevent garbage collection		CharNameTable.getInstance(); 		_skillTable = SkillTable.getInstance();		if (!_skillTable.isInitialized())		{			_log.severe("Could not find the extraced files. Please Check Your Data.");			throw new Exception("Could not initialize the skill table");		} 		_itemTable = ItemTable.getInstance();		if (!_itemTable.isInitialized())		{			_log.severe("Could not find the extraced files. Please Check Your Data.");			throw new Exception("Could not initialize the item table");		} 		// Load clan hall data before zone data and doors table		_cHManager = ClanHallManager.getInstance(); 		ExtractableItemsData.getInstance();		SummonItemsData.getInstance();		ZoneManager.getInstance();		MerchantPriceConfigTable.getInstance();		TradeController.getInstance(); 		if (Config.ALLOW_NPC_WALKERS)		{			NpcWalkerRoutesTable.getInstance().load();		} 		NpcBufferTable.getInstance(); 		RecipeController.getInstance(); 		SkillTreeTable.getInstance();		ArmorSetsTable.getInstance();		FishTable.getInstance();		SkillSpellbookTable.getInstance();		CharTemplateTable.getInstance();		NobleSkillTable.getInstance();		HeroSkillTable.getInstance(); 		// Call to load caches		HtmCache.getInstance();		CrestCache.getInstance();		ClanTable.getInstance();		CastleManager.getInstance();		FortManager.getInstance();		_npcTable = NpcTable.getInstance(); 		if (!_npcTable.isInitialized())		{			_log.severe("Could not find the extraced files. Please Check Your Data.");			throw new Exception("Could not initialize the npc table");		} 		_hennaTable = HennaTable.getInstance(); 		if (!_hennaTable.isInitialized())		{			throw new Exception("Could not initialize the Henna Table");		} 		HennaTreeTable.getInstance(); 		if (!_hennaTable.isInitialized())		{			throw new Exception("Could not initialize the Henna Tree Table");		} 		_helperBuffTable = HelperBuffTable.getInstance(); 		if (!_helperBuffTable.isInitialized())		{			throw new Exception("Could not initialize the Helper Buff Table");		} 		//GeoData.getInstance();		if (Config.GEODATA == 2)			PathFinding.getInstance(); 		//CastleManager.getInstance();		SiegeManager.getInstance();		//FortManager.getInstance();		FortSiegeManager.getInstance(); 		TeleportLocationTable.getInstance();		LevelUpData.getInstance();		L2World.getInstance();		SpawnTable.getInstance();		RaidBossSpawnManager.getInstance();		DayNightSpawnManager.getInstance().notifyChangeMode();		GrandBossManager.getInstance();		RaidBossPointsManager.init();		FourSepulchersManager.getInstance().init();		DimensionalRiftManager.getInstance();		Announcements.getInstance();		MapRegionTable.getInstance();		EventDroplist.getInstance(); 		_doorTable = DoorTable.getInstance();		StaticObjects.getInstance(); 		/** Load Manor data */		L2Manor.getInstance(); 		/** Load Manager */		AuctionManager.getInstance();		BoatManager.getInstance();		CastleManorManager.getInstance();		MercTicketManager.getInstance();		// PartyCommandManager.getInstance();		PetitionManager.getInstance();		QuestManager.getInstance();		TransformationManager.getInstance(); 		try		{			_log.info("Loading Server Scripts");			File scripts = new File(Config.DATAPACK_ROOT + "/data/scripts.cfg");			L2ScriptEngineManager.getInstance().executeScriptList(scripts);		}		catch (IOException ioe)		{			_log.severe("Failed loading scripts.cfg, no script going to be loaded");		}		try		{			CompiledScriptCache compiledScriptCache = L2ScriptEngineManager.getInstance().getCompiledScriptCache();			if (compiledScriptCache == null)			{				_log.info("Compiled Scripts Cache is disabled.");			}			else			{				compiledScriptCache.purge(); 				if (compiledScriptCache.isModified())				{					compiledScriptCache.save();					_log.info("Compiled Scripts Cache was saved.");				}				else				{					_log.info("Compiled Scripts Cache is up-to-date.");				}			} 		}		catch (IOException e)		{			_log.log(Level.SEVERE, "Failed to store Compiled Scripts Cache.", e);		}		QuestManager.getInstance().report();		TransformationManager.getInstance().report(); 		AugmentationData.getInstance();		if (Config.SAVE_DROPPED_ITEM)			ItemsOnGroundManager.getInstance(); 		if (Config.AUTODESTROY_ITEM_AFTER > 0		        || Config.HERB_AUTO_DESTROY_TIME > 0)			ItemsAutoDestroy.getInstance(); 		MonsterRace.getInstance(); 		_sevenSignsEngine = SevenSigns.getInstance();		SevenSignsFestival.getInstance();		_autoSpawnHandler = AutoSpawnHandler.getInstance();		_autoChatHandler = AutoChatHandler.getInstance(); 		// Spawn the Orators/Preachers if in the Seal Validation period.		_sevenSignsEngine.spawnSevenSignsNPC(); 		Olympiad.getInstance();		Hero.getInstance();		FaenorScriptEngine.getInstance();		// Init of a cursed weapon manager		CursedWeaponsManager.getInstance(); 		_log.config("AutoChatHandler: Loaded " + _autoChatHandler.size() + " handlers in total.");		_log.config("AutoSpawnHandler: Loaded " + _autoSpawnHandler.size() + " handlers in total."); 		AdminCommandHandler.getInstance();		ChatHandler.getInstance();		ItemHandler.getInstance();		SkillHandler.getInstance();		UserCommandHandler.getInstance();		VoicedCommandHandler.getInstance(); 		AccessLevels.getInstance();		AdminCommandAccessRights.getInstance(); 		if (Config.L2JMOD_ALLOW_WEDDING)			CoupleManager.getInstance(); 		TaskManager.getInstance(); 		GmListTable.getInstance(); 		// read pet stats from db		L2PetDataTable.getInstance().loadPetsData(); 		Universe.getInstance(); 		if (Config.ACCEPT_GEOEDITOR_CONN)			GeoEditorListener.getInstance(); 		_shutdownHandler = Shutdown.getInstance();		Runtime.getRuntime().addShutdownHook(_shutdownHandler); 		try		{			_doorTable.getDoor(24190001).openMe();			_doorTable.getDoor(24190002).openMe();			_doorTable.getDoor(24190003).openMe();			_doorTable.getDoor(24190004).openMe();			_doorTable.getDoor(23180001).openMe();			_doorTable.getDoor(23180002).openMe();			_doorTable.getDoor(23180003).openMe();			_doorTable.getDoor(23180004).openMe();			_doorTable.getDoor(23180005).openMe();			_doorTable.getDoor(23180006).openMe(); 			_doorTable.checkAutoOpen();		}		catch (NullPointerException e)		{			_log.warning("There is errors in your Door.csv file. Update door.csv");			if (Config.DEBUG)				e.printStackTrace();		} 		ForumsBBSManager.getInstance(); 		_log.config("IdFactory: Free ObjectID's remaining: "		        + IdFactory.getInstance().size()); 		// initialize the dynamic extension loader		try		{			DynamicExtension.getInstance();		}		catch (Exception ex)		{			_log.log(Level.WARNING, "DynamicExtension could not be loaded and initialized", ex);		} 		FloodProtector.getInstance();		TvTManager.getInstance();		KnownListUpdateTaskManager.getInstance();		if (Config.DEADLOCK_DETECTOR)		{			_deadDetectThread = new DeadLockDetector();			_deadDetectThread.setDaemon(true);			_deadDetectThread.start();		}		else			_deadDetectThread = null;		System.gc();		// maxMemory is the upper limit the jvm can use, totalMemory the size of		// the current allocation pool, freeMemory the unused memory in the		// allocation pool		long freeMem = (Runtime.getRuntime().maxMemory() - Runtime.getRuntime().totalMemory() + Runtime.getRuntime().freeMemory()) / 1048576;		long totalMem = Runtime.getRuntime().maxMemory() / 1048576;		_log.info("GameServer Started, free memory " + freeMem + " Mb of " + totalMem + " Mb"); 		_loginThread = LoginServerThread.getInstance();		_loginThread.start(); 		L2GamePacketHandler gph = new L2GamePacketHandler();		SelectorConfig<L2GameClient> sc = new SelectorConfig<L2GameClient>(null, null, gph, gph);		sc.setMaxSendPerPass(12);		sc.setSelectorSleepTime(20); 		_selectorThread = new SelectorThread<L2GameClient>(sc, gph, gph, null); 		InetAddress bindAddress = null;		if (!Config.GAMESERVER_HOSTNAME.equals("*"))		{			try			{				bindAddress = InetAddress.getByName(Config.GAMESERVER_HOSTNAME);			}			catch (UnknownHostException e1)			{				_log.severe("WARNING: The GameServer bind address is invalid, using all avaliable IPs. Reason: " + e1.getMessage()); 				if (Config.DEVELOPER)				{					e1.printStackTrace();				}			}		} 		try		{			_selectorThread.openServerSocket(bindAddress, Config.PORT_GAME);		}		catch (IOException e)		{			_log.severe("FATAL: Failed to open server socket. Reason: " + e.getMessage());			if (Config.DEVELOPER)			{				e.printStackTrace();			}			System.exit(1);		}		_selectorThread.start();		_log.config("Maximum Numbers of Connected Players: " + Config.MAXIMUM_ONLINE_USERS);		long serverLoadEnd = System.currentTimeMillis();		_log.info("Server Loaded in " + ((serverLoadEnd - serverLoadStart) / 1000) + " seconds");	} 	public static void main(String[] args) throws Exception	{		Server.serverMode = Server.MODE_GAMESERVER;		// Local Constants		final String LOG_FOLDER = "log"; // Name of folder for log file		final String LOG_NAME = "./log.cfg"; // Name of log file 		/*** Main ***/		// Create log folder		File logFolder = new File(Config.DATAPACK_ROOT, LOG_FOLDER);		logFolder.mkdir(); 		// Create input stream for log file -- or store file data into memory		InputStream is = new FileInputStream(new File(LOG_NAME));		LogManager.getLogManager().readConfiguration(is);		is.close(); 		// Initialize config		Config.load();		L2DatabaseFactory.getInstance();		gameServer = new GameServer(); 		if (Config.IS_TELNET_ENABLED)		{			_statusServer = new Status(Server.serverMode);			_statusServer.start();		}		else		{			_log.info("Telnet server is currently disabled.");		}	}} 
alehawk
Posts: 50
Joined: Wed Mar 24, 2010 10:42 pm

Re: Error during Startup

Post by alehawk »

I disabled walkers by using the general config and It will startup (I got to test if the fortsieges works) but I dont know why it cant fid the warlkers :(
hope
Posts: 1160
Joined: Thu Aug 30, 2007 5:17 pm

Re: Error during Startup

Post by hope »

9.NPC 31356 class not found

fix this problem at least it will be one less
Post Reply