Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6343

client.bat does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.2.6
    • None
    • karaf
    • None

    Description

      It is not possible to use client.bat on Windows. The following error appears every time the script is used:

      Logging in as karaf
      Error executing command: Cannot coerce 1() to any of []

      This is due to the following code at the end of client.bat:

      if "%SHIFT%" == "true" SET ARGS=%2 %3 %4 %5 %6 %7 %8 %9 %10 %11
      if not "%SHIFT%" == "true" SET ARGS=%1 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11

      It is not allowed to use %10 et %11 in windows scripting, the maximum authorized value is %9.

      When removing %10 and %11 from the script, it works as expected.

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              nicolas.dutertry Nicolas Dutertry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: