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

Error 1084 in windows safe mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.3.3
    • None
    • prunsrv
    • None
    • java 19.0.2

      prunsrv 1.3.3 

      Windows 10 19043.928

       

    Description

      Hi , I was trying to run a windows service under safe mode of windows. Unfortunately I got 1084 error. I added my java project as jnaReg.rar . I tried commenting out this part in my code but no avail:

      ```
      // public static void registerHandler(){
      // Winsvc.SERVICE_STATUS_HANDLE service_status_handle = Advapi32.INSTANCE.RegisterServiceCtrlHandlerEx("hvldlpxpa", new Winsvc.HandlerEx() {
      // @Override
      // public int callback(int i, int i1, Pointer pointer, Pointer pointer1) {
      // System.out.println;
      // if(i == 1)

      { // return 1; // }

      // return 120;
      // }
      // }, Pointer.NULL);
      // }
      ```
      Using java 19, prunsrv 1.3.3 . 
      My typical register command is :
      ````
      prunsrv.exe //IS/Test --DisplayName=xpa --Description=h --Startup=manual --Jvm="pathToJvmDll" --Classpath=C:\Users\bunsal\IdeaProjects\jnaReg\target\JNA-jar-with-dependencies.jar --StartClass=Main --StopClass=Main --StartMode=jvm --StopMode=jvm --StopMethod=stopService --StartMethod=main --LogLevel=Debug --ServiceUser=LocalSystem 
      ````
      (Looks like default service user is changed from localsystem to local service (compared to v1.1))
      Added commons-daemon log, and video of nothing being changed on windows event viewer. 
      What should I do? 

      Attachments

        1. 2023-03-08 15-32-14.mkv
          933 kB
          Baris
        2. commons-daemon.2023-03-08.log
          19 kB
          Baris
        3. jnaReg.rar
          8 kB
          Baris
        4. Untitled.png
          863 kB
          Baris
        5. WinverUntitled.png
          910 kB
          Baris

        Activity

          People

            Unassigned Unassigned
            lapaz17 Baris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: