Could not connect to the metaserver

Hi,

I've just setup the server on a Windows Vista machine and when I restart the Shoddy Battle service I see the following message in the wrapper file:

=======================================================
INFO | jvm 1 | 2010/07/22 18:57:17 | Running server...
INFO | jvm 1 | 2010/07/22 18:57:17 | Opening a TCP/IP socket on port 30001...
INFO | jvm 1 | 2010/07/22 18:57:17 | Opening a UDP socket on port 30001...
INFO | jvm 1 | 2010/07/22 18:57:17 | Posting server to the metaserver...
INFO | jvm 1 | 2010/07/22 18:57:17 | Starting chat logging thread...
INFO | jvm 1 | 2010/07/22 18:57:17 | Server is running.
INFO | jvm 1 | 2010/07/22 18:57:17 | Next rating update in 4 hours, 33 minutes.
INFO | jvm 1 | 2010/07/22 18:57:18 | Could not connect to the metaserver.
INFO | jvm 1 | 2010/07/22 18:57:18 | Exception in thread "Thread-5" java.lang.NullPointerException: null address || null buffer
INFO | jvm 1 | 2010/07/22 18:57:18 | at java.net.PlainDatagramSocketImpl.send(Native Method)
INFO | jvm 1 | 2010/07/22 18:57:18 | at java.net.DatagramSocket.send(Unknown Source)
INFO | jvm 1 | 2010/07/22 18:57:18 | at netbattle.database.Metaserver.postServer(Metaserver.java:99)
INFO | jvm 1 | 2010/07/22 18:57:18 | at netbattle.BattleServer$3.run(BattleServer.java:290)
INFO | jvm 1 | 2010/07/22 18:57:18 | at java.lang.Thread.run(Unknown Source)
======================================================

I am running the latest version of Java. Please help :-)
 
Is this server built from source, or is this the executable?

If its from source open the project in netbeans. I think your error is in BattleServer.java (/ShoddyBattle/src/netbattle/BattleServer.java). Go down to Line 99. I think you have an extra space in "Metaserver" between the e & r. Remove the space, and execute through netbeans. Then build the jar, and use the server moving process again.
 
Hi Duck92,
Thanks for your advice. I built the server from the executable. I think I'll have to try building from the source code and see if your solution works. Was hoping to avoid having to build from source as I'm not a programmer. Must put on my thinking cap.
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top