Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-26402

[jboss-eap-installation-manager] .installation/.cache/artifacts.txt with non-expected content breaks Prospero

XMLWordPrintable

      This issue describes situation when $EAP_HOME/.installation/.cache/artifacts.txt is somehow corrupted. Even with this file corrupted, Prospero should report useful error state and (if possible) recover.

      When $EAP_HOME/.installation/.cache/artifacts.txt is removed, everything works well.

      Having $EAP_HOME/.installation/.cache/artifacts.txt with a single one-line random string instead of expected content results with this when running Prospero update:

      java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
          at org.jboss.prospero//org.wildfly.prospero.galleon.ArtifactCache.init(ArtifactCache.java:203)
          at org.jboss.prospero//org.wildfly.prospero.galleon.ArtifactCache.<init>(ArtifactCache.java:89)
          at org.jboss.prospero//org.wildfly.prospero.galleon.ArtifactCache.getInstance(ArtifactCache.java:79)
          at org.jboss.prospero//org.wildfly.prospero.galleon.CachedVersionResolverFactory.<init>(CachedVersionResolverFactory.java:41)
          at org.jboss.prospero//org.wildfly.prospero.galleon.GalleonEnvironment.<init>(GalleonEnvironment.java:88)
          at org.jboss.prospero//org.wildfly.prospero.galleon.GalleonEnvironment$Builder.build(GalleonEnvironment.java:212)
          at org.jboss.prospero//org.wildfly.prospero.actions.UpdateAction.getGalleonEnv(UpdateAction.java:154)
          at org.jboss.prospero//org.wildfly.prospero.actions.UpdateAction.findUpdates(UpdateAction.java:140)
          at org.jboss.prospero//org.wildfly.prospero.cli.commands.UpdateCommand.buildUpdate(UpdateCommand.java:281)
          at org.jboss.prospero//org.wildfly.prospero.cli.commands.UpdateCommand$PerformCommand.performUpdate(UpdateCommand.java:111)
          at org.jboss.prospero//org.wildfly.prospero.cli.commands.UpdateCommand$PerformCommand.call(UpdateCommand.java:98)
          at org.jboss.prospero//org.wildfly.prospero.cli.commands.UpdateCommand$PerformCommand.call(UpdateCommand.java:61)
          at org.jboss.prospero//picocli.CommandLine.executeUserObject(CommandLine.java:2041)
          at org.jboss.prospero//picocli.CommandLine.access(CommandLine.java:148)
          at org.jboss.prospero//picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
          at org.jboss.prospero//picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
          at org.jboss.prospero//picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
          at org.jboss.prospero//picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
          at org.jboss.prospero//picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
          at org.jboss.prospero//picocli.CommandLine.execute(CommandLine.java:2170)
          at org.jboss.prospero//org.wildfly.prospero.cli.CliMain.main(CliMain.java:58)
          at org.jboss.modules.Module.run(Module.java:353)
          at org.jboss.modules.Module.run(Module.java:321)
          at org.jboss.modules.Main.main(Main.java:604)
      

              mpetrov@redhat.com Michal Petrov
              jkasik@redhat.com Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: