Jump to content
  • 0

[HELP] NPE Error With Hitman Event of Setekh


Question

Posted

Well , I've tried to adapt Hitman Event From Gracia Final to Interlude without any problem.

i compiled my serverpack and then i logged in to test it, i set the bounty to my 2nd char successfully , but when i tried to kill my 2nd char with my 1st char i get an NPE Error on my gs console, and IG i get no adena reward and no msg that my target was assasinated or sth.

i tried a lot of things but nothing worked.

 

something that might help :

 

NPE error on gs ( ffs ) : java.lang.NullPointerException

 

Error on .log file : 2010.06.29 13:14:44,390 SEVERE 13 net.sf.l2j.gameserver.model.L2Character java.lang.NullPointerException

 

Recommended Posts

  • 0
Posted

You mean this one?


2010.06.29 13:03:17,562	INFO	10	net.sf.l2j.Config	loading gameserver config
2010.06.29 13:03:17,718	INFO	10	com.mchange.v2.log.MLog	MLog clients using java 1.4+ standard logging.
2010.06.29 13:03:17,984	INFO	10	com.mchange.v2.c3p0.C3P0Registry	Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
2010.06.29 13:03:18,390	INFO	10	com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource	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 -> 1hge1368910e4l38146y00z|982589, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge1368910e4l38146y00z|982589, idleConnectionTestPeriod -> 3600, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://localhost/l2jdb, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, 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 ]
2010.06.29 13:03:18,421	INFO	10	net.sf.l2j.gameserver.GameServer	L2J Server Version:    108:118M
2010.06.29 13:03:18,421	INFO	10	net.sf.l2j.gameserver.GameServer	L2J Datapack Version:  104:124M
2010.06.29 13:03:18,468	INFO	10	net.sf.l2j.gameserver.idfactory.IdFactory	Updated characters online status.
2010.06.29 13:03:18,562	INFO	10	net.sf.l2j.gameserver.idfactory.IdFactory	Cleaned 0 elements from database.
2010.06.29 13:03:18,734	INFO	10	net.sf.l2j.gameserver.idfactory.BitSetIDFactory	IDFactory: 102912 id's available.
2010.06.29 13:03:19,828	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	SkillTreeTable: Loaded 35881 skills.
2010.06.29 13:03:20,031	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	FishingSkillTreeTable: Loaded 109 general skills.
2010.06.29 13:03:20,031	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	DwarvenSkillTreeTable: Loaded 8 dwarven skills.
2010.06.29 13:03:20,031	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	EnchantSkillTreeTable: Loaded 13769 enchant skills.
2010.06.29 13:03:20,031	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	PledgeSkillTreeTable: Loaded 64 pledge skills
2010.06.29 13:03:22,546	CONFIG	10	net.sf.l2j.gameserver.datatables.ItemTable	ItemTable: Loaded 1014 Armors.
2010.06.29 13:03:22,562	CONFIG	10	net.sf.l2j.gameserver.datatables.ItemTable	ItemTable: Loaded 6884 Items.
2010.06.29 13:03:22,812	CONFIG	10	net.sf.l2j.gameserver.datatables.ItemTable	ItemTable: Loaded 1313 Weapons.
2010.06.29 13:03:23,312	CONFIG	10	net.sf.l2j.gameserver.TradeController	TradeController: Loaded 526 Buylists.
2010.06.29 13:03:23,312	CONFIG	10	net.sf.l2j.gameserver.TradeController	TradeController: Loaded 120 Limited Buylists.
2010.06.29 13:03:23,343	INFO	10	net.sf.l2j.gameserver.datatables.SpawnTable	Initializing Walkers Routes Table.
2010.06.29 13:03:23,359	INFO	10	net.sf.l2j.gameserver.datatables.SpawnTable	WalkerRoutesTable: Loaded 167 Npc Walker Routes.
2010.06.29 13:03:23,375	CONFIG	10	net.sf.l2j.gameserver.RecipeController	RecipeController: Loaded 871 Recipes.
2010.06.29 13:03:23,390	INFO	10	net.sf.l2j.gameserver.datatables.BufferBuffTemplate	BufferBuffTemplate: Loaded 4 List(s)
2010.06.29 13:03:23,390	CONFIG	10	net.sf.l2j.gameserver.datatables.ArmorSetsTable	ArmorSetsTable: Loaded 51 armor sets.
2010.06.29 13:03:23,406	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	FishTable: Loaded 270 Fishes.
2010.06.29 13:03:23,406	CONFIG	10	net.sf.l2j.gameserver.datatables.ClanTable	Restored 0 clans from the database.
2010.06.29 13:03:23,421	CONFIG	10	net.sf.l2j.gameserver.datatables.CharTemplateTable	CharTemplateTable: Loaded 89 Character Templates.
2010.06.29 13:03:23,421	INFO	10	net.sf.l2j.gameserver.datatables.MaxCheatersTable	MaxCheatersTable Loaded: 5 npc to pc entry(s)
2010.06.29 13:03:23,421	CONFIG	10	net.sf.l2j.gameserver.datatables.SkillTreeTable	SkillSpellbookTable: Loaded 334 Spellbooks.
2010.06.29 13:03:23,421	INFO	10	net.sf.l2j.gameserver.cache.HtmCache	Cache[html]: Running lazy cache
2010.06.29 13:03:23,453	INFO	10	net.sf.l2j.gameserver.cache.CrestCache	Cache[Crest]: 0,000MB on 0 files loaded. (Forget Time: 300s , Capacity: 50)
2010.06.29 13:03:24,296	CONFIG	10	net.sf.l2j.gameserver.datatables.NpcTable	NpcTable: Loaded 6526 Npc Templates.
2010.06.29 13:03:24,687	CONFIG	10	net.sf.l2j.gameserver.datatables.NpcTable	NpcTable: Loaded 439 Minions.
2010.06.29 13:03:24,687	CONFIG	10	net.sf.l2j.gameserver.datatables.HennaTable	HennaTable: Loaded 180 Templates.
2010.06.29 13:03:24,750	CONFIG	10	net.sf.l2j.gameserver.datatables.HennaTreeTable	HennaTreeTable: Loaded 7128 Henna Tree Templates.
2010.06.29 13:03:24,750	CONFIG	10	net.sf.l2j.gameserver.datatables.HennaTable	Helper Buff Table: Loaded 14 Templates.
2010.06.29 13:03:24,750	INFO	10	net.sf.l2j.gameserver.GeoData	Geodata Engine: Disabled.
2010.06.29 13:03:24,812	CONFIG	10	net.sf.l2j.gameserver.model.L2World	L2World: Setting up World Regions
2010.06.29 13:03:24,859	CONFIG	10	net.sf.l2j.gameserver.model.L2World	L2World: (87 by 128) World Region Grid set up.
2010.06.29 13:03:24,890	CONFIG	10	net.sf.l2j.gameserver.datatables.TeleportLocationTable	TeleportLocationTable: Loaded 682 Teleport Location Templates.
2010.06.29 13:03:24,890	CONFIG	10	net.sf.l2j.gameserver.datatables.LevelUpData	LevelUpData: Loaded 89 Character Level Up Templates.
2010.06.29 13:03:24,906	INFO	10	net.sf.l2j.gameserver.datatables.ZoneData	Loading zones...
2010.06.29 13:03:25,062	INFO	10	net.sf.l2j.gameserver.instancemanager.TownManager	Initializing TownManager
2010.06.29 13:03:25,750	INFO	10	net.sf.l2j.gameserver.datatables.ZoneData	Done: loaded 111 zones.
2010.06.29 13:03:31,562	INFO	10	net.sf.l2j.gameserver.instancemanager.DayNightSpawnManager	DayNightSpawnManager: Day/Night handler initialised
2010.06.29 13:03:32,750	CONFIG	10	net.sf.l2j.gameserver.datatables.SpawnTable	SpawnTable: Loaded 39422 Npc Spawn Locations.
2010.06.29 13:03:32,843	INFO	10	net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager	RaidBossSpawnManager: Loaded 179 Instances
2010.06.29 13:03:32,843	INFO	10	net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager	RaidBossSpawnManager: Scheduled 0 Instances
2010.06.29 13:03:32,843	INFO	10	net.sf.l2j.gameserver.instancemanager.DayNightSpawnManager	DayNightSpawnManager: Deleted 0 night creatures
2010.06.29 13:03:32,859	INFO	10	net.sf.l2j.gameserver.instancemanager.DayNightSpawnManager	DayNightSpawnManager: Spawning 232 day creatures
2010.06.29 13:03:32,859	INFO	10	net.sf.l2j.gameserver.instancemanager.DimensionalRiftManager	DimensionalRiftManager: Loaded 7 room types with 56 rooms.
2010.06.29 13:03:32,875	INFO	10	net.sf.l2j.gameserver.instancemanager.DimensionalRiftManager	DimensionalRiftManager: Loaded 462 dimensional rift spawns, 0 errors.
2010.06.29 13:03:32,875	CONFIG	10	net.sf.l2j.gameserver.Announcements	Announcements: Loaded 3 Announcements.
2010.06.29 13:03:32,875	INFO	10	net.sf.l2j.gameserver.model.L2Manor	ManorManager: Loaded 256 seeds
2010.06.29 13:03:32,953	INFO	10	net.sf.l2j.gameserver.instancemanager.CastleManorManager	Initializing CastleManorManager
2010.06.29 13:03:32,953	INFO	10	net.sf.l2j.gameserver.instancemanager.CastleManorManager	Manor System: Manor refresh updated
2010.06.29 13:03:32,968	INFO	10	net.sf.l2j.gameserver.instancemanager.CastleManorManager	Manor System: Manor period approve updated
2010.06.29 13:03:32,968	INFO	10	net.sf.l2j.gameserver.instancemanager.CastleManorManager	Manor System: New Schedule for period approve @ Wed Jun 30 06:00:32 EEST 2010
2010.06.29 13:03:48,500	INFO	10	net.sf.l2j.gameserver.model.entity.events.Hitman	Hitman: Loaded 0 Assassination Target(s)
2010.06.29 13:03:48,500	INFO	10	net.sf.l2j.gameserver.datatables.AugmentationData	Initializing AugmentationData.
2010.06.29 13:03:48,515	INFO	10	net.sf.l2j.gameserver.datatables.AugmentationData	AugmentationData: Loaded: 52 augmentation stats.
2010.06.29 13:03:48,515	INFO	10	net.sf.l2j.gameserver.datatables.AugmentationData	AugmentationData: Loaded: 82 active, 21 passive and 75 chance skills
2010.06.29 13:03:48,531	WARNING	10	net.sf.l2j.gameserver.datatables.DoorTable	Searching clan halls doors:
2010.06.29 13:03:48,593	CONFIG	10	net.sf.l2j.gameserver.datatables.DoorTable	DoorTable: Loaded 548 Door Templates.
2010.06.29 13:03:48,593	CONFIG	10	net.sf.l2j.gameserver.datatables.StaticObjects	StaticObject: Loaded 29 StaticObject Templates.
2010.06.29 13:03:48,640	INFO	10	net.sf.l2j.gameserver.SevenSigns	SevenSigns: Currently in the Competition (Quest Event) period!
2010.06.29 13:03:48,640	INFO	10	net.sf.l2j.gameserver.SevenSigns	SevenSigns: The Seal of Avarice remains unclaimed.
2010.06.29 13:03:48,640	INFO	10	net.sf.l2j.gameserver.SevenSigns	SevenSigns: The Seal of Gnosis remains unclaimed.
2010.06.29 13:03:48,640	INFO	10	net.sf.l2j.gameserver.SevenSigns	SevenSigns: The Seal of Strife remains unclaimed.
2010.06.29 13:03:48,640	INFO	10	net.sf.l2j.gameserver.SevenSigns	SevenSigns: The competition, if the current trend continues, will end in a tie this week.
2010.06.29 13:03:48,640	INFO	10	net.sf.l2j.gameserver.SevenSigns	SevenSigns: Next period begins in 6 days, 4 hours and 56 mins.
2010.06.29 13:03:48,656	INFO	10	net.sf.l2j.gameserver.SevenSignsFestival	SevenSignsFestival: The first Festival of Darkness cycle begins in 2 minute(s).
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Loading Olympiad System....
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Currently in Olympiad Period
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Period Ends....
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: In 18 days, 22 hours and 56 mins.
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Next Weekly Change is in....
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: 7 days, 0 hours and 0 mins.
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Loaded 0 Nobles
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Competition Period Starts in 0 days, 4 hours and 57 mins.
2010.06.29 13:03:48,765	INFO	10	net.sf.l2j.gameserver.model.Olympiad.Olympiad	Olympiad System: Event starts/started : Tue Jun 29 18:00:48 EEST 2010
2010.06.29 13:03:48,781	INFO	10	net.sf.l2j.gameserver.model.entity.Hero	Hero System: Loaded 0 Heroes.
2010.06.29 13:03:48,781	INFO	10	net.sf.l2j.gameserver.model.entity.Hero	Hero System: Loaded 0 all time Heroes.
2010.06.29 13:03:48,859	WARNING	10	net.sf.l2j.gameserver.script.faenor.FaenorEventParser	Event ID: (Valentines Event) has passed... Ignored.
2010.06.29 13:03:48,875	INFO	10	net.sf.l2j.gameserver.instancemanager.CursedWeaponsManager	Initializing CursedWeaponsManager
2010.06.29 13:03:50,140	INFO	10	net.sf.l2j.gameserver.instancemanager.CursedWeaponsManager	Loaded : 2 cursed weapon(s).
2010.06.29 13:03:50,140	CONFIG	10	net.sf.l2j.gameserver.GameServer	AutoChatHandler: Loaded 32 handlers in total.
2010.06.29 13:03:50,140	CONFIG	10	net.sf.l2j.gameserver.GameServer	AutoSpawnHandler: Loaded 129 handlers in total.
2010.06.29 13:03:50,156	CONFIG	10	net.sf.l2j.gameserver.GameServer	ItemHandler: Loaded 2011 handlers.
2010.06.29 13:03:50,187	CONFIG	10	net.sf.l2j.gameserver.GameServer	SkillHandler: Loaded 71 handlers.
2010.06.29 13:03:50,250	CONFIG	10	net.sf.l2j.gameserver.GameServer	AdminCommandHandler: Loaded 350 handlers.
2010.06.29 13:03:50,250	CONFIG	10	net.sf.l2j.gameserver.GameServer	UserCommandHandler: Loaded 14 handlers.
2010.06.29 13:03:50,265	CONFIG	10	net.sf.l2j.gameserver.GameServer	VoicedCommandHandler: Loaded 10 handlers.
2010.06.29 13:03:50,265	INFO	10	net.sf.l2j.gameserver.instancemanager.CoupleManager	L2JMOD: Initializing CoupleManager
2010.06.29 13:03:50,265	INFO	10	net.sf.l2j.gameserver.instancemanager.CoupleManager	Loaded: 0 couples(s)
2010.06.29 13:03:50,406	CONFIG	10	net.sf.l2j.gameserver.GameServer	IdFactory: Free ObjectID's remaining: 1879004508
2010.06.29 13:03:50,406	INFO	10	net.sf.l2j.gameserver.util.FloodProtector	Initializing FloodProtector
2010.06.29 13:03:51,625	INFO	10	net.sf.l2j.gameserver.GameServer	GameServer Started, free memory 709 Mb of 989 Mb
2010.06.29 13:03:51,625	INFO	11	net.sf.l2j.gameserver.LoginServerThread	Connecting to login on 127.0.0.1:9014
2010.06.29 13:03:51,796	CONFIG	10	net.sf.l2j.gameserver.GameServer	Maximum Numbers of Connected Players: 1000
2010.06.29 13:03:52,078	INFO	11	net.sf.l2j.gameserver.LoginServerThread	Registered on login as Server 1 : Overdose
2010.06.29 13:05:55,703	INFO	12	net.sf.l2j.gameserver.instancemanager.CrownManager	CrownManager: initialized
2010.06.29 13:14:44,390	SEVERE	13	net.sf.l2j.gameserver.model.L2Character	java.lang.NullPointerException

  • 0
