Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.concurrent.ConcurrentLinkedQueue cannot be cast to io.netty.channel.Channel #6

Open
ghost opened this issue Jun 4, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 4, 2015

Hi,

I have fully compiled and loaded your plugin on a 1.8.6 Spigot server. However, after the use of the /fp set or /fp multiset command, I get this error and results in no picture displayed on the item frames :

java.lang.ClassCastException: java.util.concurrent.ConcurrentLinkedQueue cannot be cast to io.netty.channel.Channel
at de.howaner.FramePicture.util.Utils.sendPacketFast(Utils.java:70) [Jackobo-Minecraft-Spigot-FramePicture.jar:?]
at de.howaner.FramePicture.util.PacketSender.run(PacketSender.java:19) [Jackobo-Minecraft-Spigot-FramePicture.jar:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) [minecraft_server.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [minecraft_server.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:726) [minecraft_server.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [minecraft_server.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [minecraft_server.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [minecraft_server.jar:git-Spigot-6a6b839-b0e81a4]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_75]

This line in the file Utils.java is the problem : "Channel channel = (Channel) field.get(netty);"

Have you a suggestion to solve this issue? I can test it too and send you a patch to add Spigot 1.8.6 support in your plugin if you want ;)

Here is the result after the use of the command : /fp multiset http://fc07.deviantart.net/fs70/f/2010/300/7/6/neko_girl_by_kaguyananbufan-d31m7re.jpg

2015-06-04_11 11 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants