windows-service-plugin icon indicating copy to clipboard operation
windows-service-plugin copied to clipboard

Installed Service will not start: Event Log says "Incorrect function"

Open 1klap opened this issue 3 years ago • 1 comments

I recreated you setup from the README page, but I get the following behaviour that prevents the service from starting.

The service is correctly registered by the OS, in the "Stopped"-State. When I try to start it (by Right-Click > Start) a error window pops up with the text

Windows could not start the TestService on Local Computer. 
For more information, review the System Event Log. 
If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1.

In the Event Log, I see an entry for the error with the message:

The TestService service terminated with the following service-specific error: 
Incorrect function.

Are you aware of a problem that might cause this? I made sure to correctly name the entry point function, as in your example.

Regards

1klap avatar Mar 18 '21 09:03 1klap

Additional info, I was using JDK15

I can confirm that bumping the Apache Commons Daemon version to 1.2.4 fixed the issue for me. Are you considering ticking the versions up?

1klap avatar Mar 19 '21 07:03 1klap