Jump to content
Sign in to follow this  
qwertyBOSSS

Ошибка в логах java.lang.NullPointerException

Recommended Posts

java.lang.NullPointerException
    at ru.j2dev.gameserver.model.instances.NpcInstance.mobBuffs(NpcInstance.java:381)
    at events.mobBuffs.mobBuffs$OnDeathListenerImpl.onDeath(mobBuffs.java:46)
    at ru.j2dev.gameserver.model.actor.listener.CharListenerList.lambda$onDeath$12(CharListenerList.java:93)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
    at ru.j2dev.gameserver.model.actor.listener.CharListenerList.onDeath(CharListenerList.java:93)
    at ru.j2dev.gameserver.model.Creature.onDeath(Creature.java:1171)
    at ru.j2dev.gameserver.model.instances.NpcInstance.onDeath(NpcInstance.java:318)
    at ru.j2dev.gameserver.model.instances.MonsterInstance.onDeath(MonsterInstance.java:223)
    at ru.j2dev.gameserver.model.Creature.doDie(Creature.java:1135)
    at ru.j2dev.gameserver.model.Creature.onReduceCurrentHp(Creature.java:2275)
    at ru.j2dev.gameserver.model.instances.NpcInstance.onReduceCurrentHp(NpcInstance.java:301)
    at ru.j2dev.gameserver.model.instances.MonsterInstance.onReduceCurrentHp(MonsterInstance.java:238)
    at ru.j2dev.gameserver.model.Creature.reduceCurrentHp(Creature.java:2250)
    at ru.j2dev.gameserver.model.instances.MonsterInstance.reduceCurrentHp(MonsterInstance.java:745)
    at ru.j2dev.gameserver.model.Creature.onHitTimer(Creature.java:2121)
    at ru.j2dev.gameserver.model.Player.onHitTimer(Player.java:2748)
    at ru.j2dev.gameserver.taskmanager.tasks.objecttasks.HitTask.runImpl(HitTask.java:62)
    at ru.j2dev.commons.threading.RunnableImpl.run(RunnableImpl.java:14)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)


и


java.nio.BufferUnderflowException
    at java.nio.Buffer.nextGetIndex(Buffer.java:506)
    at java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:361)
    at ru.j2dev.commons.net.nio.ReceivablePacket.readD(ReceivablePacket.java:25)
    at ru.j2dev.gameserver.network.lineage2.clientpackets.SendProtocolVersion.readImpl(SendProtocolVersion.java:45)
    at ru.j2dev.gameserver.network.lineage2.clientpackets.L2GameClientPacket.read(L2GameClientPacket.java:21)
    at ru.j2dev.commons.net.nio.impl.SelectorThread.parseClientPacket(SelectorThread.java:304)
    at ru.j2dev.commons.net.nio.impl.SelectorThread.tryReadPacket2(SelectorThread.java:265)
    at ru.j2dev.commons.net.nio.impl.SelectorThread.readPacket(SelectorThread.java:233)
    at ru.j2dev.commons.net.nio.impl.SelectorThread.run(SelectorThread.java:144)


Я понамаю что где-то что то не так с мобом то ли бафом, может кто подскажет точнее?

Share this post


Link to post
Share on other sites

Ну так тебе прямо указывают где проблема, вплоть до строки в классе.

1. NpcInstance.java:381 - NPE на 381 строке класса, что-то в этой строке равно null

2. SendProtocolVersion.java:45 - попытка в 45 строке класса прочесть данные за пределами того, что пришло в пакете, т.е. проще говоря считать больше байт, чем пришло. скорее всего криво сформированный пакет от клиента или вобще мусор вместо данных в нем.

Edited by Gaikotsu

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...