[jbosstools-issues] [JBoss JIRA] (JBIDE-26178) Stacks errors when creating new server

Martin Malina (JIRA) issues at jboss.org
Wed Jul 11 04:14:00 EDT 2018


Martin Malina created JBIDE-26178:
-------------------------------------

             Summary: Stacks errors when creating new server
                 Key: JBIDE-26178
                 URL: https://issues.jboss.org/browse/JBIDE-26178
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: server
    Affects Versions: 4.6.0.Final
            Reporter: Martin Malina
            Assignee: Rob Stryker
            Priority: Blocker
         Attachments: missing-commas.png, parse-errors.png

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:
{code}
Can't access or parse  https://raw.githubusercontent.com/jboss-developer/jboss-stacks/1.0.0.Final/pre-stacks.yaml
{code}
{code}
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)
{code}

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:



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list