Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354377

Summary: When I start Eclipse as a non root user, the help will not work
Product: [Eclipse Project] Platform Reporter: eamonncostello
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: ericwill, grant_gayed, overholt, remy.suen, thatnitind
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description eamonncostello CLA 2011-08-10 09:35:06 EDT
Build Identifier: I20110613-1736

I get an error, "The Document Contains no data. I have noticed this in previous versions of eclipse. I really need to run eclipse as myself, so my files are owned by my account etc. I have tried deleting my .mozilla/ directory but it has no effect

Reproducible: Always

Steps to Reproduce:
1. Download and extract eclipse to ~/
2. type ~/eclipse/./eclipse (or ~/eclipse/eclipse, or cd into ~/eclipse and run ./eclipse or just eclipse, or ./eclipse & etc.
3. From the Help menu, Select Help Contents,
You get a dialog, "The Document Contains no data" and the help browser is blank
Comment 1 Remy Suen CLA 2011-08-10 10:57:52 EDT
So you don't have this problem when you run as root?
Comment 2 eamonncostello CLA 2011-08-10 11:14:56 EDT
No, It does not happen when I run as root.

I also tried the following, I gave full '777' access to my eclipse directory, and my workspace directory, this had no effect, I then gave 777 access to all the files in my eclipse Install, and no luck.
I read somewhere that the .mozilla folder might have cached info from a previous version of eclipse. so I deleted it and an ran eclipse again, still no luck!
BTW I'm running this on CentOS, this problem does NOT happen on Ubuntu (Natty Narwhal)
Comment 3 Andrew Overholt CLA 2011-08-10 11:39:47 EDT
I'd be interested to hear if the same thing happens with a clean new user account.  Is there anything on the commandline in the terminal from which you ran ./eclipse?
Comment 4 eamonncostello CLA 2011-08-10 12:42:04 EDT
Hi I created a new user (as root)
#useradd -m testuser1
#passwd password...etc

I then copied the Indigo archive over to testuser1's home dir,
and expanded and ran it. And it worked!
There must be something in my profile that is screwing eclipse up.
However, I hope you guys keep this bug open until I find out exactly what caused this problem, as I recently rebuilt it, and only installed a few things on it. 
I'm now going to do a directory compare between my two profiles and look for differences, could you point me in the right direction regarding what to look for?

Cheers,

Eamaonn.
Comment 5 eamonncostello CLA 2011-08-10 12:47:01 EDT
Hi I created a new user (as root)
#useradd -m testuser1
#passwd password...etc

I then copied the Indigo archive over to testuser1's home dir,
and expanded and ran it. And it worked!
There must be something in my profile that is screwing eclipse up.
However, I hope you guys keep this bug open until I find out exactly what caused this problem, as I recently rebuilt it, and only installed a few things on it. 
I'm now going to do a directory compare between my two profiles and look for differences, could you point me in the right direction regarding what to look for?

Cheers,

Eamaonn.
Comment 6 Andrew Overholt CLA 2011-08-10 14:58:21 EDT
Maybe try with a clean ~/.eclipse?  mv ~/.eclipse{,.bak20110810}; ~/eclipse/eclipse -data /tmp/testNewWorkspace
Comment 7 eamonncostello CLA 2011-08-11 06:41:46 EDT
Hi,
There your last suggestion does not work unfortunately. Do you know is there a command line option I can use, to launch eclipse with verbose logging?
Also is it possible to find out exactly what files/handles/resources, it looks for when it loads?
I'm pretty sure there is something in my profile that it does not like. 
Could it be a gtk problem? How does the embedded browser work? questions questions. At any rate at the site I am currently working on, I want to get everybody to use eclipse, but until I find out what's causing this, I will have to get them to use NetBeans, which is NOT COOL!
Any suggestions folks?
Many Thanks in Advance,

Eamonn Costello
Comment 8 Remy Suen CLA 2011-08-11 08:39:53 EDT
If you open the 'Internal Web Browser' view and try to use it, do you get the same error?
Comment 9 eamonncostello CLA 2011-08-11 10:19:53 EDT
Unfortunately yes, The same Dialog appears...."The Document Contains no Data".

Btw, this time I completely purged my machine of any eclipse related stuff. I did a "locate eclipse" until all there were no hits remaining, I then reinstalled and the problem remains,

E
Comment 10 Remy Suen CLA 2011-08-11 10:39:36 EDT
SWT, any ideas?
Comment 11 Grant Gayed CLA 2011-08-11 11:18:11 EDT
- Did you try deleting ~/.mozilla/eclipse?
- Presumably stand-alone firefox works better for you?
- Googling "The Document Contains no Data" finds many potential causes of this in stand-alone mozilla, so it's difficult to know which (if any) you're seeing.  Can you see if any of them help your case?
Comment 12 eamonncostello CLA 2011-08-11 12:01:05 EDT
This was the first thing I did before I raised this issue. 
There was a suggestion on an ibm support site to locate the file cookies.txt in the .mozilla/eclipse directory, but no such file exists: http://bit.ly/nLUOP0

AS mentioned previously I had tried deleting the eclipse directory, then the entire .mozilla directory, but did not solve problem.
I also saw a promising tip at: http://bit.ly/r0xCcK.
It mentioned setting "browser.xul.error_pages.enabled" to true, but this was already set to true by default.
Any other references to "the Document contains no data"  in google refer to adobe stuff and other seemingly non relevant software.
There was one site about java servlets, but I dont know too much about that, I'm a php developer.
Comment 13 Eric Williams CLA 2017-03-14 14:30:46 EDT
I cannot reproduce this issue. Given the age of the bug, I am going to close this. Please file a new bug against Oxygen if the issue pops up again.