Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.0.15
-
None
-
None
-
Windows 7 64 bit
Description
Trying to create a service using my java program. My code is executing fine and its doing what is supposed to do, but at last prunsrv fail with message "The data area passed to a system call is too small". Below is the log that I collected,
[2017-06-10 11:46:09] [debug] ( prunsrv.c:1679) [ 9528] Commons Daemon procrun log initialized [2017-06-10 11:46:09] [info] ( prunsrv.c:1683) [ 9528] Commons Daemon procrun (1.0.15.0 64-bit) started [2017-06-10 11:46:09] [debug] ( prunsrv.c:561 ) [ 9528] Installing service... [2017-06-10 11:46:09] [info] ( prunsrv.c:600 ) [ 9528] Service Test name Test [2017-06-10 11:46:09] [info] ( prunsrv.c:634 ) [ 9528] Service 'Test' installed [2017-06-10 11:46:09] [info] ( prunsrv.c:1764) [ 9528] Commons Daemon procrun finished [2017-06-10 11:46:27] [debug] ( prunsrv.c:1679) [10468] Commons Daemon procrun log initialized [2017-06-10 11:46:27] [info] ( prunsrv.c:1683) [10468] Commons Daemon procrun (1.0.15.0 64-bit) started [2017-06-10 11:46:27] [info] ( prunsrv.c:725 ) [10468] Starting service 'Test' ... [2017-06-10 11:46:27] [warn] ( service.c:140 ) [10468] Failed to obtain service description [2017-06-10 11:46:27] [debug] ( prunsrv.c:1679) [11128] Commons Daemon procrun log initialized [2017-06-10 11:46:27] [info] ( prunsrv.c:1683) [11128] Commons Daemon procrun (1.0.15.0 64-bit) started [2017-06-10 11:46:27] [info] ( prunsrv.c:1596) [11128] Running 'Test' Service... [2017-06-10 11:46:27] [debug] ( prunsrv.c:1374) [ 7236] Inside ServiceMain... [2017-06-10 11:46:27] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 2, 0, 3000, 0 [2017-06-10 11:46:27] [info] ( prunsrv.c:1127) [ 7236] Starting service... [2017-06-10 11:46:27] [debug] ( javajni.c:233 ) [ 7236] loading jvm 'C:\Program Files\Java\jdk1.8.0_121\jre\bin\server\jvm.dll' [2017-06-10 11:46:27] [debug] ( javajni.c:704 ) [ 9968] Jvm Option[0] -Djava.class.path=C:\abc\Test\bin\TestServiceWrapper.jar [2017-06-10 11:46:27] [debug] ( javajni.c:704 ) [ 9968] Jvm Option[1] exit [2017-06-10 11:46:27] [debug] ( javajni.c:941 ) [ 9968] Java Worker thread started com/company/Test/service/WindowsServiceWrapper:start [2017-06-10 11:46:27] [debug] ( javajni.c:964 ) [ 9968] Java Worker thread finished com/company/Test/service/WindowsServiceWrapper:start with status=0 [2017-06-10 11:46:28] [debug] ( prunsrv.c:1186) [ 7236] Java started com/company/Test/service/WindowsServiceWrapper [2017-06-10 11:46:28] [info] ( prunsrv.c:1284) [ 7236] Service started in 1107 ms. [2017-06-10 11:46:28] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 4, 0, 0, 0 [2017-06-10 11:46:28] [debug] ( prunsrv.c:1528) [ 7236] Waiting for worker to finish... [2017-06-10 11:46:28] [debug] ( prunsrv.c:1533) [ 7236] Worker finished. [2017-06-10 11:46:28] [debug] ( prunsrv.c:1559) [ 7236] Waiting for all threads to exit [2017-06-10 11:46:28] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 3, 0, 0, 0 [2017-06-10 11:46:28] [debug] ( prunsrv.c:1563) [ 7236] JVM destroyed. [2017-06-10 11:46:28] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 1, 0, 0, 0 [2017-06-10 11:46:28] [info] ( prunsrv.c:1598) [11128] Run service finished. [2017-06-10 11:46:28] [info] ( prunsrv.c:1764) [11128] Commons Daemon procrun finished [2017-06-10 11:46:30] [error] ( prunsrv.c:746 ) [10468] Failed to start 'Test' service [2017-06-10 11:46:30] [error] ( prunsrv.c:746 ) [10468] The data area passed to a system call is too small. [2017-06-10 11:46:30] [info] ( prunsrv.c:754 ) [10468] Start service finished. [2017-06-10 11:46:30] [error] ( prunsrv.c:1755) [10468] Commons Daemon procrun failed with exit value: 5 (Failed to start service) [2017-06-10 11:46:30] [error] ( prunsrv.c:1755) [10468] The data area passed to a system call is too small.
Attachments
Issue Links
- duplicates
-
DAEMON-282 Failed to stop 'xx' service: The data area passed to a system call is too small
- Resolved
- relates to
-
DAEMON-311 Commons Daemon procrun failed with exit value: 5 (Failed to start service)
- Resolved
-
DAEMON-282 Failed to stop 'xx' service: The data area passed to a system call is too small
- Resolved