Posted

java.lang.NullPointerException come when you call e.getMessage();

 

if theres no any, add your own try/catch block and print the full stack trace

  • 0
Posted

java.lang.NullPointerException come when you call e.getMessage();

 

if theres no any, add your own try/catch block and print the full stack trace

 

it hasnt any

  • 0
Posted

it hasnt any

 

So do it as he said, add your own try/catch block and print the full stack trace.

  • 0
Posted

your problem is the doDie call its wrong

 

try this one

 

if(Config.ALLOW_HITMAN_GDE)

Hitman.getInstance().onDeath((L2Character)pk, this);

 

problem was in the doDie method the killer is L2Character not L2PcInstance so the correct method is Hitman.getInstance().onDeath(L2Character killer, L2PcInstance victim)

  • 0
Posted

your problem is the doDie call its wrong

 

try this one

 

if(Config.ALLOW_HITMAN_GDE)

Hitman.getInstance().onDeath((L2Character)pk, this);

 

problem was in the doDie method the killer is L2Character not L2PcInstance so the correct method is Hitman.getInstance().onDeath(L2Character killer, L2PcInstance victim)

 

ops sorry typo

 

Hitman.getInstance().onDeath((L2Character)killer, this); use killer for it not pk :)

  • 0
Posted

ops sorry typo

 

