Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » [Galileo Java] Can't create new class(can't validate "finish" in "New > Class" wizard )
[Galileo Java] Can't create new class [message #512956] Mon, 08 February 2010 12:46 Go to next message
Yodaa is currently offline YodaaFriend
Messages: 2
Registered: February 2010
Junior Member
Hello,

Something weird's happening: I can't create new classes within projects using the "New > Class" wizard:

I ] Steps to encounter the issue within a regular Java test project:

1.1 ) Create new Java test project
1.2 ) Right clic on my test project folder
1.3 ) New > Class:

* Source folder: "MyTestProjectName/src" (filled by default)
* Package: "com.mytestpackagename" (either tried manually & using
"browse" feature)
* Enclosing type: leaved unchecked
* Name: "testJavaClassApp"
* Modifiers: public
* Superclass: "java.lang.Object"
* Interfaces: leaved blank
* Which method stubs would you like to create?
--> public static void main (String[] args): checked
--> Constructor from superclass: unchecked
--> Inherited abstract methods: checked

And clic on the finish button doesn't do anything...

Any help on this would be appreciated
Re: [Galileo Java] Can't create new class [message #513052 is a reply to message #512956] Mon, 08 February 2010 11:44 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
yodaazen@gmail.com wrote:
> Hello,
>
> Something weird's happening: I can't create new classes within
> projects using the "New > Class" wizard:
>
> I ] Steps to encounter the issue within a regular Java test project:
>
> 1.1 ) Create new Java test project
> 1.2 ) Right clic on my test project folder
> 1.3 ) New > Class:
>
> * Source folder: "MyTestProjectName/src" (filled by default)
> * Package: "com.mytestpackagename" (either tried manually & using
> "browse" feature)
> * Enclosing type: leaved unchecked
> * Name: "testJavaClassApp"
> * Modifiers: public
> * Superclass: "java.lang.Object"
> * Interfaces: leaved blank
> * Which method stubs would you like to create?
> --> public static void main (String[] args): checked
> --> Constructor from superclass: unchecked
> --> Inherited abstract methods: checked
>
> And clic on the finish button doesn't do anything...
>
> Any help on this would be appreciated
Maybe you are running into
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257

Dani
Re: [Galileo Java] Can't create new class [message #513358 is a reply to message #513052] Tue, 09 February 2010 20:38 Go to previous messageGo to next message
Yodaa is currently offline YodaaFriend
Messages: 2
Registered: February 2010
Junior Member
Thanks for your reply.

I'm running Eclipse Galileo under windows XP... Sad
Re: [Galileo Java] Can't create new class [message #513436 is a reply to message #513358] Wed, 10 February 2010 03:42 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
yodaazen@gmail.com wrote:
> Thanks for your reply.
>
> I'm running Eclipse Galileo under windows XP... :(
Anything in the error log (open Error Log view)?

Dani
Re: [Galileo Java] Can't create new class [message #527742 is a reply to message #513436] Fri, 16 April 2010 10:33 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: April 2010
Junior Member
Not sure if it is related, but I cannot create new classes as wel.

When checking the error log, I got a
Unhandled event loop exception

java.lang.NullPointerException
at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextReg istry(JavaPlugin.java:793)
at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateStore(Java Plugin.java:838)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.warnAbo utTypeCommentDeprecation(NewElementWizard.java:145)
at org.eclipse.jdt.internal.ui.wizards.NewClassCreationWizard.p erformFinish(NewClassCreationWizard.java:74)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:752)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
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.navigator.wizards.WizardShortcutActi on.run(WizardShortcutAction.java:98)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


I also get a message when trying to autocomplete. it is:

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.jdt.ui" was unable to instantiate class " org.eclipse.jdt.internal.ui.text.java.SWTTemplateCompletionP roposalComputer ".


at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
at org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:874)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComp uterDescriptor.createComputer(CompletionProposalComputerDesc riptor.java:291)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComp uterDescriptor.getComputer(CompletionProposalComputerDescrip tor.java:258)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComp uterDescriptor.sessionStarted(CompletionProposalComputerDesc riptor.java:401)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCate gory.sessionStarted(CompletionProposalCategory.java:313)
at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor $CompletionListener.assistSessionStarted(ContentAssistProces sor.java:113)
at org.eclipse.jface.text.contentassist.ContentAssistant.fireSe ssionBeginEvent(ContentAssistant.java:2214)
at org.eclipse.jface.text.contentassist.ContentAssistant.prepar eToShowCompletions(ContentAssistant.java:1689)
at org.eclipse.jface.text.contentassist.ContentAssistant.access $6(ContentAssistant.java:1682)
at org.eclipse.jface.text.contentassist.ContentAssistant$2.run( ContentAssistant.java:374)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3468)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3115)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.NullPointerException
at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextReg istry(JavaPlugin.java:793)
at org.eclipse.jdt.internal.ui.text.java.SWTTemplateCompletionP roposalComputer. <init>(SWTTemplateCompletionProposalComputer.java:137)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 32)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)


