Results 1 to 3 of 3

Thread: NoClassDefFoundError occurred when editing Grails Controller Class

  1. #1
    Join Date
    Feb 2010
    Posts
    5

    Default NoClassDefFoundError occurred when editing Grails Controller Class

    Hello, I use nightly STS Grails Support (2.3.1.201002150800-CI-R4660-B124).
    I have installed STS according to this file (http://dist.springsource.com/release....0.RELEASE.pdf)

    When I have created Grails project, a controller class of grails, and focused on editor, a dialog message has poped up.
    the message says NoClassDefFoundError occurred ...

    What's the error cause?

    My System Environment is
    • WindowsXP
    • JDK 1.6.0_18
    • Grails 1.2.1


    The Error Message is here.

    java.lang.NoClassDefFoundError: Could not initialize class com.springsource.sts.grails.editor.groovy.elements .ControllerClass
    at com.springsource.sts.grails.editor.groovy.elements .GrailsProject.getControllerClass(GrailsProject.ja va:104)
    at com.springsource.sts.grails.editor.groovy.elements .GrailsCore.isControllerClass(GrailsCore.java:150)
    at com.springsource.sts.grails.editor.actions.GoToDom ainClass.setActiveEditor(GoToDomainClass.java:53)
    at org.eclipse.ui.internal.EditorPluginAction.editorC hanged(EditorPluginAction.java:75)
    at org.eclipse.ui.internal.EditorActionBuilder$Editor Contribution.editorChanged(EditorActionBuilder.jav a:83)
    at org.eclipse.ui.internal.EditorActionBuilder$Extern alContributor.setActiveEditor(EditorActionBuilder. java:129)
    at org.eclipse.ui.internal.EditorActionBars.partChang ed(EditorActionBars.java:345)
    at org.eclipse.ui.internal.WorkbenchPage$3.run(Workbe nchPage.java:632)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.jav a:888)
    at org.eclipse.ui.internal.WorkbenchPage.activatePart (WorkbenchPage.java:621)
    at org.eclipse.ui.internal.WorkbenchPage.setActivePar t(WorkbenchPage.java:3527)
    at org.eclipse.ui.internal.WorkbenchPage.requestActiv ation(WorkbenchPage.java:3071)
    at org.eclipse.ui.internal.PartPane.requestActivation (PartPane.java:279)
    at org.eclipse.ui.internal.EditorPane.requestActivati on(EditorPane.java:98)
    at org.eclipse.ui.internal.PartPane.handleEvent(PartP ane.java:237)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1008)
    at org.eclipse.swt.widgets.Shell.setActiveControl(She ll.java:1404)
    at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(She ll.java:2269)
    at org.eclipse.swt.widgets.Control.windowProc(Control .java:3989)

    ...
    at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:13 11)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1 287)

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    grspring,

    thanks for raising this. This has been fixed in trunk and the fix will be included in tomorrow's nightly snapshot.

    Thanks, Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Feb 2010
    Posts
    5

    Smile

    Thank you for updating STS!
    I have confirmed that I can edit the Grails Controller Class nomally by new STS.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •