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

JSON paring error when parsing minishift config

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 4.19.1.Final
    • 4.21.2.AM1
    • cdk
    • None
    • Sprint #204 July 2021, Sprint #205 Aug 2021, Sprint #206 Aug 2021, Sprint #208 Oct 2021
    • 1

    Description

      when starting the IDE, i get stacks in logs indicating that CDK cannot parse the minishift config : 

      !ENTRY org.jboss.tools.openshift.cdk.server 4 0 2021-07-15 16:53:52.587
      !MESSAGE Error parsing /home/sbouchet/.minishift/config/config.json
      !STACK 0
      java.lang.IllegalArgumentException: JSON parser error
      	at org.jboss.dmr.ModelNode.fromJSONString(ModelNode.java:1294)
      	at org.jboss.tools.openshift.internal.cdk.server.core.detection.UnifiedMinishiftRuntimeDetector.getHypervisor(UnifiedMinishiftRuntimeDetector.java:294)
      	at org.jboss.tools.openshift.internal.cdk.server.core.detection.UnifiedMinishiftRuntimeDetector.initializeServer(UnifiedMinishiftRuntimeDetector.java:274)
      	at org.jboss.tools.openshift.internal.cdk.server.core.detection.AbstractCDKRuntimeDetector.initializeRuntime(AbstractCDKRuntimeDetector.java:71)
      	at org.jboss.tools.runtime.core.internal.RuntimeDetector.initializeRuntime(RuntimeDetector.java:149)
      	at org.jboss.tools.runtime.core.util.RuntimeInitializerUtil.initializeRuntimes(RuntimeInitializerUtil.java:56)
      	at org.jboss.tools.runtime.core.util.RuntimeInitializerUtil.initializeRuntimesFromFolder(RuntimeInitializerUtil.java:36)
      	at org.jboss.tools.runtime.ui.internal.startup.JBossRuntimeStartup.initializeCDKRuntimes(JBossRuntimeStartup.java:98)
      	at org.jboss.tools.runtime.ui.internal.startup.JBossRuntimeStartup.initializeRuntimes(JBossRuntimeStartup.java:56)
      	at org.jboss.tools.runtime.ui.internal.startup.RuntimeScanner$1.run(RuntimeScanner.java:79)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

      it's because my config.json file is here but empty...

      Attachments

        Activity

          People

            stephane.bouchet Stephane Bouchet
            stephane.bouchet Stephane Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: