Sign in to follow this  
tealc

Second server i.e. cluster server crashing with 'NullPointerException'

Recommended Posts

I am trying to set up a second server to connect to our existing server, have gone through the wiki tutorial which was great help. First server works fine and has been for ages, loading up the second server with the Adventure database and I get the following error:

Spoiler

[06:11:01 PM] INFO com.wurmonline.server.creatures.Creatures: Loaded 7178 creatures. Destroyed 0. That took 5857.118 ms. CheckPoints cp1=952.83636, cp2=0.0, cp3=0.0, cp4=0.0
[06:11:01 PM] INFO com.wurmonline.server.creatures.Creatures: Loaded items for creature. CheckPoints cp1=15.051132, cp2=0.0, cp3=198.85002, cp4=30.050882
[06:11:01 PM] INFO com.wurmonline.server.Server: Fixing cave entrances.
[06:11:02 PM] INFO com.wurmonline.server.Server: Set 0 cave entrances to rock out of 4
[06:11:02 PM] INFO com.wurmonline.server.Server: Fixing cave entrances took 1390.9011 ms
[06:11:03 PM] INFO com.wurmonline.server.Items: Loading item effects.
[06:11:03 PM] INFO com.wurmonline.server.Items: Loaded 40 item effects. That took 76.36564 ms.
[06:11:03 PM] INFO com.wurmonline.server.villages.Villages: Loading villages.
[06:11:03 PM] INFO com.wurmonline.server.villages.Villages: Loaded 0 villages from the database took 37.23448 ms
[06:11:11 PM] INFO com.wurmonline.server.Server: Shutting down the server - reason: Problem running the server - null
[06:11:11 PM] INFO com.wurmonline.server.Server: Shutting down the server - cause: 
java.lang.NullPointerException
    at com.wurmonline.server.kingdom.Kingdom.setExistsHere(Kingdom.java:146)
    at com.wurmonline.server.villages.Village.<init>(Village.java:338)
    at com.wurmonline.server.villages.DbVillage.<init>(DbVillage.java:145)
    at com.wurmonline.server.villages.Villages.loadVillages(Villages.java:762)
    at com.wurmonline.server.Server.startRunning(Server.java:838)
    at com.wurmonline.server.ServerLauncher.runServer$1(ServerLauncher.java:111)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.gotti.wurmunlimited.modloader.ProxyServerHook$1$1.invoke(ProxyServerHook.java:49)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:307)
    at com.wurmonline.server.ServerLauncher.runServer(ServerLauncher.java)
    at com.wurmonline.server.gui.WurmServerGuiController.startButtonClicked(WurmServerGuiController.java:280)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.reflect.misc.Trampoline.invoke(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
    at javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source)
    at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Node.fireEvent(Unknown Source)
    at javafx.scene.control.Button.fire(Unknown Source)
    at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
    at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(Unknown Source)
    at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.access$1500(Unknown Source)
    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$355(Unknown Source)
    at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$149(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
 

That's a really unhelpful error message, my best guess is there maybe a database issue with kingdoms, but where it is and how to fix it I have no idea.

Share this post


Link to post
Share on other sites

Could you post the whole server log, there might be something that causing the error earlier in the log

 

Share this post


Link to post
Share on other sites

This error has now been resolved, seems it was actually a DB issue. I re-downloaded the server, re-applied the previous settings and eh-voila it came up. Just have to figure out why it cant contact login server now :(

Share this post


Link to post
Share on other sites

1. Make sure all Ports are unique for each server.
2. make sure USE_INCOMING_RMI=true is in the wurm.ini

3. and the IP address for Local and Neighbour Have to be set in a certain way

Local Server:

External IP must be IP address of the network card

Internal IP must be the loop back address, 127.0.0.1

Server neighbor:

External IP must be IP address of your internet connection

Internal IP must be the loop back address, 127.0.0.1

 

Share this post


Link to post
Share on other sites

Thanks Steve, yes these are all the settings I have set, will do some more investigation tomorrow.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this