Jump to content
Excelsior Forums
Xray

JET Windows Service Not Starting Automatically

Recommended Posts

Hello,

We have a Windows Service that we have built and deployed using Excelsior Jet 6.5.  It is working great for the most part, but we have an issue reported that the service does not come up automatically after a system reboot (even though it is configured to do so).  However, an administrator can start the service up manually without any problem and it continues to run fine until the next time the system is rebooted.

I asked the user to check the system event log and the following errors were reported:

"Timeout (30000 milliseconds) waiting for the My Service to connect."

and also:

"The My Service service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion."

The interesting thing is that my init() method in WinService subclass does not do anything, so it should not be any a timeout issue from this code.  We were also thinking that perhaps this service had an unknown dependency.  The service is long running and will open up a TCP server socket and export a couple of RMI objects.  However, this is all initiated from the run() method.  I also added some log output to see if I could trace where it might be getting hung up, but it appears not to even get to my code because the log file does not even get created (using Log4J).

Finally, this issue is not effecting most customers.

As I am not familiar with the internals of Windows Services, I was just curious if anyone else had this issue or could provide some insight.

Many thanks,

Ned

Share this post


Link to post
Share on other sites
I asked the user to check the system event log and the following errors were reported:

"Timeout (30000 milliseconds) waiting for the My Service to connect."

Imagine that a bunch of services is started on the user machine. If so, chances are good that the default timeout (30sec) is not enough for the service to start.

I would recommend you to increase the initialization timeout using the method setInitTimeout() of the Excelsior Winservice API.

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

×