You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lifebeat startup crashes with NullPointerException: hostName when WOHost isn't set #93
Adding -WOHost localhost makes it start (and serve under the /cgi-bin/WebObjects/X.woa and /Apps/WebObjects/X.woa/1 prefixes) fine.
Thoughts
wotaskd normally passes -WOHost, so this mostly bites manual or scripted launches. But the failure is a bare NPE at startup that names a constructor parameter, not the property, so it takes a moment to connect it to WOHost. Options:
default WOHost to the local host name, as WO does (as far as I remember, WOApplication.host() falls back to the machine's name);
or fail with a message naming the missing property (WOLifebeatEnabled is set, but WOHost isn't).
Also worth a look while in there: the same _hostName is used both as the destination host for the wotaskd lifebeat URL and as the host the app reports for itself (sendMessage()), which is only right when wotaskd runs on the app's own host.
On the last point (the same host used both as the lifebeat destination and as the host the app reports): that matches WO. WO's lifebeat thread also connects to the app's own host address and reports that host. wotaskd only manages instances on its own machine, so it's always local.
Activity
hugithordarson commentedon Oct 18, 2026
On the last point (the same host used both as the lifebeat destination and as the host the app reports): that matches WO. WO's lifebeat thread also connects to the app's own host address and reports that host. wotaskd only manages instances on its own machine, so it's always local.