We distribute a Java application as a regular (GUI) application and as a service. The GUI application never has crashed so far. However, the service terminates unexpectedly from time to time on some machines. Usually, simply restarting automatically works.
However, two users have reported that the service stops unexpectedly when logging out of Windows 2003 Server. We have been able to reproduce this on our 2003 Server test virtual machine. The event log shows error ID 7034.
The program listens to UPD and TCP connections on several ports. The problem exists even when the Firewall is turned off, and no anti-virus software is running. All current updates are applied.
Any help about how to fix this problem, or how to debug it, would be appreciated. The event log entries give no information. We log the "stop()" call in our software to a file; they do not get called when the service stops (or rather, crashes) at logout.