Hitman.getInstance().onDeath((L2Character)killer, this); use killer for it not pk :)

 

well this is goin to need a change to OnDeath of event.

and then addadena and other things wont work.

shouldnt i do it like this ?

 

 

if(Config.ALLOW_HITMAN_GDE)

Hitman.getInstance().onDeath((L2PcInstance)killer, this);

  • 0
Posted

well this is goin to need a change to OnDeath of event.

and then addadena and other things wont work.

shouldnt i do it like this ?

 

 

if(Config.ALLOW_HITMAN_GDE)

Hitman.getInstance().onDeath((L2PcInstance)killer, this);

 

jesus christ...understanding knowledge -1...if you have a method onDeath(L2PcInstance killer, L2PcInstance victim) and you need to call it in doDie method onDeath(L2Character killer, L2PcInstance victim) you DONT cast the killer which is alredy the pcinstance to pcinstance but you cast it to L2Character because in the doDie method killer is the L2Character...

  • 0
Posted

jesus christ...understanding knowledge -1...if you have a method onDeath(L2PcInstance killer, L2PcInstance victim) and you need to call it in doDie method onDeath(L2Character killer, L2PcInstance victim) you DONT cast the killer which is alredy the pcinstance to pcinstance but you cast it to L2Character because in the doDie method killer is the L2Character...

 

i got errors when i do it like this ..

 

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...