Strange exceptions

kniffo80
Posts: 1
Joined: February 17th, 2016, 1:52 pm

Strange exceptions

Postby kniffo80 » February 17th, 2016, 3:27 pm

I just got the code from the latest release (0.0.3-preR3) and changed the sources to support 0.13.2 as PE client. Now, when i connect to the proxy with the MCPE client, i get a bunch of interesting exceptions:

16:18:48 [WARNUNG] java.lang.ClassCastException: java.lang.Byte cannot be cast to org.spacehq.mc.protocol.data.game.ItemStack
16:18:48 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCEntityMetadataPacketTranslator.translate(PCEntityMetadataPacketTranslator.java:37)
16:18:48 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCEntityMetadataPacketTranslator.translate(PCEntityMetadataPacketTranslator.java:25)
16:18:48 [WARNUNG] at org.dragonet.proxy.network.PacketTranslatorRegister.translateToPE(PacketTranslatorRegister.java:135)
16:18:48 [WARNUNG] at org.dragonet.proxy.network.DownstreamSession$1.packetReceived(DownstreamSession.java:100)
16:18:48 [WARNUNG] at org.spacehq.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:50)
16:18:48 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession.callEvent(TcpSession.java:131)
16:18:48 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession$3.run(TcpSession.java:324)
16:18:48 [WARNUNG] at java.lang.Thread.run(Thread.java:745)


or

16:18:49 [WARNUNG] java.lang.IllegalAccessException: Class org.dragonet.proxy.network.translator.pc.PCPlaySoundPacketTranslator can not access a member of class org.spacehq.mc.protocol.data.game.values.world.GenericSound with modifiers "private static final"
16:18:49 [WARNUNG] at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
16:18:49 [WARNUNG] at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
16:18:49 [WARNUNG] at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
16:18:49 [WARNUNG] at java.lang.reflect.Field.get(Field.java:390)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCPlaySoundPacketTranslator.translate(PCPlaySoundPacketTranslator.java:34)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCPlaySoundPacketTranslator.translate(PCPlaySoundPacketTranslator.java:24)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.PacketTranslatorRegister.translateToPE(PacketTranslatorRegister.java:135)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.DownstreamSession$1.packetReceived(DownstreamSession.java:100)
16:18:49 [WARNUNG] at org.spacehq.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:50)
16:18:49 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession.callEvent(TcpSession.java:131)
16:18:49 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession$3.run(TcpSession.java:324)
16:18:49 [WARNUNG] at java.lang.Thread.run(Thread.java:745)


My self-hosted minecraft server is version 1.8.9 and runs in survival mode.

I can help out a little bit (if i have time). But basically, i don't know the project that good for now - especially the libraries used by the proxy.

Are you aware of this? Is this a well known bug?

DefinitlyEvil
Site Admin
Posts: 38
Joined: February 4th, 2016, 4:13 am

Re: Strange exceptions

Postby DefinitlyEvil » February 19th, 2016, 5:29 am

kniffo80 wrote:I just got the code from the latest release (0.0.3-preR3) and changed the sources to support 0.13.2 as PE client. Now, when i connect to the proxy with the MCPE client, i get a bunch of interesting exceptions:

16:18:48 [WARNUNG] java.lang.ClassCastException: java.lang.Byte cannot be cast to org.spacehq.mc.protocol.data.game.ItemStack
16:18:48 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCEntityMetadataPacketTranslator.translate(PCEntityMetadataPacketTranslator.java:37)
16:18:48 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCEntityMetadataPacketTranslator.translate(PCEntityMetadataPacketTranslator.java:25)
16:18:48 [WARNUNG] at org.dragonet.proxy.network.PacketTranslatorRegister.translateToPE(PacketTranslatorRegister.java:135)
16:18:48 [WARNUNG] at org.dragonet.proxy.network.DownstreamSession$1.packetReceived(DownstreamSession.java:100)
16:18:48 [WARNUNG] at org.spacehq.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:50)
16:18:48 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession.callEvent(TcpSession.java:131)
16:18:48 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession$3.run(TcpSession.java:324)
16:18:48 [WARNUNG] at java.lang.Thread.run(Thread.java:745)


or

16:18:49 [WARNUNG] java.lang.IllegalAccessException: Class org.dragonet.proxy.network.translator.pc.PCPlaySoundPacketTranslator can not access a member of class org.spacehq.mc.protocol.data.game.values.world.GenericSound with modifiers "private static final"
16:18:49 [WARNUNG] at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
16:18:49 [WARNUNG] at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
16:18:49 [WARNUNG] at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
16:18:49 [WARNUNG] at java.lang.reflect.Field.get(Field.java:390)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCPlaySoundPacketTranslator.translate(PCPlaySoundPacketTranslator.java:34)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.translator.pc.PCPlaySoundPacketTranslator.translate(PCPlaySoundPacketTranslator.java:24)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.PacketTranslatorRegister.translateToPE(PacketTranslatorRegister.java:135)
16:18:49 [WARNUNG] at org.dragonet.proxy.network.DownstreamSession$1.packetReceived(DownstreamSession.java:100)
16:18:49 [WARNUNG] at org.spacehq.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:50)
16:18:49 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession.callEvent(TcpSession.java:131)
16:18:49 [WARNUNG] at org.spacehq.packetlib.tcp.TcpSession$3.run(TcpSession.java:324)
16:18:49 [WARNUNG] at java.lang.Thread.run(Thread.java:745)


My self-hosted minecraft server is version 1.8.9 and runs in survival mode.

I can help out a little bit (if i have time). But basically, i don't know the project that good for now - especially the libraries used by the proxy.

Are you aware of this? Is this a well known bug?

Yes bud, these errors were fixed almost years ago and already fixed in the master code base but we're currently updating for a new feature so it will come out a bit later. PS: I'm busy until July. ;P
Thanks or ur contribution anyways.


Return to “Bugs Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest