Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345811 - Major problems during headless boot.
Summary: Major problems during headless boot.
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-14 11:18 EDT by Thomas Hallgren CLA
Modified: 2018-10-01 09:34 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hallgren CLA 2011-05-14 11:18:34 EDT
Buckminster uses the simpleconfigurator and there's no specific magic to how it's configured. Our headless product booted without problems with the 3.7M6 platform. When built with the 3.7RC1 however, we run into some major problems.

The first problem seems to be related to the org.eclipse.core.contenttype bundle not being activated in time. I get the following exception:

Caused by: java.lang.NullPointerException
	at org.eclipse.core.internal.resources.CharsetDeltaJob.startup(CharsetDeltaJob.java:187)
	at org.eclipse.core.internal.resources.CharsetManager.startup(CharsetManager.java:491)
	at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2511)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:2251)
	at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:439)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

AFAICS, the exception indicates that there's no service registered for the IContentTypeManager so I tweaked the bundles.info file to force a start of the contenttype bundle and that got me further. Now I get this exception instead:

java.lang.NullPointerException
	at org.eclipse.core.internal.registry.BufferedRandomInputStream.seek(BufferedRandomInputStream.java:130)
	at org.eclipse.core.internal.registry.TableReader.goToInputFile(TableReader.java:368)
	at org.eclipse.core.internal.registry.TableReader.loadExtensionPoint(TableReader.java:338)
	at org.eclipse.core.internal.registry.TableReader.loadExtensionPointTree(TableReader.java:309)
	at org.eclipse.core.internal.registry.RegistryObjectManager.load(RegistryObjectManager.java:421)
	at org.eclipse.core.internal.registry.RegistryObjectManager.basicGetObject(RegistryObjectManager.java:270)
	at org.eclipse.core.internal.registry.RegistryObjectManager.getObject(RegistryObjectManager.java:262)
	at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensionPoint(BaseExtensionPointHandle.java:106)
	at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getConfigurationElements(BaseExtensionPointHandle.java:66)
	at org.eclipse.core.internal.registry.ExtensionRegistry.getConfigurationElementsFor(ExtensionRegistry.java:302)
	at org.eclipse.core.internal.registry.ExtensionRegistry.getConfigurationElementsFor(ExtensionRegistry.java:290)
	at org.eclipse.buckminster.core.CorePlugin$2.run(CorePlugin.java:544)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

My guess is that this exception somehow stems from that the reader is accessed after it's been closed. I can't see any other reason for the NPE.

I'm marking this as a blocker because it renders our headless product completely unusable.
Comment 1 Thomas Watson CLA 2011-05-16 08:31:08 EDT
Could you provide a testcase to reproduce?  It appears the platform has been shutdown.  Are there no other errors in the log?
Comment 2 Thomas Hallgren CLA 2011-05-16 08:39:21 EDT
It seems to be intermittent. AFAIK, I haven't changed my setup but now I'm no longer able to reproduce the error. I'll keep testing and provide more info.
Comment 3 Eclipse Genie CLA 2018-09-30 15:48:40 EDT
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.