When I start Eclipse, I sometimes get the following error:
!SESSION Wed Dec 16 09:31:26 EST 2015 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2015-12-16 09:31:26.409
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:404)
at java.lang.Long.parseLong(Long.java:483)
at org.eclipse.equinox.launcher.Main.getLastKnownConfigIniBaseTimestamp(Main.java:1966)
at org.eclipse.equinox.launcher.Main.processConfiguration(Main.java:1905)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
A similar error with a different call stack and cause is described here.
The problem is that my Linux machine was forgetting its username database (due to some obscure Winbind problem). As a result, Eclipse can't look up my user information and (presumably) can't find my home directory to load and parse its configuration.
(A symptom is that, when run under strace, I could see that Eclipse was looking under ? for its .eclipse configuration directory.)
Fixing the username database so that Eclipse can find my user account fixed the problem. (This has also been logged on Eclipse's Bugzilla.)
Related
when I installed eclipse on raspberry pi 4. Eclipse didn't open and show error message.
how can i solve this problem?
An error has occurred. See the log file /home/pi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1598254313823.log
---------- log
!SESSION Mon Aug 24 07:10:02 BST 2020 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2020-08-24 07:10:02.586
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
You can try executing eclipse with following parameters
eclipse -clean -console -consoleLog -debug
This will list configurations and what JAR files are going to load.
for example: org.eclipse.core.runtime.adaptor.EclipseStarter
comes from osgi.framework=file:plugins/org.eclipse.osgi_3.8.1.dist.jar within /usr/lib/eclipse/configuration/config.ini
so we could check existense by typing command
ls /usr/lib/eclipse/plugins/org.eclipse.osgi_3.8.1.dist.jar
if file was not there, try use sudo updatedb
to update file location , and then use locate org.eclipse.osgi
Here it will list some JAR files, try to use pcmanfm to open each jar file and check whether org/eclipse/core/runtime/adaptor/EclipseStarter.class existed.
i.e. I found that /usr/share/java/org.eclipse.osgi.nb.jar contains EclipseStarter.class
so it would fix this issue by creating symbolic link through command
sudo ln -s /usr/share/java/org.eclipse.osgi.nb.jar plugins/org.eclipse.osgi_3.8.1.dist.jar
Or, just modify osgi.framework to point to /usr/share/java/org.eclipse.osgi.nb.jar
Problems occurred while performing provisioning operation: Profile id SELF is not registered.
Profile id SELF is not registered.
Please share your thought on this Thanks
Part of Error Log:
!ENTRY org.eclipse.epp.logging.aeri.core 2 1 2017-01-07 20:55:23.822
!MESSAGE AERI failed with an error. Please report this error: null ; version: 1.100.0.v20160211-1103
!STACK 0
java.lang.NullPointerException
from run go to the %userprofile% --> C:\users\
go to .p2 folder --- delete all folders/files
run the eclipse ..... close the eclipse ... and start again...
In my case, it was sufficient to delete the *.profile.gz files in
C:\Users\%username%\.p2\org.eclipse.equinox.p2.engine\profileRegistry\<your profile folder>\
(or at least move the files to somewhere else) and restart Eclipse.
I didn't figure out why there seems to be different profile IDs. Maybe because I installed my Eclipse with Oomph, and that was generating some other profile which caused the problem. Just a guess.
Just last week I installed egit with the plugin manager in eclipse (K). Now, I wanted to install ObjectAid. Only, none of my repositories (even the standard ones) are able to connect.
"Could not find... url"
I already went to preferences->install/update-> reloaded the urls, but then I get an error as well:
Unable to read repository at http://download.eclipse.org/tools/cdt/releases/kepler/content.xml.
Unable to read repository at http://download.eclipse.org/tools/cdt/releases/kepler/content.xml.
Failure initializing default SSL context
I also looked at the network settings, changed "native" to "direct", to no avail.
I know I can just download the plugin and install it manually, but that is cumbersome, I would like the network install to work.
Could it be some sort of "locked" file somewhere?
Update
My git push is also not working (local commit works fine). This is probably related. Strange that the internal browser works though.
Error log
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at http://archive.eclipse.org/tools/cdt/releases/kepler/content.xml.
at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:192)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:88)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:668)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.doLoad(LoadMetadataRepositoryJob.java:117)
at org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob.runModal(LoadMetadataRepositoryJob.java:102)
at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$2.runModal(PreloadingRepositoryHandler.java:83)
at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.IllegalStateException: Failure initializing default SSL context
at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:211)
at org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
at org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
at org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:45)
at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:274)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
... 1 more
Caused by: java.security.KeyStoreException: problem accessing trust storejava.io.IOException: Invalid keystore format
at sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:75)
at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:250)
at org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:190)
at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
... 11 more
!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2013-10-10 10:31:15.936
!MESSAGE Unable to read repository at http://archive.eclipse.org/tools/cdt/releases/kepler/content.xml.
!STACK 0
java.lang.IllegalStateException: Failure initializing default SSL context
at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:211)
at org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
at org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
at org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:45)
at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:274)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.security.KeyStoreException: problem accessing trust storejava.io.IOException: Invalid keystore format
at sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:75)
at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:250)
at org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:190)
at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
... 11 more
!ENTRY org.eclipse.equinox.p2.ui 4 0 2013-10-10 10:31:22.730
!MESSAGE Unable to read repository at http://download.eclipse.org/releases/kepler/content.xml.
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at http://download.eclipse.org/releases/kepler/content.xml.
at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:192)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:88)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:668)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.eclipse.equinox.p2.ui.ProvisioningUI.loadMetadataRepository(ProvisioningUI.java:439)
at org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement.getMetadataRepository(MetadataRepositoryElement.java:120)
at org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement.fetchChildren(MetadataRepositoryElement.java:70)
at org.eclipse.equinox.internal.p2.ui.model.RemoteQueriedElement.fetchDeferredChildren(RemoteQueriedElement.java:34)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.IllegalStateException: Failure initializing default SSL context
at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:211)
at org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
at org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
at org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:45)
at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:274)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
... 1 more
Caused by: java.security.KeyStoreException: problem accessing trust storejava.io.IOException: Invalid keystore format
at sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:75)
at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:250)
at org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:190)
at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
... 11 more
!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2013-10-10 10:31:22.730
!MESSAGE Unable to read repository at http://download.eclipse.org/releases/kepler/content.xml.
!STACK 0
Could there be a problem with the fact that I also have eclipse juno on this computer? I run it with a different workspace though.
Fantastic! I simply appended the port number 80 to the URL and it works for me!
http://download.eclipse.org:80/releases/kepler
Possible Solutions:
Try starting eclipse with the following argument and add it to eclipse.ini :
-vmargs -Djava.net.preferIPv4Stack=true
Check the port and proxy settings under
Window -> Preferences -> General -> Network Connections
You need to make sure that whatever outgoing port(s) your organization allows, you're using one of those, and enter the settings for any proxy your organization requires. Change the port to a usable port like 80
It is a bug in open jdk 1.7 from the suse repos. So I installed the jdk 1.7 rpm which is offered by Oracle. Be sure that your eclipse points to the right java version
(Window >> Preferences >> Java >> Installed JRE).
I had the same symptoms, on Fedora. Installing plugins worked once, then every source failed on the next attempt.
I saw on a forum post to try adding -clean to eclipse on the command line. Starting with eclipse -clean put me into a mode where I could not install any software, but after a quit and starting eclipse normally, I could install plugins again without any complaints.
Looking around, this flag clears out a bunch internal caches in eclipse. As this was only my second time running eclipse, I wonder if I just had bad luck or if it's typically this shaky.
My antivirus firewall was causing this problem.
After I disabled the firewall of my antivirus, I am able to fetch child of http://download.eclipse.org/releases/mars
I'm trying to run a headless eclipse build but I'm getting stuck. My context is that I want to use the PyDev code analysis without having to fire up the eclipse gui. I am aware of the other command line tools to do code analysis (pyflakes, pylint, etc).
The command I have so far is:
java -jar /path/to/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -noSplash -data "/path/to/workspace" -application org.eclipse.jdt.apt.core.aptBuild
My java version 1.6.0_31, my eclipse version is 3.7.2, and my pydev version is 2.5.0.
When I run the command, it looks like it is working, but it never catches any errors or warnings.
...
PyDev: Analyzing 29 of 33 (forms.py)
PyDev: Analyzing 29 of 33 (forms.py)
PyDev: Analyzing 29 of 33 (forms.py)
PyDev: Analyzing 29 of 33 (forms.py)
...
If I tail -f /path/to/workspace/.metadata/.log, I get a huge stack trace:
!ENTRY org.eclipse.equinox.preferences 4 2 2012-07-30 17:48:39.612
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.preferences".
!STACK 0
java.lang.ExceptionInInitializerError
at org.eclipse.debug.internal.ui.DebugUIPreferenceInitializer.setDefault(DebugUIPreferenceInitializer.java:186)
at org.eclipse.debug.internal.ui.DebugUIPreferenceInitializer.setThemeBasedPreferences(DebugUIPreferenceInitializer.java:204)
at org.eclipse.debug.internal.ui.DebugUIPreferenceInitializer.initializeDefaultPreferences(DebugUIPreferenceInitializer.java:79)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:281)
..... TRUNCATED ......
!ENTRY org.eclipse.osgi 4 0 2012-07-30 17:48:39.622
!MESSAGE An error occurred while automatically activating bundle org.eclipse.debug.ui (42).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.debug.internal.ui.DebugUIPlugin.start() of bundle org.eclipse.debug.ui.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
..... TRUNCATED .......
java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.startup(LaunchingResourceManager.java:546)
at org.eclipse.debug.internal.ui.DebugUIPlugin.getLaunchingResourceManager(DebugUIPlugin.java:315)
at org.eclipse.debug.internal.ui.DebugUIPlugin.start(DebugUIPlugin.java:516)
..... TRUNCATED ......
!ENTRY org.eclipse.osgi 4 0 2012-07-30 17:48:39.624
!MESSAGE An error occurred while automatically activating bundle org.eclipse.debug.core (41).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.debug.core.DebugPlugin.start() of bundle org.eclipse.debug.core.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
..... TRUNCATED ......
My suspicion is that PyDev needs the gui to render the errors/warnings.
PyDev needs the gui to render errors/warnings and in general it was not done to be used in the command line... now, having said that, it does have unit-tests that run the code-analysis without requiring a gui (nor even eclipse loaded), but you have to configure the interpreter/projects in-memory for that to work.
See:
https://github.com/aptana/Pydev/blob/development/plugins/com.python.pydev.analysis/tests/com/python/pydev/analysis/OccurrencesAnalyzerTest.java
https://github.com/aptana/Pydev/blob/development/plugins/com.python.pydev.analysis/tests/com/python/pydev/analysis/AnalysisTestsBase.java
for tests that do code-analysis without requiring the eclipse workbench to be loaded at all (i.e.: doesn't even need eclipse to be run headless -- it could be run as a simple java program, but you still have to do the java main([]) using PyDev in the CLASSPATH and using its API to properly set the interpreter used in PyDev as well as the projects/pythonpath).
You can take a look at the setUp of the tests (i.e.: don't forget to also look superclasses such as CodeCompletionTestsBase/AnalysisTestsBase).
Note: if you do create such a main([]), please provide a patch for PyDev as it may be used by others...
As an implementation note, such a main should probably gather all the current PYTHONPATH entries from the shell being launched and configure all of those in the interpreter... Also, it should probably receive a directory as a parameter so that it analyzes all files in the tree (the startup is probably going to take the most of your time to configure things, so, ideally analyze as much files as you can from a single run, as the PyDev code-analysis was done to cache lots of things in the startup and then use the information from RAM -- or maybe create a server process that's always live?).
Today I was running into problems with eclipse, like every time I closed a project a window popped up saying something like "error saving workspace" and complaining about apache xerces.
I decided to download a fresh install, and now it won't even start. I tried many variants (classic, javase, c++), hoping there was some distribution issues, but nothing worked. Eclipse starts saying "an error has occurred, see configurationlog ..."
Any idea? Are there some cached files in the system that might have become corrupted? I tried doing a "find / | grep eclipse" but found nothing interesting.
Thanks a lot for your help, I'm quite in trouble without it
Regards,
Nicola Montecchio
p.s. I tried also with 32 bit jvm but nothing changed
[edit] here is relevant bits of the log produced when starting:
!ENTRY org.eclipse.osgi 4 0 2010-07-23 21:35:16.835
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
!ENTRY org.eclipse.osgi 4 0 2010-07-23 21:35:16.839
!MESSAGE
!STACK 0
org.osgi.framework.ServiceException: Exception in org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorHook$ParsingService.getService()
!ENTRY org.eclipse.equinox.registry 4 0 2010-07-23 21:35:16.840
!MESSAGE Could not parse XML contribution for "org.eclipse.ant.core//plugin.xml". Any contributed extensions and extension points will be ignored.
!STACK 0
org.xml.sax.SAXException: Could not acquire XML parsing service.
and several other mostly related to xml ...
Sounds like your current workspace is severely broken. Create a new workspace and import the projects from the old locations (File -> Import), and see if that helps.
Things I'd try are renaming your workspace (so Eclipse will use a fresh one when starting up) or running Eclipse with the -clean parameter (in the console with ./eclipse -clean in your eclipse/ folder).