Something went probably wrong during updating but I am don't know what.

eclipse.buildId=
java.version=1.6.0_0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

I'll try to work my way around it. Hopefully somebody can help

best regards,
Joep
Re: [Galileo Java] Can't create new class [message #528763 is a reply to message #527742] Wed, 21 April 2010 16:59 Go to previous messageGo to next message
Cindy is currently offline CindyFriend
Messages: 2
Registered: April 2010
Location: Chicago, IL
Junior Member
Hi there,

I had the same problem of not being able to create a class, and I was getting the same three options. If you look up in the upper right hand corner of your Eclipse window, you may or may not see a box that says 'debug'. All I did was right-click that box and select 'close' (or maybe 'exit' - something along those lines), and that took care of my problem.

The debug box was right next to the Java box in the upper right hand corner of my Eclipse window. I was going to attach a partial screenshot, but it seems that I can't add the image to this thread. Let me know if you need it.

Kind regards,
- Cindy
Re: [Galileo Java] Can't create new class [message #528801 is a reply to message #528763] Wed, 21 April 2010 19:42 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 4/21/2010 10:59 AM, Cindy wrote:
> Hi there,
>
> I had the same problem of not being able to create a class, and I was
> getting the same three options. If you look up in the upper right hand
> corner of your Eclipse window, you may or may not see a box that says
> 'debug'. All I did was right-click that box and select 'close' (or maybe
> 'exit' - something along those lines), and that took care of my problem.
>
> The debug box was right next to the Java box in the upper right hand
> corner of my Eclipse window. I was going to attach a partial screenshot,
> but it seems that I can't add the image to this thread. Let me know if
> you need it.
>
> Kind regards,
> - Cindy

What Cindy is talking about is a "perspective" in Eclipse. Typically,
you'll have a Debug and a Java perspective; a Java EE perspective if
you're developing web applications, etc.

Based on bad experiences doing so, I would say it's best not to do
anything in the Debug perspective except run the debugger. Whenever I've
tried to add new classes or just edit code (viewing code is just fine),
it's led to inconvenience when not disaster. Usually, I end up bouncing
Eclipse. So, I've never done it in a couple of years now.

Best of luck,
Russ
Re: [Galileo Java] Can't create new class [message #528967 is a reply to message #528801] Thu, 22 April 2010 14:00 Go to previous messageGo to next message
David Kerber is currently offline David KerberFriend
Messages: 100
Registered: July 2009
Senior Member
In article <hqnkef$n8k$1@build.eclipse.org>, russ@windofkeltia.com
says...

....

> Based on bad experiences doing so, I would say it's best not to do
> anything in the Debug perspective except run the debugger. Whenever I've
> tried to add new classes or just edit code (viewing code is just fine),
> it's led to inconvenience when not disaster. Usually, I end up bouncing
> Eclipse. So, I've never done it in a couple of years now.

+1. I've never had disaster when editing in the debug window, but lots
of inconvenience: having to "clean" multiple times, occasionally
restarting eclipse, etc.

d
Re: [Galileo Java] Can't create new class [message #542446 is a reply to message #512956] Thu, 24 June 2010 21:26 Go to previous messageGo to next message
Satyagraha 1956 is currently offline Satyagraha 1956Friend
Messages: 8
Registered: January 2010
Junior Member
I have encountered exactly the same issue, and was able to resolve it in my configuration. For me, it was due to the presence of the PHPEclipse plugin which appears to have an undesirable interaction with 1) Java class creation wizard and 2) Java context sensitive help. To fix it, simply remove PHPEclipse by deleting the net.sourceforge.phpeclipse.* directories under /features and /plugins and restart.

Some more on this at:
http://www.phpeclipse.com/ticket/730
http://old.nabble.com/PHP-Eclipse-interfering-with-instantia ting-of-the-Display-view-td20819497.html
Re: [Galileo Java] Can't create new class [message #1114733 is a reply to message #542446] Mon, 23 September 2013 06:03 Go to previous message
Arun A G is currently offline Arun A GFriend
Messages: 1
Registered: September 2013
Junior Member
Hi,

It worked for me. Thanks
Previous Topic:Can't post image links in forum posts
Next Topic:Problem while trying to run a jdbc using servlet on jboss
Goto Forum:
  


Current Time: Sat Mar 06 23:31:00 GMT 2021

Powered by FUDForum. Page generated in 0.04286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top