Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-4115

Run As Groovy CLI script throws CNF Exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.0.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      Problem can be reproduced by creating an app.groovy file with something like this in it:

      @RestController
      class App {
         @RequestMapping("/")
         def home() {
             "Hello, world!"
         }
      }

      Then Right-click the file and "Run As >>Spring Boot CLI Script".

      Error:

      eclipse.buildId=unknown
      java.version=1.8.0_31
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA
      Framework arguments:  -application org.eclipse.ui.ide.workbench -Dosgi.framework.extensions=org.eclipse.fx.osgi
      Command-line arguments:  -application org.eclipse.ui.ide.workbench -data /home/kdvolder/workspaces-sts/test-annotation-processing -dev file:/home/kdvolder/workspaces-sts/spring-ide/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog -Dosgi.framework.extensions=org.eclipse.fx.osgi
       
      org.eclipse.equinox.registry
      Error
      Wed May 06 12:08:15 PDT 2015
      Plug-in org.springframework.ide.eclipse.boot.launch was unable to load class org.springframework.ide.eclipse.boot.core.cli.BootGroovyScriptLaunchConfigurationDelegate.
       
      java.lang.ClassNotFoundException: org.springframework.ide.eclipse.boot.core.cli.BootGroovyScriptLaunchConfigurationDelegate cannot be found by org.springframework.ide.eclipse.boot.launch_3.7.0.qualifier
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)
      	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
      	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
      	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
      	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
      	at org.eclipse.debug.internal.core.LaunchDelegate.getDelegate(LaunchDelegate.java:86)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:763)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

        Activity

        Hide
        kdvolder Kris De Volder added a comment -

        Fix and regression test pushed

        Show
        kdvolder Kris De Volder added a comment - Fix and regression test pushed
        Hide
        mlippert Martin Lippert added a comment -

        We moved issue tracking for this project to https://github.com/spring-projects/spring-ide.
        If you would like to comment on or re-open this issue, please file a new issue at GitHub and refer to this one.

        Show
        mlippert Martin Lippert added a comment - We moved issue tracking for this project to https://github.com/spring-projects/spring-ide . If you would like to comment on or re-open this issue, please file a new issue at GitHub and refer to this one.

          People

          • Assignee:
            kdvolder Kris De Volder
            Reporter:
            kdvolder Kris De Volder
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: