Serializing objet Error

Hello, i’m begging you to help me plz. I have this to finish before midnight…

I have my classe HelloMessage who have an ArrayList<Player>.
Player contain 2 vector, and 2 arraylist <Vector3f>.

And i realy don’t know where is my error, plz help me. This is m error’s message:

Infos: Client registered:Connection[ id=0, reliable=NioEndpoint[1, java.nio.channels.SocketChannel[connected local=/ remote=/]], fast=UdpEndpoint[1, /] ]. juin 16, 2013 5:33:43 PM handleError Grave: Uncaught exception thrown in Thread[Headless Application Thread,5,main] java.lang.RuntimeException: Error serializing message at at at at mygame.ServerMain.simpleUpdate( at at at Caused by: Error writing object for field:private java.util.ArrayList mygame.HelloMessage.players at at at ... 6 more Caused by: Error writing object for field:private com.jme3.math.Vector3f mygame.PlayerAlex.pos at at at at ... 8 more Caused by: java.lang.NullPointerException at at ... 11 more

connection added1
juin 16, 2013 5:33:51 PM re[/java]gisterClient

Vector3f’s serializer does not allow null fields. So you can’t have null Vector3f fields.

I’d have fixed it but it has some backwards compatibility implications and most people don’t send null vectors I guess.

1 Like