Bug 217038 - error: Could not initialize the application's security component.
Summary: error: Could not initialize the application's security component.
Status: RESOLVED DUPLICATE of bug 206432
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2008-01-30 00:14 EST by Egon Kocjan CLA
Modified: 2008-06-03 15:48 EDT (History)
1 user (show)

See Also:


Attachments
find eclipse (94.55 KB, text/plain)
2008-02-03 12:28 EST, Egon Kocjan CLA
no flags Details
find workspace (2.84 KB, text/plain)
2008-02-03 12:28 EST, Egon Kocjan CLA
no flags Details
strace ./eclipse | grep mozilla (3.25 KB, text/plain)
2008-02-03 12:29 EST, Egon Kocjan CLA
no flags Details
strace after creating .mozilla/eclipse (6.72 KB, text/plain)
2008-02-03 12:34 EST, Egon Kocjan CLA
no flags Details
patch that fixes this for eclipse 3.3.x (2.54 KB, patch)
2008-06-03 15:48 EDT, Grant Gayed CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Egon Kocjan CLA 2008-01-30 00:14:31 EST
I have just installed Eclipse Europa (eclipse-java-europa-fall2-linux-gtk.tar.gz) on Ubuntu Hardy and I get this message every time I start it:

Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features.

The error message will not show anymore, if you do "mkdir $HOME/.mozilla/eclipse".
Comment 1 Paul Webster CLA 2008-01-30 10:40:46 EST
You need to report this problem to your ubuntu package maintainers.  It sounds like it could be a conflict between your eclipse install and your embedded browser provider (mozilla? firefox?)

PW
Comment 2 Egon Kocjan CLA 2008-02-01 20:08:45 EST
I am not using packaged eclipse because it is older (3.2) - I have downloaded it from eclipse.org site, that's why I am reporting it here.
Comment 3 Paul Webster CLA 2008-02-03 08:07:32 EST
Where did you install it?  Did you untar it over an existing installation?  Make sure you are not running with GCJ/Classpath.  Please attach any log files <workspace>/.metadata/.log?

You say 3.2, but Europa is 3.3 ... if it's 3.2, then please try 3.3.  You can get the correct version number from Help>About eclipse, or if eclipse won't come up the next best thing is to find the eclipse/plugins/org.eclipse.ui.workbench_*.jar

PW
Comment 4 Egon Kocjan CLA 2008-02-03 12:27:53 EST
No, it's a misunderstanding - ubuntu has only eclipse 3.2, so I downloaded the latest 3.3 from eclipse site directly.

I used this tar.gz: http://www.mirrorservice.org/sites/download.eclipse.org/.../release/20071103/eclipse-java-europa-fall2-linux-gtk.tar.gz
so now I have eclipse in ~/eclipse

About dialog:
Version: 3.3.1.1
Build id: M20071023-1652

I uninstalled gcj just in case so I have sun's java only:
$ java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

I also deleted the eclipse and workspace directory and started from fresh install just to be sure.

I could not find any log files in workspace, I attached "find eclipse" and "find workspace" output.

Also, I attached the output from strace ./eclipse | grep mozilla
Comment 5 Egon Kocjan CLA 2008-02-03 12:28:26 EST
Created attachment 88710 [details]
find eclipse
Comment 6 Egon Kocjan CLA 2008-02-03 12:28:45 EST
Created attachment 88711 [details]
find workspace
Comment 7 Egon Kocjan CLA 2008-02-03 12:29:14 EST
Created attachment 88712 [details]
strace ./eclipse | grep mozilla
Comment 8 Egon Kocjan CLA 2008-02-03 12:33:30 EST
I have manually created the directory .mozilla/eclipse and this is the strace that I get:
Comment 9 Egon Kocjan CLA 2008-02-03 12:34:10 EST
Created attachment 88713 [details]
strace after creating .mozilla/eclipse
Comment 10 Paul Webster CLA 2008-02-03 12:44:28 EST
Thanx, Egon, that helps.

Have you ever run firefox?  I think if you ran it once your exception would go away.  It seems eclipse doesn't like it if some of the firefox local files haven't been created.

PW
Comment 11 Egon Kocjan CLA 2008-02-03 14:43:48 EST
Firefox configuration files are stored in .mozilla/firefox, so it's separate from .mozilla/eclipse.

I've also checked ubuntu diff for eclipse 3.2.2 and there seems to be no mention of .mozilla/eclipse
http://archive.ubuntu.com/ubuntu/pool/universe/e/eclipse/eclipse_3.2.2-4ubuntu1.diff.gz
Comment 12 Grant Gayed CLA 2008-02-05 09:33:25 EST
This is very likely a dup of bug 206432 which is fixed in the 3.4 stream.  Can you see if this works for you with a build like 3.4M4?
Comment 13 Grant Gayed CLA 2008-02-05 09:36:32 EST
On second thought, Ubuntu Hardy may have an additional problem with 3.4M4 if it has a 1.9-stream xulrunner on it.  Instead of trying eclipse 3.4M4 can you try a newer integration build, such as http://download.eclipse.org/eclipse/downloads/drops/I20080129-1400/index.php ?
Comment 14 Egon Kocjan CLA 2008-02-06 22:36:00 EST
I've just tried prebuilt eclipse-SDK-N20080203-0010-linux-gtk.tar.gz and it works OK (.mozilla/eclipse was created automatically)
Comment 15 Grant Gayed CLA 2008-02-07 09:47:41 EST
ok, closing report as a duplicate of bug 206432


*** This bug has been marked as a duplicate of bug 206432 ***
Comment 16 Grant Gayed CLA 2008-06-03 15:48:41 EDT
Created attachment 103411 [details]
patch that fixes this for eclipse 3.3.x