Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-413

[prunsrv] Registry entry for HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LdeService ImagePath contains a junk character

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.0.15, 1.2.2
    • None
    • prunsrv
    • None

    Description

      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":

      "C:\Program Files (x86)\Rocket Software\LegaSuite Distributed Engine\7.2456.1.17\bin\win\amd64\prunsrv.exeá" //RS//LdeService
      

      The script I used to register the service is:

      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
      

      Could this an "off-by-one" buffer handling bug?

      This occurs with version 1.0.15 and 1.2.2.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: