You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2019/11/20 15:27:00 UTC
[jira] [Created] (DAEMON-413) [prunsrv] Registry entry for
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LdeService ImagePath
contains junk character
Gary D. Gregory created DAEMON-413:
--------------------------------------
Summary: [prunsrv] Registry entry for HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LdeService ImagePath contains junk character
Key: DAEMON-413
URL: https://issues.apache.org/jira/browse/DAEMON-413
Project: Commons Daemon
Issue Type: New Feature
Components: prunsrv
Affects Versions: 1.0.15, 1.2.2
Reporter: Gary D. Gregory
On *Windows Server 2012R2 Standard Build 9600* (6.3.9600), the Windows Registry entry for
*HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LdeService*
The {{ImagePath}} attribute contains one junk character. Notice the {{"á"}} after {{".exe"}}:
{noformat}
"C:\Program Files (x86)\Rocket Software\LegaSuite Distributed Engine\7.2456.1.17\bin\win\amd64\prunsrv.exeá" //RS//LdeService
{noformat}
The script I used to register the service is:
{noformat}
set LDE_HOME=%~dp0..\
call "%LDE_HOME%set-vars.cmd" %*
if %PROCESSOR_ARCHITECTURE%==x86 goto setx86
if %PROCESSOR_ARCHITECTURE%==AMD64 goto setamd
if %PROCESSOR_ARCHITECTURE%==IA64 goto setia
goto :eof
:setx86
set PR_HOME=%~dp0win\
goto exec
:setamd
set PR_HOME=%~dp0win\amd64
goto exec
:setia
set PR_HOME=%~dp0win\ia64
goto exec
:exec
"%PR_HOME%\prunsrv.exe" //IS//LdeService^
--DisplayName="Rocket Software LegaSuite Distributed Engine (LDE)"^
--Install="%PR_HOME%\prunsrv.exe"^
--Jvm="%JAVA_HOME%\bin\client\jvm.dll"^
--StartMode=jvm^
--StopMode=jvm^
--StartClass=com.seagullsw.appinterface.server.AppInterfaceServer^
--StopClass=com.seagullsw.appinterface.server.StopService^
--StartParams="--config#%LDE_CONFIG_DIR%"^
--Classpath="%LDE_HOME%\lib\*"^
--JvmOptions=-Xrs^
++JvmOptions=-Djava.endorsed.dirs="%LDE_HOME%\lib\endorsed"^
++JvmOptions=-Djavax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl^
++JvmOptions=-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger^
--LogPath=%LDE_CONFIG_DIR%\logs^
--StdOutput=auto^
--StdError=auto^
--PidFile=pid.txt^
--LogLevel=Debug
{noformat}
Could this an "off-by-one" buffer handling bug?
This occurs with version 1.0.15 and 1.2.2.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)