Bug 374423 - New Java Class wizard failing with "Creation of element failed" dialog
Summary: New Java Class wizard failing with "Creation of element failed" dialog
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 4.11 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2012-03-15 14:18 EDT by Ian Clarke CLA
Modified: 2019-01-08 00:39 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Clarke CLA 2012-03-15 14:18:53 EDT
Build Identifier: 20120216-1857

I now get an error when I try to use the "New Java Class" wizard.  I have been using Eclipse for years and have never seen this before.  It was working fine yesterday, but it seemed to stop working after I updated my TestNG plugin (which Eclipse promoted me to do per it's auto-update settings).

Reproducible: Sometimes

Steps to Reproduce:
1. I bring up the "New Java Class" wizard by right clicking on a package.

2. I fill out the name of the new Java class, and make no further changes to the default option.

3. when I click "Finish" I get the following dialog:

> Creation of element failed.
> org.eclipse.jdt.internal.core.search.matching.TypeDeclarationPattern

4. When I click "Ok" I'm returned to the "New Java Class" dialog.  I notice that a Java file has been created with the appropriate name, but instead of package and a skeleton class definition, this file is empty.
Comment 1 Ian Clarke CLA 2012-03-15 14:22:03 EDT
s/promoted/prompted
Comment 2 Ian Clarke CLA 2012-03-15 15:08:38 EDT
Ok, restarting Eclipse again resolved this issue.
Comment 3 Olivier Thomann CLA 2012-03-15 15:15:31 EDT
(In reply to comment #0)
> > Creation of element failed.
> > org.eclipse.jdt.internal.core.search.matching.TypeDeclarationPattern
Could you please provide the whole stack trace ? This can help to identify what is not working.
Once you restart, does it always work?
Comment 4 Ian Clarke CLA 2012-03-15 20:24:38 EDT
> Could you please provide the whole stack trace ? This can help to identify what
is not working.

Unfortunately it was not provided in the error dialog, and I didn't think to check my console.  Sorry.

> Once you restart, does it always work?

So far, so good.
Comment 5 Satyam Kandula CLA 2012-03-16 00:05:58 EDT
There could be some information in <workspace-folder>/.metadata/.log. Can you please give that?
Comment 6 Eclipse Genie CLA 2019-01-07 06:12:14 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Jay Arthanareeswaran CLA 2019-01-08 00:39:36 EST
Moving