L2JMobius

Free Users => Solved/Invalid Bug Reports => Topic started by: JkDev on October 08, 2020, 08:11:36 AM

Title: [BUG]java.nio.BufferUnderflowException
Post by: JkDev on October 08, 2020, 08:11:36 AM
Hi, I was with a friend doing boss raids when suddenly he throws the next error. Which crashes the server.

Code: [Select]
2020.10.08 03:26:01,463 SEVERE 298 org.l2jmobius.gameserver.network.clientpackets.GameClientPacket Client: [IP: 5.8.18.88] - Failed reading: [C] ProtocolVersion ; null java.nio.BufferUnderflowException
2020.10.08 03:26:24,416 INFO 89 org.l2jmobius.gameserver.taskmanager.tasks.TaskSevenSignsUpdate [GlobalTask] SevenSigns save launched.
2020.10.08 03:56:24,425 INFO 147 org.l2jmobius.gameserver.taskmanager.tasks.TaskSevenSignsUpdate [GlobalTask] SevenSigns save launched.
2020.10.08 03:56:39,845 SEVERE 298 org.l2jmobius.gameserver.network.clientpackets.GameClientPacket Client: [IP: 5.8.18.88] - Failed reading: [C] ProtocolVersion ; null java.nio.BufferUnderflowException
2020.10.08 04:26:24,431 INFO 74 org.l2jmobius.gameserver.taskmanager.tasks.TaskSevenSignsUpdate [GlobalTask] SevenSigns save launched.
2020.10.08 04:26:46,865 SEVERE 298 org.l2jmobius.gameserver.network.clientpackets.GameClientPacket Client: [IP: 5.8.18.88] - Failed reading: [C] ProtocolVersion ; null java.nio.BufferUnderflowException


Log: java0.txt (https://pastebin.com/MXwdP2qN)
Log: stdout.log (https://pastebin.com/wTQzqWKs)

From already thank you very much!
Title: Re: [BUG]java.nio.BufferUnderflowException
Post by: Mobius on October 08, 2020, 03:03:47 PM
Try this.
Code: [Select]
Index: java/org/l2jmobius/gameserver/network/clientpackets/ProtocolVersion.java
===================================================================
--- java/org/l2jmobius/gameserver/network/clientpackets/ProtocolVersion.java (revision 7672)
+++ java/org/l2jmobius/gameserver/network/clientpackets/ProtocolVersion.java (working copy)
@@ -30,7 +30,7 @@
  @Override
  protected void readImpl()
  {
- _version = readH();
+ _version = readD();
  }
 
  @Override
Title: Re: [BUG]java.nio.BufferUnderflowException
Post by: JkDev on October 08, 2020, 05:57:41 PM
Try this.
Code: [Select]
Index: java/org/l2jmobius/gameserver/network/clientpackets/ProtocolVersion.java
===================================================================
--- java/org/l2jmobius/gameserver/network/clientpackets/ProtocolVersion.java (revision 7672)
+++ java/org/l2jmobius/gameserver/network/clientpackets/ProtocolVersion.java (working copy)
@@ -30,7 +30,7 @@
  @Override
  protected void readImpl()
  {
- _version = readH();
+ _version = readD();
  }
 
  @Override

Checking, for now no errors found. Thank you, I will be informing you if I find more bugs!
Title: Re: [BUG]java.nio.BufferUnderflowException
Post by: JkDev on October 08, 2020, 06:52:22 PM
Sorry for the double posting, but a colleague wanted to enter the server and the following error has come up in the server console.

(https://i52.servimg.com/u/f52/12/98/31/84/descar11.png)

Try to change the minimum and maximum of the Protocol, but it still does not work, you are using the System that is provided.

Title: Re: [BUG]java.nio.BufferUnderflowException
Post by: Mobius on October 08, 2020, 09:24:12 PM
I use the system from readme.txt and do not have this issue.
Title: Re: [BUG]java.nio.BufferUnderflowException
Post by: JkDev on October 08, 2020, 09:27:35 PM
I use the system from readme.txt and do not have this issue.

Ok, I have already solved it. It was a customer error. Take it for granted. Thank you so much!
Title: Re: [BUG]java.nio.BufferUnderflowException
Post by: Mobius on October 09, 2020, 12:31:11 AM
Fixed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/8c0ca1444b5d15804d381fefbf094e0c2ac043a9