1 2 Previous Next 15 Replies Latest reply on Feb 6, 2017 4:39 AM by manarh

    java.lang.IllegalArgumentException: MALFORMED When Analyzing Java Files

    txiao

      I'm currently running Windup 2.7.0.Final against an application to be migrated from EAP 5 to EAP 7. Most of the rules process successfully, however the AnalyzeJavaFilesRuleProvider rule failed, apparently due to a problem unzipping a jar (Windup is being run against the compiled EAR file).

       

      The stack trace is below, and I've attached the output from Windup with some more context.

       

      java.lang.IllegalArgumentException: MALFORMED

        at java.util.zip.ZipCoder.toString(ZipCoder.java:58)

        at java.util.zip.ZipFile.getZipEntry(ZipFile.java:566)

        at java.util.zip.ZipFile.access$900(ZipFile.java:60)

        at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:524)

        at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:499)

        at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:480)

        at org.eclipse.jdt.internal.compiler.batch.ClasspathJar.isPackage(ClasspathJar.java:155)

        at org.eclipse.jdt.internal.compiler.batch.ClasspathJar.findClass(ClasspathJar.java:94)

        at org.eclipse.jdt.internal.compiler.batch.FileSystem.findClass(FileSystem.java:262)

        at org.eclipse.jdt.internal.compiler.batch.FileSystem.findType(FileSystem.java:354)

        at org.eclipse.jdt.core.dom.NameEnvironmentWithProgress.findType(NameEnvironmentWithProgress.java:42)

        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createPackage(LookupEnvironment.java:755)

        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:107)

        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:188)

        at org.eclipse.jdt.core.dom.CompilationUnitResolver.beginToCompile(CompilationUnitResolver.java:213)

        at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:990)

        at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:636)

        at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:990)

        at org.jboss.windup.ast.java.BatchASTProcessor$2.call(BatchASTProcessor.java:97)

        at org.jboss.windup.ast.java.BatchASTProcessor$2.call(BatchASTProcessor.java:68)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

       

      Thanks!

        1 2 Previous Next