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

NPE in DiscoverDuplicateArchiveProjectsRuleProvider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.CR1
    • 3.0.0.Alpha1
    • MTA CLI
    • None
    • None

      STR:
      Build the seam-booking from https://github.com/windup/windup/pull/1039 .
      It's not compilable but it's also misconfigured so it produces something in target/ .
      Run Windup against the seam-booking project folder.
      Check the log.

      09:22:44,672 INFO  [org.jboss.windup.config.RuleSubset] (main) Rule [DiscoverDuplicateArchiveProjectsRuleProvider from org.jboss.windup.rules.apps.java.scan.provider.DiscoverDuplicateArchiveProjectsRuleProvider loaded from ModuleClassLoader for Module "org.jboss.windup.rules.apps.windup-rules-java:3.0.0-SNAPSHOT_e741e1fd-4caa-4573-b030-9eb4106b9fb7" from AddonModuleLoader] matched and will be performed.
      09:22:44,688 WARNING [com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEKeyValueStore] (main) Attempt to acquire lock with transactions disabled
      09:22:44,704 SEVERE [org.jboss.windup.config.RuleSubset] (main) Error encountered while evaluating rule: .addRule().when(Query.fromType(org.jboss.windup.graph.model.DuplicateArchiveModel).as(default)).perform(Iteration.over(?).perform( with var 'default_instance')).withId("DiscoverDuplicateArchiveProjectsRuleProvider_1")
      Failed when iterating [v[60672]={w:winduptype: [DuplicateArchive, ArchiveModel:, FileResource, identifiedArchive:, ignoredArchive:, IgnoredFileModel, JarArchiveResource], fileName: persistence-api-1.0.jar, md5Hash: aeb56ad8210370d0cd5c0e995eb0d16c, filePath: /home/ondra/work/Migration/Windup/test-files/seam-booking-5.2/target/jboss-seam-booking-2.2.2.Final/persistence-api-1.0.jar, windupGenerated: false, ArchiveModel:archiveName: persistence-api-1.0.jar, sha1Hash: 5725f57873e05e068803e2bf9d5a8ea3740ffec5, IgnoredByRegex: Known open-source library, isDirectory: false}], due to: null: org.jboss.windup.util.exception.WindupException: Failed when iterating [v[60672]={w:winduptype: [DuplicateArchive, ArchiveModel:, FileResource, identifiedArchive:, ignoredArchive:, IgnoredFileModel, JarArchiveResource], fileName: persistence-api-1.0.jar, md5Hash: aeb56ad8210370d0cd5c0e995eb0d16c, filePath: /home/ondra/work/Migration/Windup/test-files/seam-booking-5.2/target/jboss-seam-booking-2.2.2.Final/persistence-api-1.0.jar, windupGenerated: false, ArchiveModel:archiveName: persistence-api-1.0.jar, sha1Hash: 5725f57873e05e068803e2bf9d5a8ea3740ffec5, IgnoredByRegex: Known open-source library, isDirectory: false}], due to: null
      	at org.jboss.windup.config.operation.Iteration.perform(Iteration.java:289) [windup-config-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.config.operation.Iteration.perform(Iteration.java:206) [windup-config-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.ocpsoft.rewrite.config.RuleBuilder.perform(RuleBuilder.java:168) [rewrite-api-3.0.0.Alpha9-jboss.jar:3.0.0.Alpha9-jboss]
      	at org.jboss.windup.config.RuleSubset.perform(RuleSubset.java:272) [windup-config-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:171) [windup-exec-impl-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_102]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_102]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_102]
      	at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_102]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.24.2.Final.jar:2.24.2.Final]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.24.2.Final.jar:2.24.2.Final]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.24.2.Final.jar:2.24.2.Final]
      	at org.jboss.windup.exec.WindupProcessorImpl_$$_javassist_858b5670-a130-4c15-b609-5530dd310704.execute(WindupProcessorImpl_$$_javassist_858b5670-a130-4c15-b609-5530dd310704.java) [windup-exec-impl-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_102]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_102]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_102]
      	at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_102]
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:124) [furnace-proxy-2.24.2.Final.jar:2.24.2.Final]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.24.2.Final.jar:2.24.2.Final]
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:97) [furnace-proxy-2.24.2.Final.jar:2.24.2.Final]
      	at org.jboss.windup.exec.WindupProcessor_$$_javassist_e2462f38-9872-4448-b07f-2474a2e6b140.execute(WindupProcessor_$$_javassist_e2462f38-9872-4448-b07f-2474a2e6b140.java) [windup-exec-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.bootstrap.commands.windup.RunWindupCommand.runWindup(RunWindupCommand.java:260) [windup-bootstrap-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.bootstrap.commands.windup.RunWindupCommand.execute(RunWindupCommand.java:73) [windup-bootstrap-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.bootstrap.Bootstrap.executePhase(Bootstrap.java:308) [windup-bootstrap-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.bootstrap.Bootstrap.run(Bootstrap.java:171) [windup-bootstrap-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.bootstrap.Bootstrap.main(Bootstrap.java:97) [windup-bootstrap-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      Caused by: java.lang.NullPointerException
      	at org.jboss.windup.rules.apps.java.scan.provider.DiscoverDuplicateArchiveProjectsRuleProvider.setupProject(DiscoverDuplicateArchiveProjectsRuleProvider.java:55) [windup-rules-java-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.rules.apps.java.scan.provider.DiscoverDuplicateArchiveProjectsRuleProvider.access$000(DiscoverDuplicateArchiveProjectsRuleProvider.java:27) [windup-rules-java-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.rules.apps.java.scan.provider.DiscoverDuplicateArchiveProjectsRuleProvider$1.perform(DiscoverDuplicateArchiveProjectsRuleProvider.java:40) [windup-rules-java-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.rules.apps.java.scan.provider.DiscoverDuplicateArchiveProjectsRuleProvider$1.perform(DiscoverDuplicateArchiveProjectsRuleProvider.java:36) [windup-rules-java-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.config.operation.iteration.AbstractIterationOperation.perform(AbstractIterationOperation.java:65) [windup-config-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.config.operation.GraphOperation.perform(GraphOperation.java:24) [windup-config-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	at org.jboss.windup.config.operation.Iteration.perform(Iteration.java:266) [windup-config-api-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      	... 25 more
      

              jsightle@redhat.com Jess Sightler
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: