Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26178

Stacks errors when creating new server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 4.6.0.Final
    • 4.6.0.Final
    • server
    • None

      When you try to create a server for the first time, stacks.yaml (and pre-stacks.yaml) is downloaded and currently it's invalid yaml, so there are errors thrown in the Error Log view.

      One example:

      Can't access or parse  https://raw.githubusercontent.com/jboss-developer/jboss-stacks/1.0.0.Final/pre-stacks.yaml
      
      while parsing a flow mapping
       in "<reader>", line 201, column 12:
             labels: {
                     ^
      expected ',' or '}', but got Value
       in "<reader>", line 206, column 25:
                  wtp-runtime-type: org.jboss.ide.eclipse.as.runti ... 
                                  ^
      
      	at org.yaml.snakeyaml.parser.ParserImpl$ParseFlowMappingKey.produce(ParserImpl.java:734)
      	at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:160)
      	at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:145)
      	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
      	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
      	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
      	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
      	at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:204)
      	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:157)
      	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
      	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
      	at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
      	at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
      	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
      	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
      	at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
      	at org.jboss.jdf.stacks.parser.Parser.parse(Parser.java:55)
      	at org.jboss.tools.stacks.core.model.StacksManager.getStacksFromFile(StacksManager.java:177)
      	at org.jboss.tools.stacks.core.model.StacksManager.getStacksFromURL(StacksManager.java:163)
      	at org.jboss.tools.stacks.core.model.StacksManager.getStacks(StacksManager.java:154)
      	at org.jboss.tools.stacks.core.model.StacksManager.getStacks(StacksManager.java:141)
      	at org.jboss.tools.stacks.core.model.StacksManager.getStacks(StacksManager.java:106)
      	at org.fusesource.ide.server.fuse.core.runtime.integration.FuseDownloadRuntimesProvider.getStacks(FuseDownloadRuntimesProvider.java:29)
      	at org.fusesource.ide.server.karaf.core.runtime.integration.AbstractStacksDownloadRuntimesProvider.loadDownloadableRuntimes(AbstractStacksDownloadRuntimesProvider.java:66)
      	at org.fusesource.ide.server.karaf.core.runtime.integration.AbstractStacksDownloadRuntimesProvider.getDownloadableRuntimes(AbstractStacksDownloadRuntimesProvider.java:50)
      	at org.jboss.tools.runtime.core.internal.RuntimeExtensionManager.loadDownloadableRuntimesFromProviders(RuntimeExtensionManager.java:273)
      	at org.jboss.tools.runtime.core.internal.RuntimeExtensionManager.loadDownloadRuntimes(RuntimeExtensionManager.java:257)
      	at org.jboss.tools.runtime.core.internal.RuntimeExtensionManager.getDownloadRuntimes(RuntimeExtensionManager.java:199)
      	at org.jboss.tools.runtime.core.internal.RuntimeExtensionManager.getDownloadRuntimes(RuntimeExtensionManager.java:187)
      	at org.jboss.tools.runtime.core.RuntimeCoreActivator.getDownloadRuntimes(RuntimeCoreActivator.java:136)
      	at org.jboss.tools.as.runtimes.integration.util.DownloadRuntimeServerUtil.getDownloadRuntimes(DownloadRuntimeServerUtil.java:41)
      	at org.jboss.tools.as.runtimes.integration.ui.composites.DownloadRuntimeHyperlinkComposite$1.run(DownloadRuntimeHyperlinkComposite.java:169)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
      

      Apparently rob.stryker broke the file 14 hours ago with this commit:
      https://github.com/jboss-developer/jboss-stacks/commit/48ff290ca4c3f8e901fc1c3c3b29a0446ccf70a7
      See the missing commas here:

        1. missing-commas.png
          117 kB
          Martin Malina
        2. parse-errors.png
          76 kB
          Martin Malina

              rob.stryker Rob Stryker (Inactive)
              exd-mmalina Martin Malina
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: