You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (Jira)" <ji...@apache.org> on 2022/10/04 17:02:00 UTC

[jira] [Commented] (DAEMON-448) Service start fails with default Eclipse Temurin install

    [ https://issues.apache.org/jira/browse/DAEMON-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612688#comment-17612688 ] 

Mark Thomas commented on DAEMON-448:
------------------------------------

If JAVA_HOME isn't defined and there is no Java defined in the expected registry locations then you are going to have to explicitly define the JVM you want the service to use.

What we should be able to do is handle the situation better and fail to start with a useful error message rather than crashing.

> Service start fails with default Eclipse Temurin install
> --------------------------------------------------------
>
>                 Key: DAEMON-448
>                 URL: https://issues.apache.org/jira/browse/DAEMON-448
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: prunsrv
>    Affects Versions: 1.3.1
>         Environment: * Windows 10 Pro 21H2 (OS Build 19044.1889) 64 bit
>  * Eclipse Temurin Windows x64 JRE 11 (jdk-11.0.16.1+1) x64
>  ** Screenshot from website, no direct link possible:
>  ** !image-2022-09-16-14-53-28-807.png!
>            Reporter: Glenn Matthys
>            Priority: Major
>         Attachments: image-2022-09-16-14-49-32-981.png, image-2022-09-16-14-53-28-807.png, image-2022-09-16-15-02-53-131.png
>
>
> When installing Eclipse Temurin JRE version 11, notice _Set JAVA_HOME variable_ and _JavaSoft (Oracle) registry keys_ options are disabled in the default setup:
> !image-2022-09-16-14-49-32-981.png!
> prunsrv.exe successfully installs the service, but when trying to start it prunsrv.exe crashes:
> {{Faulting application name: xxx.exe, version: 1.3.1.0, time stamp: 0x6271349d}}
> {{Faulting module name: xxx.exe, version: 1.3.1.0, time stamp: 0x6271349d}}
> {{Exception code: 0xc0000005}}
> {{Fault offset: 0x0000000000007130}}
> {{Faulting process id: 0x1ddc}}
> {{Faulting application start time: 0x01d8c9ca012bfb46}}
> {{Faulting application path: C:\Program Files\xxx\xxx.exe}}
> {{Faulting module path: C:\Program Files\xxx\xxx.exe}}
> {{Report Id: a35b4a6a-63a3-4426-8061-495550439a97}}
> {{Faulting package full name: }}
> {{Faulting package-relative application ID: }}
> However when the default options are overridden and _Set JAVA_HOME variable_ and _JavaSoft (Oracle) registry keys_ options are enabled:
> !image-2022-09-16-15-02-53-131.png!
> prunsrv.exe works correctly.
> Having prunsrv.exe work correctly or at least not die with an 0xc0000005 (Access Denied) exception would improve user experience.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)