Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346821 - Crashes when I try to create a new .xml file in a new folder
Summary: Crashes when I try to create a new .xml file in a new folder
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 01:29 EDT by nalcanter CLA
Modified: 2011-06-09 15:06 EDT (History)
1 user (show)

See Also:


Attachments
.log file (835.50 KB, text/plain)
2011-05-23 21:35 EDT, nalcanter CLA
no flags Details
Sample project (568.94 KB, application/x-zip-compressed)
2011-05-25 22:41 EDT, nalcanter CLA
no flags Details
.metadata folder (23.56 KB, application/x-zip-compressed)
2011-05-25 22:43 EDT, nalcanter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nalcanter CLA 2011-05-23 01:29:30 EDT
Build Identifier: 20110218-0911

I am using Eclipse with the Android SDK to learn how to create Droid Apps.  The instructions I get out of my book (and other internet sources) are to create a new folder called "menu" in my project's resource folder.  I can do this, but when I try to do the next step -- which is to create an .xml file called "mainmenu.xml" in the new folder, Eclipse crashes with a "java.lang.StackOverflow error".  I can create new .xml files in other folders that were automatically generated when I created the new project, but if I try to create any new file in a folder I create, it crashes.  I've tried naming the file several random names in hopes that it was the file name that was causing confusion, but still came up with the same problem.

Reproducible: Always

Steps to Reproduce:
1.Create new Android project
2.Create new folder "menu" in the /res folder
3.Create a new file in the newly created "menu" folder
Comment 1 Dani Megert CLA 2011-05-23 02:05:06 EDT
Please attach the '.log' file (in '.metadata' or get it via 'Error Log' view).

Can you create files if you create a general project and folder?
Comment 2 nalcanter CLA 2011-05-23 21:35:32 EDT
Created attachment 196392 [details]
.log file

Here is the .log file.  I was able to create a new folder and .xml file in a regular Java project.
Comment 3 Dani Megert CLA 2011-05-24 01:52:11 EDT
The SOE happens in WST but it could also be caused by Android Dev. Moving to WST for further investigation.

Maybe you could remote debug your workspace with a breakpoint at XMLModelUpdater.java:440 so that we see the call chain?
Comment 4 Nick Sandonato CLA 2011-05-24 17:25:26 EDT
Can you provide us with a sample file that's causing this problem? Thanks.
Comment 5 Nitin Dahyabhai CLA 2011-05-24 18:37:30 EDT
(In reply to comment #2)
> Created attachment 196392 [details]
> .log file
> 
> Here is the .log file.  I was able to create a new folder and .xml file in a
> regular Java project.

Are there additional traces, specifically for a stack overflow that also have a "bottom"?  There's no information on how it entered the troublesome method.
Comment 6 nalcanter CLA 2011-05-25 22:41:15 EDT
Created attachment 196621 [details]
Sample project

Here is the project that the error occurred in.  I still have the "menu" folder that I created in the /res directory.  If it tried to create a file in that folder, it crashed.
Comment 7 nalcanter CLA 2011-05-25 22:43:44 EDT
Created attachment 196622 [details]
.metadata folder

I'm not sure how to find the bottom of the report (I don't know a lot about this kind of stuff).  I've attached my entire .metadata folder.  Hopefully what you need is in there.  Let me know if there is anything else I can do to help.
Comment 8 Nick Sandonato CLA 2011-06-08 15:55:42 EDT
Hi, thanks for providing the workspace and your logs. I have not been able to reproduce this in plain WTP. As Dani said, the Android SDK may be a factor here.
Comment 9 nalcanter CLA 2011-06-08 16:04:33 EDT
I've worked on a few other projects since the original problem, and I haven't had any problems.  Thanks for taking a look at it.

(In reply to comment #8)
> Hi, thanks for providing the workspace and your logs. I have not been able to
> reproduce this in plain WTP. As Dani said, the Android SDK may be a factor
> here.
Comment 10 Nick Sandonato CLA 2011-06-09 14:08:15 EDT
(In reply to comment #9)
> I've worked on a few other projects since the original problem, and I haven't
> had any problems.  Thanks for taking a look at it.
> 
> (In reply to comment #8)
> > Hi, thanks for providing the workspace and your logs. I have not been able to
> > reproduce this in plain WTP. As Dani said, the Android SDK may be a factor
> > here.

I'll resolve as works for me. If you find that you run into this again and you have new information that might lead to helping to reproduce the problem, please reopen it.