facebook

Java project does not allow new class creation

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #310877 Reply

    When I try to add a new class to the src folder of a new Java project, I get the following error in the log file. Any help would be welcomed!

    !ENTRY org.eclipse.ui 4 0 2010-08-25 07:07:57.698
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextRegistry(Jav
    aPlugin.java:793)
    at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateStore(JavaPlugin.ja
    va:838)
    at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.warnAboutTypeCom
    mentDeprecation(NewElementWizard.java:145)
    at org.eclipse.jdt.internal.ui.wizards.NewClassCreationWizard.performFin
    ish(NewClassCreationWizard.java:74)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
    :752)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
    :373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
    228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizard
    ShortcutAction.java:135)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
    (ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
    butionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
    ontributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
    va:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
    a:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
    cation.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
    e.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
    cation(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
    lipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

    #310906 Reply

    support-joy
    Member

    bsonnenf,

    I am afraid, I cannot replicate this issue at my end. Can you answer below queries for me?
    1. Can you copy and paste your installation details. Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details
    2. What is your ME version and build-id? From menu options click on Help > About MyEclipse Enterprise Version. If you are on 8.6, please verify if your version and build-id is as below –
    Version: 8.6
    Build id: 8.6-20100806
    If no, then click on Help > MyEclipse Configuration Center. Choose Dashboard tab. Apply the software updates and click on [Apply x changes] button under *Pending Changes* section. This will open a wizard, when prompted please choose to restart the IDE.
    3. Can you perform -clean? Please refer – https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/
    4. If the above doesn’t work, can you switch to a new workspace and check if the issue persists? From menu options click on File > Switch Workspace > Other and choose a different workspace location.

    Let me know how this works for you?

    Best.

    #311073 Reply

    support-joy
    Member

    bsonnenf,

    Have you installed PHPEclipse? Reason I ask, your issues are similar to the one reported here – http://www.myeclipseide.com/PNphpBB2-printview-t-23435-start-0.html and I also see a related PHP ticket here – http://www.phpeclipse.com/ticket/730

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Java project does not allow new class creation

You must be logged in to post in the forum log in