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:26:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16978618#comment-16978618 ] 

Mark Thomas commented on DAEMON-413:
------------------------------------

If it is an off-by-one issue, it only seems to apply in specific (TBD) circumstances. When I try something similar with Tomcat it works as expected. I'll try and replicate something closer to what you have.

> [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)