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

Can't install an addon when I don't specify a version (ClassCastException)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.5.0.Final
    • None
    • None
    • Hide
      1. unzip windup-distribution-2.4.1.Final-offline.zip
      2. cd windup-distribution-2.4.1.Final/
      3. rm -rf addons/org-jboss-windup-rules-apps-windup-rules-tattletale-* # will try to install the addon later to a mutable repository
      4. sed -i '/org.jboss.windup.rules.apps:windup-rules-tattletale/d' addons/installed.xml
      5. ./bin/windup -i org.jboss.windup.rules.apps:windup-rules-tattletale

      This works just fine. Now do the same on a fresh build of Windup distribution from master (2.5.0-SNAPSHOT).

      Show
      unzip windup-distribution-2.4.1.Final-offline.zip cd windup-distribution-2.4.1.Final/ rm -rf addons/org-jboss-windup-rules-apps-windup-rules-tattletale-* # will try to install the addon later to a mutable repository sed -i '/org.jboss.windup.rules.apps:windup-rules-tattletale/d' addons/installed.xml ./bin/windup -i org.jboss.windup.rules.apps:windup-rules-tattletale This works just fine. Now do the same on a fresh build of Windup distribution from master (2.5.0-SNAPSHOT).

    Description

      When I build a Windup distribution from current master and try to install an addon withouth specifying the version (i.e., windup -i org.jboss.windup.rules.apps:windup-rules-tattletale), I get the following output:

      Using Windup at /home/lthon/b/windup-distribution-2.5.0-SNAPSHOT
      In: org.jboss.windup.rules.apps:windup-rules-tattletale, Out: org.jboss.windup.rules.apps:windup-rules-tattletale
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      java.lang.ClassCastException: org.jboss.forge.furnace.versions.SingleVersion cannot be cast to org.jboss.forge.furnace.versions.Version
      	at org.jboss.forge.furnace.versions.SingleVersion.compareTo(SingleVersion.java:37)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
      	at org.jboss.forge.furnace.versions.Version_$$_javassist_7a77b9bc-d7a0-45b3-b155-c07728782fcc.compareTo(Version_$$_javassist_7a77b9bc-d7a0-45b3-b155-c07728782fcc.java)
      	at org.jboss.forge.furnace.manager.impl.AddonManagerImpl.createRequest(AddonManagerImpl.java:202)
      	at org.jboss.forge.furnace.manager.impl.AddonManagerImpl.install(AddonManagerImpl.java:91)
      	at org.jboss.forge.furnace.manager.impl.AddonManagerImpl.install(AddonManagerImpl.java:78)
      	at org.jboss.windup.bootstrap.commands.addons.InstallAddonCommand.install(InstallAddonCommand.java:100)
      	at org.jboss.windup.bootstrap.commands.addons.InstallAddonCommand.execute(InstallAddonCommand.java:44)
      	at org.jboss.windup.bootstrap.Bootstrap.executePhase(Bootstrap.java:287)
      	at org.jboss.windup.bootstrap.Bootstrap.run(Bootstrap.java:145)
      	at org.jboss.windup.bootstrap.Bootstrap.main(Bootstrap.java:96)
      > Forge version [2.22.7.Final]
      

      When I do specify the version (i.e., windup -i org.jboss.windup.rules.apps:windup-rules-tattletale,2.5.0-SNAPSHOT), it works correctly.

      This used to work just fine with Windup 2.4.1.Final. I think that the likely cause is Forge/Furnace upgrade, but I didn't bisect.

      Attachments

        Activity

          People

            ozizka_jira Ondrej Zizka (Inactive)
            lthon@redhat.com Ladislav Thon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: