Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-4159

[Containerless CLI] Binary analysis fails on Windows with syntax incorrect error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • MTA 7.2.0
    • MTA 7.2.0
    • MTA CLI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      Analysis fails on Windows with syntax incorrect error

      Version-Release number of selected component (if applicable):

      7.2.0-16 

      How reproducible:

      100% 

      Steps to Reproduce:
      1. Run command like

      C:\Users\Admin\windows-mta-cli.exe analyze-bin --overwrite --input C:\Users\Admin\kantra-cli-tests\data/applications\jee-example-app-1.0.0.ear --output C:\Users\Admin\kantra-cli-tests\reports --source weblogic --target eap7
      

      2. See the error

      Actual results:

      Output is

      time="2024-10-31T09:04:21Z" level=info msg="running source analysis"
      time="2024-10-31T09:04:22Z" level=info msg="creating provider config"
      time="2024-10-31T09:04:22Z" level=info msg="setting provider from provider config" provider=java
      time="2024-10-31T09:04:22Z" level=info msg="setting provider from provider config" provider=builtin
      time="2024-10-31T09:04:22Z" level=info msg="parsing rules for analysis" rules="C:\\Users\\Admin\\rulesets"
      time="2024-10-31T09:04:23Z" level=info msg="starting provider" provider=builtin
      time="2024-10-31T09:04:23Z" level=info msg="starting provider" provider=java
      time="2024-10-31T09:04:28Z" level=error msg="unable to init the providers" error="mkdir .\\C:: The filename, directory name, or volume label syntax is incorrect." provider=java
      

      Expected results:

      Analysis should complete 

      Additional info:
      Required libraries were unpacked from zip and unpacked to home folder of user. Binary was extracted from the same zip file.

      java --version
      java 21.0.2 2024-01-16 LTS
      Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58)
      Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing)
      
      mvn -v
      Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
      Maven home: C:\Users\Admin\maven
      Java version: 21.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-21
      Default locale: en_US, platform encoding: UTF-8
      OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
      

              emcmulla@redhat.com Emily McMullan
              ibragins@redhat.com Igor Braginsky
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: