1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Invalid Packet63 Crash(not fixed)

Discussion in 'Bug Reports' started by microgeek, May 18, 2013.

Thread Status:
Not open for further replies.
  1. microgeek

    microgeek New Member

    Using build 16
    Code (text):
    io.netty.handler.codec.DecoderException: java.lang.NullPointerException
            at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:459)
            at io.netty.handler.codec.ByteToMessageDecoder.inboundBufferUpdated(ByteToMessageDecoder.java:69)
            at io.netty.channel.ChannelInboundByteHandlerAdapter.inboundBufferUpdated(ChannelInboundByteHandlerAdapter.java:51)
            at io.netty.channel.DefaultChannelHandlerContext.invokeInboundBufferUpdated(DefaultChannelHandlerContext.java:896)
            at io.netty.channel.DefaultChannelHandlerContext.fireInboundBufferUpdated0(DefaultChannelHandlerContext.java:864)
            at io.netty.channel.DefaultChannelHandlerContext.fireInboundBufferUpdated(DefaultChannelHandlerContext.java:843)
            at io.netty.handler.timeout.ReadTimeoutHandler.inboundBufferUpdated(ReadTimeoutHandler.java:149)
            at io.netty.channel.DefaultChannelHandlerContext.invokeInboundBufferUpdated(DefaultChannelHandlerContext.java:917)
            at io.netty.channel.DefaultChannelHandlerContext.fireInboundBufferUpdated0(DefaultChannelHandlerContext.java:864)
            at io.netty.channel.DefaultChannelHandlerContext.fireInboundBufferUpdated(DefaultChannelHandlerContext.java:843)
            at io.netty.channel.DefaultChannelPipeline.fireInboundBufferUpdated(DefaultChannelPipeline.java:1017)
            at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:115)
            at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:460)
            at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:424)
            at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:360)
            at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:103)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.NullPointerException
            at lilypad.server.proxy.packet.GenericPacketCodec.decode(GenericPacketCodec.java:24)
            at lilypad.server.proxy.packet.GenericPacketCodec.decode(GenericPacketCodec.java:14)
            at lilypad.server.proxy.packet.GenericPacketCodec.decode(GenericPacketCodec.java:7)
            at lilypad.packet.common.PacketDecoder.decode(PacketDecoder.java:16)
            at lilypad.packet.common.PacketDecoder.decode(PacketDecoder.java:7)
            at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:404)
            ... 16 more
    io.netty.handler.codec.DecoderException: java.lang.NullPointerException
            at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:459)
            at io.netty.handler.codec.ReplayingDecoder.channelInactive(ReplayingDecoder.java:371)
            at io.netty.channel.DefaultChannelHandlerContext.invokeChannelInactive(DefaultChannelHandlerContext.java:752)
            at io.netty.channel.DefaultChannelHandlerContext.fireChannelInactive(DefaultChannelHandlerContext.java:738)
            at io.netty.channel.ChannelStateHandlerAdapter.channelInactive(ChannelStateHandlerAdapter.java:69)
            at io.netty.handler.timeout.ReadTimeoutHandler.channelInactive(ReadTimeoutHandler.java:143)
            at io.netty.channel.DefaultChannelHandlerContext.invokeChannelInactive(DefaultChannelHandlerContext.java:752)
            at io.netty.channel.DefaultChannelHandlerContext.access$1600(DefaultChannelHandlerContext.java:36)
            at io.netty.channel.DefaultChannelHandlerContext$6.run(DefaultChannelHandlerContext.java:743)
            at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:276)
            at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:365)
            at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:103)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.NullPointerException
            at lilypad.server.proxy.packet.GenericPacketCodec.decode(GenericPacketCodec.java:24)
            at lilypad.server.proxy.packet.GenericPacketCodec.decode(GenericPacketCodec.java:14)
            at lilypad.server.proxy.packet.GenericPacketCodec.decode(GenericPacketCodec.java:7)
            at lilypad.packet.common.PacketDecoder.decode(PacketDecoder.java:16)
            at lilypad.packet.common.PacketDecoder.decode(PacketDecoder.java:7)
            at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:404)
            ... 12 more
  2. microgeek

    microgeek New Member

    I'm using the class I wrote below, it works fine without LilyPad.
    Code (text):
    package me.microgeek.plugins.backend.packets;
     
    import org.bukkit.entity.Player;
     
    import me.microgeek.plugins.backend.utilities.ReflectionUtilities;
     
    public class FauxPacket {
     
        private String name;
        private Object nativePacket;
     
        public FauxPacket(String name) {
            this.name = name;
            try {
                nativePacket = Class.forName(ReflectionUtilities.getNMSPackage() + "." + name).getConstructor().newInstance();
            }catch(Exception e) {
                e.printStackTrace();
            }
        }
     
        public String getName() {
            return name;
        }
     
        public Object getPacket() {
            return nativePacket;
        }
     
        public void sendPacketToPlayer(Player player) {
            PacketManager.sendPacketToPlayer(player, nativePacket);
        }
       
        public void sendPacketToServer(Player player) {
            PacketManager.recivePacketFromPlayer(player, nativePacket);
        }
       
        public FauxPacket setVariable(String name, Object value) {
            try {
                ReflectionUtilities.setValue(nativePacket, name, value);
            }catch(Exception e) {
                System.err.println("Could not find variable " + name + " in class " + nativePacket.getClass().getName());
            }
            return this;
        }
    }
     
  3. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Build 16 of AllInOne is not the build where the patch was made. Build 17 works fine.
Thread Status:
Not open for further replies.

Share This Page