[
https://issues.apache.org/jira/browse/DAEMON-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872921#comment-17872921
]
Pratik Kulkarni commented on DAEMON-435:
----------------------------------------
We have been getting similar error when we upgraded the from 1.2.4 to 1.4.0.
This is reproducible when you try to stop the application from the windows
service manager. Once I downgraded the library back to 1.2.4, the issue was
resolved.
1. It shows up as a 1067 windows error and in the event viewers it shows as:
The service terminated unexpectedly (nothing informative in the details except
the key word
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="{*}Service Control Manager{*}"
Guid="{*}{555908d1-a6d7-4695-8e1e-26931d2012f4}{*}" EventSourceName="{*}Service
Control Manager{*}" />
<EventID Qualifiers="{*}49152{*}">7034</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="{*}2024-08-12T12:29:27.6741625Z{*}" />
<EventRecordID>3484</EventRecordID>
<Correlation />
<Execution ProcessID="{*}800{*}" ThreadID="{*}9896{*}" />
{color:#0747a6}The debug logs of the prunsrv:{color}
[2024-08-12 05:29:06] [info] ( prunsrv.c:1610) [ 4300] Service
SERVICE_CONTROL_STOP signalled.
[2024-08-12 05:29:06] [debug] ( prunsrv.c:1127) [ 4300] reportServiceStatusE:
dwCurrentState = 3 (SERVICE_STOP_PENDING), dwWin32ExitCode = 0, dwWaitHint =
3000 milliseconds, dwServiceSpecificExitCode = 0.
[2024-08-12 05:29:07] [info] ( prunsrv.c:1227) [ 9116] Stopping service...
[2024-08-12 05:29:07] [debug] ( javajni.c:419 ) [ 9116] Loaded JVM DLL
'C:\Program Files\framework\runtime\jre\bin\server\jvm.dll', home 'C:\Program
Files\ArcGIS\Portal\framework\runtime\jre'.
[2024-08-12 05:29:07] [debug] ( javajni.c:424 ) [ 9116] JNI_GetCreatedJavaVMs...
[2024-08-12 05:29:07] [debug] ( javajni.c:1067) [12016] Java worker thread
started for com/impl/Main:stop
[2024-08-12 05:29:07] [debug] ( javajni.c:1073) [12016] JNI calling static void
method com/impl/Main:stop
[2024-08-12 05:29:08] [debug] ( prunsrv.c:1277) [ 9116] Waiting for Java JNI
stop worker to finish for com/impl/Main:stop...
[2024-08-12 05:29:08] [debug] ( javajni.c:1167) [ 9116] apxJavaWait ->
WaitForSingleObject (0x0000000000000C78, -1 milliseconds) (-1=INFINITE)...
[2024-08-12 05:29:24] [debug] ( javajni.c:1092) [12016] Java worker thread
finished com/impl/Main:stop with status = 0
[2024-08-12 05:29:24] [debug] ( javajni.c:1170) [ 9116] apxJavaWait <-
WaitForSingleObject (0x0000000000000C78, -1 milliseconds) = 0
[2024-08-12 05:29:24] [debug] ( prunsrv.c:1282) [ 9116] Java JNI stop worker
finished.
[2024-08-12 05:29:24] [debug] ( prunsrv.c:1127) [ 9116] reportServiceStatusE:
dwCurrentState = 3 (SERVICE_STOP_PENDING), dwWin32ExitCode = 0, dwWaitHint =
300000 milliseconds, dwServiceSpecificExitCode = 0.
[2024-08-12 05:29:24] [debug] ( prunsrv.c:1390) [ 9116] Waiting for worker to
die naturally...
[2024-08-12 05:29:24] [debug] ( prunsrv.c:1401) [ 9116] Worker finished
gracefully in 0 milliseconds.
[2024-08-12 05:29:24] [info] ( prunsrv.c:1411) [ 9116] Service stop thread
completed.
[2024-08-12 05:29:26] [debug] ( javajni.c:571 ) [ 5200] Exit hook with exit
code 0
The service actually stops, but the windows throws the error.
> While stopping service, service crashed with error 1067
> -------------------------------------------------------
>
> Key: DAEMON-435
> URL: https://issues.apache.org/jira/browse/DAEMON-435
> Project: Commons Daemon
> Issue Type: Bug
> Affects Versions: 1.2.4
> Reporter: Kaviarasi
> Priority: Blocker
>
> When stopping the service, service crashes with Error 1067: The process
> terminated unexpectedly.
>
> When enabled the debug mode for prunsrv, following messages are seen
>
> [2021-10-29 12:34:53] [debug] ( prunsrv.c:1892) [ 1816] Apache Commons Daemon
> procrun log initialized.
> [2021-10-29 12:34:53] [info] ( prunsrv.c:1896) [ 1816] Apache Commons Daemon
> procrun (1.2.4.0 64-bit) started.
> [2021-10-29 12:34:53] [info] ( prunsrv.c:945 ) [ 1816] Updating service...
> [2021-10-29 12:34:53] [warn] ( service.c:143 ) [ 1816] Failed to obtain
> service description
> [2021-10-29 12:34:53] [info] ( prunsrv.c:1007) [ 1816] Updated service
> 'OracleAVAgent'.
> [2021-10-29 12:34:53] [info] ( prunsrv.c:1014) [ 1816] Finished updating
> service 'OracleAVAgent'.
> [2021-10-29 12:34:53] [info] ( prunsrv.c:1980) [ 1816] Apache Commons Daemon
> procrun finished.
> [2021-10-29 12:34:53] [debug] ( prunsrv.c:1032) [12208] reportServiceStatusE:
> dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0,
> dwServiceSpecificExitCode = 0.
> [2021-10-29 12:34:53] [debug] ( prunsrv.c:1032) [12208] reportServiceStatusE:
> dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 3000,
> dwServiceSpecificExitCode = 0.
> [2021-10-29 12:34:53] [info] ( prunsrv.c:1132) [10076] Stopping service...
> [2021-10-29 12:34:53] [debug] ( javajni.c:414 ) [10076] Loaded JVM DLL '',
> home ''.
> [2021-10-29 12:34:53] [debug] ( javajni.c:419 ) [10076]
> JNI_GetCreatedJavaVMs...
> [2021-10-29 12:34:53] [debug] ( javajni.c:1039) [ 8808] DLL search path set
> to '
> [2021-10-29 12:34:53] [debug] ( javajni.c:1003) [ 8808] argv[0] = STOP
> [2021-10-29 12:34:53] [debug] ( javajni.c:1003) [ 8808] argv[1] = -l
> [2021-10-29 12:34:53] [debug] ( javajni.c:1003) [ 8808] argv[2] = WARNING
> [2021-10-29 12:34:53] [debug] ( javajni.c:1062) [ 8808] Java worker thread
> started for oracle/av/platform/agent/AgentController:main
> [2021-10-29 12:34:53] [debug] ( javajni.c:1068) [ 8808] JNI calling static
> void method oracle/av/platform/agent/AgentController:main
> [2021-10-29 12:34:54] [debug] ( javajni.c:566 ) [12220] Exit hook with exit
> code 0
--
This message was sent by Atlassian Jira
(v8.20.10#820010)