Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-4200

MTR 1.2.0 fail with Eexception: java.lang.ClassNotFoundException: org.eclipse.text.edits.MalformedTreeException from [Module "org.jboss.windup.ast.windup-java-ast:6.3.1.Final-redhat-00002_67e96e90-d3bc-44fe-8fc8-ac2abdeacc58" from AddonModuleLoader]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTR-1.2.7
    • MTR-1.2.6
    • None
    • Sprint MTR-1.2.7
    • Customer Facing
    • None

      The customer on case 03869031 migrating an Application from Jboss EAP 7 to EAP 8 with help of MTR 1.2.0 but its get failed with the below exception: 

       

      [root@esuntrainnode1t bin]# ./windup-cli --input /var/log/MTR_war/ServiceMgr.war --output /var/log/ifrs9_report/ --target eap:8 --target openjdk17 --target jakarta-ee
      

       

      2024-07-08 16:37 [63/1594] InitialAnalysisPhase - AnalyzeJavaFilesRuleProvider - AnalyzeJavaFilesRuleProvider_1
      Execution failed due to: null9%) Analyze Java, Estimated time until next Rule: 15 seconds
      java.lang.reflect.InvocationTargetException
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                       at org.jboss.windup.bootstrap.Bootstrap.run(Bootstrap.java:309)
              at org.jboss.windup.bootstrap.Bootstrap.main(Bootstrap.java:109)
      Caused by: java.lang.NoClassDefFoundError: org/eclipse/text/edits/MalformedTreeException
              at org.jboss.windup.ast.windup-java-ast:6.3.1.Final-redhat-00002_94481ed5-c45c-4caa-b53b-d8692d9d2205//org.eclipse.jdt.core.dom.TypeBinding.getInterfaces(TypeBinding.java:519)
              at org.jboss.windup.ast.windup-java-ast:6.3.1.Final-redhat-00002_94481ed5-c45c-4caa-b53b-d8692d9d2205//org.jboss.windup.ast.java.ReferenceResolvingVisitor.visit(ReferenceResolvingVisitor.java:879)
              at org.jboss.windup.ast.windup-java-ast:6.3.1.Final-redhat-00002_94481ed5-c45c-4caa-b53b-d8692d9d2205//org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:220)                                                       at org.jboss.windup.config.windup-config:6.3.1.Final-redhat-00002_245daa24-7bcd-4bad-a287-d7cdedbd923a//org.jboss.windup.config.RuleSubset.perform(RuleSubset.java:259)
              at org.jboss.windup.exec.windup-exec:6.3.1.Final-redhat-00002_2c5b257e-1d90-4f5e-9210-642462fd8ac0//org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:142)
              ... 21 more
      Caused by: java.lang.ClassNotFoundException: org.eclipse.text.edits.MalformedTreeException from [Module "org.jboss.windup.ast.windup-java-ast:6.3.1.Final-redhat-00002_94481ed5-c45c-4caa-b53b-d8692d9d2205" from AddonModuleLoader]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader
      

      The issue is reproducible on the latest MTR.

              mrizzi@redhat.com Marco Rizzi
              rhn-support-mopatil Monali Patil
              Karishma Punwatkar Karishma Punwatkar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: