Generate getters and setters not working in Spring Tool Suite












0















Generate getters and setters not working in Spring Tool Suite.



Getting below error:
NoClassDefFoundError for org/eclipse/jdt/internal/ui/util/ElementValidator



How to resolve this error?



Exception Stack Trace



java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/util/ElementValidator
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:285)
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:584)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:279)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332









share|improve this question

























  • Which Eclipse and STS version? How do you call the command (menu, content assist, etc.)?

    – howlger
    Nov 21 '18 at 22:29











  • I am using STS version 3.5.0. Getting error on Right Click --> Source --> Generate getters and setters

    – user4760694
    Nov 21 '18 at 22:34











  • Can you reproduce this issue with STS 3.9.6?

    – howlger
    Nov 21 '18 at 22:39
















0















Generate getters and setters not working in Spring Tool Suite.



Getting below error:
NoClassDefFoundError for org/eclipse/jdt/internal/ui/util/ElementValidator



How to resolve this error?



Exception Stack Trace



java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/util/ElementValidator
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:285)
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:584)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:279)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332









share|improve this question

























  • Which Eclipse and STS version? How do you call the command (menu, content assist, etc.)?

    – howlger
    Nov 21 '18 at 22:29











  • I am using STS version 3.5.0. Getting error on Right Click --> Source --> Generate getters and setters

    – user4760694
    Nov 21 '18 at 22:34











  • Can you reproduce this issue with STS 3.9.6?

    – howlger
    Nov 21 '18 at 22:39














0












0








0








Generate getters and setters not working in Spring Tool Suite.



Getting below error:
NoClassDefFoundError for org/eclipse/jdt/internal/ui/util/ElementValidator



How to resolve this error?



Exception Stack Trace



java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/util/ElementValidator
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:285)
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:584)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:279)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332









share|improve this question
















Generate getters and setters not working in Spring Tool Suite.



Getting below error:
NoClassDefFoundError for org/eclipse/jdt/internal/ui/util/ElementValidator



How to resolve this error?



Exception Stack Trace



java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/util/ElementValidator
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:285)
at org.eclipse.jdt.ui.actions.AddGetterSetterAction.run(AddGetterSetterAction.java:584)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:279)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332






java eclipse-plugin spring-tool-suite






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 1:05









mkUltra

745922




745922










asked Nov 21 '18 at 22:12









user4760694user4760694

13




13













  • Which Eclipse and STS version? How do you call the command (menu, content assist, etc.)?

    – howlger
    Nov 21 '18 at 22:29











  • I am using STS version 3.5.0. Getting error on Right Click --> Source --> Generate getters and setters

    – user4760694
    Nov 21 '18 at 22:34











  • Can you reproduce this issue with STS 3.9.6?

    – howlger
    Nov 21 '18 at 22:39



















  • Which Eclipse and STS version? How do you call the command (menu, content assist, etc.)?

    – howlger
    Nov 21 '18 at 22:29











  • I am using STS version 3.5.0. Getting error on Right Click --> Source --> Generate getters and setters

    – user4760694
    Nov 21 '18 at 22:34











  • Can you reproduce this issue with STS 3.9.6?

    – howlger
    Nov 21 '18 at 22:39

















Which Eclipse and STS version? How do you call the command (menu, content assist, etc.)?

– howlger
Nov 21 '18 at 22:29





Which Eclipse and STS version? How do you call the command (menu, content assist, etc.)?

– howlger
Nov 21 '18 at 22:29













I am using STS version 3.5.0. Getting error on Right Click --> Source --> Generate getters and setters

– user4760694
Nov 21 '18 at 22:34





I am using STS version 3.5.0. Getting error on Right Click --> Source --> Generate getters and setters

– user4760694
Nov 21 '18 at 22:34













Can you reproduce this issue with STS 3.9.6?

– howlger
Nov 21 '18 at 22:39





Can you reproduce this issue with STS 3.9.6?

– howlger
Nov 21 '18 at 22:39












1 Answer
1






active

oldest

votes


















0














This looks like a real problem with the installation. I think you can try two things:



1.) start STS/Eclipse from the command line using the -clean option. Sometimes that helps to let the runtime re-calculate dependencies.



2.) if 1.) doesn't work, then I would suggest to re-install STS from a fresh distribution download.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421161%2fgenerate-getters-and-setters-not-working-in-spring-tool-suite%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This looks like a real problem with the installation. I think you can try two things:



    1.) start STS/Eclipse from the command line using the -clean option. Sometimes that helps to let the runtime re-calculate dependencies.



    2.) if 1.) doesn't work, then I would suggest to re-install STS from a fresh distribution download.






    share|improve this answer




























      0














      This looks like a real problem with the installation. I think you can try two things:



      1.) start STS/Eclipse from the command line using the -clean option. Sometimes that helps to let the runtime re-calculate dependencies.



      2.) if 1.) doesn't work, then I would suggest to re-install STS from a fresh distribution download.






      share|improve this answer


























        0












        0








        0







        This looks like a real problem with the installation. I think you can try two things:



        1.) start STS/Eclipse from the command line using the -clean option. Sometimes that helps to let the runtime re-calculate dependencies.



        2.) if 1.) doesn't work, then I would suggest to re-install STS from a fresh distribution download.






        share|improve this answer













        This looks like a real problem with the installation. I think you can try two things:



        1.) start STS/Eclipse from the command line using the -clean option. Sometimes that helps to let the runtime re-calculate dependencies.



        2.) if 1.) doesn't work, then I would suggest to re-install STS from a fresh distribution download.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 24 '18 at 14:39









        Martin LippertMartin Lippert

        3,4691710




        3,4691710
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421161%2fgenerate-getters-and-setters-not-working-in-spring-tool-suite%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            ts Property 'filter' does not exist on type '{}'

            mat-slide-toggle shouldn't change it's state when I click cancel in confirmation window