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 2019/11/20 17:42:00 UTC
[jira] [Resolved] (DAEMON-413) [prunsrv] Registry entry for
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LdeService ImagePath
contains a junk character
[ https://issues.apache.org/jira/browse/DAEMON-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Thomas resolved DAEMON-413.
--------------------------------
Resolution: Invalid
You have a couple of non-breaking space characters in the script that you need to replace with standard spaces. The bytes between the of the --Install option and the start of the --Jvm option are:
0x0D 0x0A 0xA0 0x20 0xA0
They should be
0x0D 0x0A 0x20 0x20 0x20
> [prunsrv] Registry entry for HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LdeService ImagePath contains a 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
> Priority: Major
>
> 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)