Slick Forums

Discuss the Slick 2D Library
It is currently Sun Oct 20, 2019 9:12 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Dec 02, 2016 2:51 am 
Offline

Joined: Fri Dec 02, 2016 2:44 am
Posts: 2
Hello I have followed this github code and all looks well. I even added slick, slick-util, kryonet, lwjgl jars to my build path in eclipse, along with the natives for lwjgl.

https://github.com/schepan1/ms/tree/mas ... /main/java

But I am getting this error/exception and I have been looking online, but there are no solutions to it as of now. Can anyone help?

Code:
Exception in thread "main" java.lang.IllegalArgumentException: Unable to create serializer "com.esotericsoftware.kryo.serializers.FieldSerializer" for class: com.esotericsoftware.kryonet.FrameworkMessage$RegisterTCP
   at com.esotericsoftware.kryo.Kryo.newSerializer(Kryo.java:337)
   at com.esotericsoftware.kryo.Kryo.newDefaultSerializer(Kryo.java:316)
   at com.esotericsoftware.kryo.Kryo.getDefaultSerializer(Kryo.java:309)
   at com.esotericsoftware.kryo.Kryo.register(Kryo.java:353)
   at com.esotericsoftware.kryonet.KryoSerialization.<init>(KryoSerialization.java:33)
   at com.esotericsoftware.kryonet.KryoSerialization.<init>(KryoSerialization.java:25)
   at com.esotericsoftware.kryonet.Client.<init>(Client.java:75)
   at com.esotericsoftware.kryonet.Client.<init>(Client.java:57)
   at Client.PlayerClient.<init>(PlayerClient.java:44)
   at Client.PlayerClient.main(PlayerClient.java:128)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at com.esotericsoftware.kryo.Kryo.newSerializer(Kryo.java:324)
   ... 9 more
Caused by: java.lang.IncompatibleClassChangeError: Found interface org.objectweb.asm.MethodVisitor, but class was expected
   at com.esotericsoftware.reflectasm.FieldAccess.insertConstructor(FieldAccess.java:144)
   at com.esotericsoftware.reflectasm.FieldAccess.get(FieldAccess.java:109)
   at com.esotericsoftware.kryo.serializers.FieldSerializer.rebuildCachedFields(FieldSerializer.java:104)
   at com.esotericsoftware.kryo.serializers.FieldSerializer.<init>(FieldSerializer.java:50)
   ... 14 more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 93 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group