Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Converting IFile to IDocument
Converting IFile to IDocument [message #982652] Tue, 13 November 2012 09:54 Go to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi all,

I was using the following method calls to convert an IFile to an IDocument:

IDocumentProvider provider = new TextFileDocumentProvider();
provider.connect(file); // file is of IFile
IDocument document = provider.getDocument(file);
provider.disconnect(file);


However, this code runs in a headless Eclipse instance that I create (with -nosplash option) and it turns out that running any code that requires UI operations (especially access to the UI Thread) is not a good idea for headless applications. For once, on Mac, it turns out that the UI thread can only be initialized with the main thread, which causes a couple of problems.

So, I was wondering whether there is a way to convert an IFile object to an IDocument object without touching UI thread (and/or code)?

Thanks in advance, best regards,

[Updated on: Tue, 13 November 2012 09:56]

Report message to a moderator

Re: Converting IFile to IDocument [message #982777 is a reply to message #982652] Tue, 13 November 2012 12:10 Go to previous messageGo to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
I realized that I can also get an IDocument through:

byte [] content = // read the content of IFile through its stream (getContents())
String contentS = new String(content);
IDocument document = new Document(contentS);


Is there a reason not to do this? This seems not to use the UI thread and/or code. Are there any performance or other implications?

Thank you,
Re: Converting IFile to IDocument [message #982790 is a reply to message #982777] Tue, 13 November 2012 12:17 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 13.11.2012 13:10, Kivanc Muslu wrote:
> I realized that I can also get an IDocument through:
>
>
> byte [] content = // read the content of IFile through its stream
> (getContents())
> String contentS = new String(content);
> IDocument document = new Document(contentS);
>
>
> Is there a reason not to do this?
It e.g. neglects the encoding of the IFile.

Take a look at file buffers. You can look in the
TextFileDocumentProvider code how it's used.

Dani
> This seems not to use the UI thread and/or code. Are there any
> performance or other implications?
>
> Thank you,
Re: Converting IFile to IDocument [message #983246 is a reply to message #982790] Tue, 13 November 2012 19:59 Go to previous messageGo to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi Dani,

Thanks for the reply.

I have looked at the TextFileDocumentProvider#createFileInfo() code and created the following code sequence for my purposes:
ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
LocationKind locationKind = LocationKind.IFILE;
IPath location = file.getFullPath();
manager.connect(location, locationKind, null);
ITextFileBuffer fileBuffer = manager.getTextFileBuffer(location, locationKind);
IDocument result = fileBuffer.getDocument();
manager.disconnect(location, locationKind, null);
return result;


When I run the code on the headless Eclipse application, I get the following error though: (the trace is quite long, sorry).
***WARNING: Display must be created on main thread due to Cocoa restrictions.

!ENTRY org.eclipse.equinox.preferences 4 2 2012-11-13 11:51:48.486
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.preferences".
!STACK 0
java.lang.ExceptionInInitializerError
	at org.eclipse.jdt.ui.PreferenceConstants.initializeDefaultValues(PreferenceConstants.java:3739)
	at org.eclipse.jdt.internal.ui.JavaUIPreferenceInitializer.initializeDefaultPreferences(JavaUIPreferenceInitializer.java:38)
	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:300)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:303)
	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:131)
	at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368)
	at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166)
	at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237)
	at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:410)
	at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:663)
	at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:805)
	at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
	at org.eclipse.core.runtime.preferences.DefaultScope.getNode(DefaultScope.java:76)
	at org.eclipse.ui.preferences.ScopedPreferenceStore.getDefaultPreferences(ScopedPreferenceStore.java:250)
	at org.eclipse.ui.preferences.ScopedPreferenceStore.getPreferenceNodes(ScopedPreferenceStore.java:285)
	at org.eclipse.ui.preferences.ScopedPreferenceStore.internalGet(ScopedPreferenceStore.java:475)
	at org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean(ScopedPreferenceStore.java:387)
	at org.eclipse.jdt.internal.ui.preferences.MembersOrderPreferenceCache.install(MembersOrderPreferenceCache.java:61)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:426)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4361)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.SWT.error(SWT.java:4247)
	at org.eclipse.swt.widgets.Display.error(Display.java:1068)
	at org.eclipse.swt.widgets.Display.createDisplay(Display.java:825)
	at org.eclipse.swt.widgets.Display.create(Display.java:808)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
	at org.eclipse.swt.widgets.Display.getDefault(Display.java:1386)
	at org.eclipse.jface.preference.PreferenceConverter.<clinit>(PreferenceConverter.java:81)
	... 61 more

!ENTRY org.eclipse.osgi 4 0 2012-11-13 11:51:48.494
!MESSAGE An error occurred while automatically activating bundle org.eclipse.jdt.ui (160).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.eclipse.jdt.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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	... 37 more
Root exception:
org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)

!ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:51:48.496
!MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.jdt.ui (160).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.eclipse.jdt.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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 31 more
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	... 37 more

!ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:16.140
!MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.jdt.ui (160).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.eclipse.jdt.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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 31 more
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	... 37 more

!ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:16.142
!MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.jdt.ui (160).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.eclipse.jdt.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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 31 more
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	... 37 more

!ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:27.484
!MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.jdt.ui (160).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.eclipse.jdt.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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 31 more
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	... 37 more

!ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:27.486
!MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.jdt.ui (160).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
	at org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
	at org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
	at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
	at com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
	at com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
	at com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
	at com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
	at com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
	at com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.eclipse.jdt.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:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 31 more
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
	at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
	at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
	at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
	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)
	... 37 more


It looks like ITextFileBufferManager#connect indirectly tries to access the UI thread again, causing similar exceptions. Shall I try using ITextFileBuffer without getting them through the manager?

Thank you,
Re: Converting IFile to IDocument [message #983266 is a reply to message #983246] Tue, 13 November 2012 20:21 Go to previous messageGo to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
I have also tried the following (which tried to go over FileBuffers without touching managers as much as possible):

        ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
        ResourceTextFileBuffer fileBuffer = new ResourceTextFileBuffer((ResourceTextFileBufferManager) manager);
        IPath location = file.getFullPath();
        fileBuffer.create(location, null);
        IDocument result = fileBuffer.getDocument();
        return result;


This time, for filebuffer.create(location, null); I get almost the same exception.
Re: Converting IFile to IDocument [message #984060 is a reply to message #983246] Wed, 14 November 2012 11:13 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 13.11.2012 20:59, Kivanc Muslu wrote:
> Hi Dani,
> Thanks for the reply.
>
> I have looked at the TextFileDocumentProvider#createFileInfo() code
> and created the following code sequence for my purposes:
>
> ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
> LocationKind locationKind = LocationKind.IFILE;
> IPath location = file.getFullPath();
> manager.connect(location, locationKind, null);
> ITextFileBuffer fileBuffer = manager.getTextFileBuffer(location,
> locationKind);
> IDocument result = fileBuffer.getDocument();
> manager.disconnect(location, locationKind, null);
> return result;
>
>
> When I run the code on the headless Eclipse application, I get the
> following error though: (the trace is quite long, sorry).
>
> ***WARNING: Display must be created on main thread due to Cocoa
> restrictions.

This indicates that you also have UI plug-ins in your target. They can
extend core bundles and will be loaded if needed. You need to remove the
ui bundles from your target.

Dani
>
> !ENTRY org.eclipse.equinox.preferences 4 2 2012-11-13 11:51:48.486
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.equinox.preferences".
> !STACK 0
> java.lang.ExceptionInInitializerError
> at
> org.eclipse.jdt.ui.PreferenceConstants.initializeDefaultValues(PreferenceConstants.java:3739)
> at
> org.eclipse.jdt.internal.ui.JavaUIPreferenceInitializer.initializeDefaultPreferences(JavaUIPreferenceInitializer.java:38)
> at
> org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:300)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:303)
> at
> org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:131)
> at
> org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368)
> at
> org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166)
> at
> org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237)
> at
> org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:410)
> at
> org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:663)
> at
> org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:805)
> at
> org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
> at
> org.eclipse.core.runtime.preferences.DefaultScope.getNode(DefaultScope.java:76)
> at
> org.eclipse.ui.preferences.ScopedPreferenceStore.getDefaultPreferences(ScopedPreferenceStore.java:250)
> at
> org.eclipse.ui.preferences.ScopedPreferenceStore.getPreferenceNodes(ScopedPreferenceStore.java:285)
> at
> org.eclipse.ui.preferences.ScopedPreferenceStore.internalGet(ScopedPreferenceStore.java:475)
> at
> org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean(ScopedPreferenceStore.java:387)
> at
> org.eclipse.jdt.internal.ui.preferences.MembersOrderPreferenceCache.install(MembersOrderPreferenceCache.java:61)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:426)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> 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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:4361)
> at org.eclipse.swt.SWT.error(SWT.java:4276)
> at org.eclipse.swt.SWT.error(SWT.java:4247)
> at org.eclipse.swt.widgets.Display.error(Display.java:1068)
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:825)
> at org.eclipse.swt.widgets.Display.create(Display.java:808)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:699)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:690)
> at org.eclipse.swt.widgets.Display.getDefault(Display.java:1386)
> at
> org.eclipse.jface.preference.PreferenceConverter.<clinit>(PreferenceConverter.java:81)
> ... 61 more
>
> !ENTRY org.eclipse.osgi 4 0 2012-11-13 11:51:48.494
> !MESSAGE An error occurred while automatically activating bundle
> org.eclipse.jdt.ui (160).
> !STACK 0
> org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle
> org.eclipse.jdt.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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null
> argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> ... 37 more
> Root exception:
> org.eclipse.core.runtime.AssertionFailedException: null argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> 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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
>
> !ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:51:48.496
> !MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class
> org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.ui (160).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle
> org.eclipse.jdt.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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> ... 31 more
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null
> argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> ... 37 more
>
> !ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:16.140
> !MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class
> org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.ui (160).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle
> org.eclipse.jdt.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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> ... 31 more
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null
> argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> ... 37 more
>
> !ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:16.142
> !MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class
> org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.ui (160).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle
> org.eclipse.jdt.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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> ... 31 more
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null
> argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> ... 37 more
>
> !ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:27.484
> !MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class
> org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.ui (160).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle
> org.eclipse.jdt.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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> ... 31 more
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null
> argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> ... 37 more
>
> !ENTRY org.eclipse.equinox.registry 4 1 2012-11-13 11:52:27.486
> !MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class
> org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.ui (160).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getExtension(ExtensionsRegistry.java:227)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.doGetDocumentSetupParticipants(ExtensionsRegistry.java:352)
> at
> org.eclipse.core.internal.filebuffers.ExtensionsRegistry.getDocumentSetupParticipants(ExtensionsRegistry.java:369)
> at
> org.eclipse.core.internal.filebuffers.ResourceExtensionRegistry.getDocumentSetupParticipants(ResourceExtensionRegistry.java:119)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBufferManager.createEmptyDocument(ResourceTextFileBufferManager.java:144)
> at
> org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
> at
> org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)
> at
> org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
> at
> com.kivancmuslu.www.solstice.eclipse.ResourceUtility.convertToDocument(ResourceUtility.java:125)
> at
> com.kivancmuslu.www.solstice.logic.serialization.FileSerialization.deserializeToDocument(FileSerialization.java:45)
> at
> com.kivancmuslu.www.solstice.logic.serialization.TextSelectionSerialization.deserialize(TextSelectionSerialization.java:58)
> at
> com.kivancmuslu.www.solstice.client.logic.SolsticeElementChangedNotifier.processTextSelectionChangedMessage(SolsticeElementChangedNotifier.java:41)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processTextSelectionChangedMessage(SolsticeClient.java:140)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClient.processMessage(SolsticeClient.java:132)
> at
> com.kivancmuslu.www.solstice.client.SolsticeClientThread.run(SolsticeClientThread.java:70)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle
> org.eclipse.jdt.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:300)
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
> ... 31 more
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null
> argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
> at
> org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
> at
> org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
> at
> org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
> at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
> 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)
> ... 37 more
>
>
> It looks like ITextFileBufferManager#connect indirectly tries to
> access the UI thread again, causing similar exceptions. Shall I try
> using ITextFileBuffer without getting them through the manager?
>
> Thank you,
Re: Converting IFile to IDocument [message #984602 is a reply to message #984060] Wed, 14 November 2012 20:59 Go to previous messageGo to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Quote:

This indicates that you also have UI plug-ins in your target. They can
extend core bundles and will be loaded if needed. You need to remove the
ui bundles from your target.


Hi Dani, could you please explain this a little more in detail?

Currently my headless Eclipse application depends on the following (defined by the dependencies in plugin.xml file):
1- org.eclipse.core.resources
2- org.eclipse.equinox.app
3- org.eclipse.core.runtime
4- org.eclipse.jface.text
5- org.eclipse.ui.editors
6- a common library that I develop as also a plug-in project.
7- a logging library that is imported as a jar (that has no dependencies).

Are the problematic dependencies here org.eclipse.jface.text and org.eclipse.ui.editors? I need jface.text for using org.eclipse.jface.text.TextSelection and ui.editors for using org.eclipse.ui.texteditor.IDocumentProvider and org.eclipse.ui.editors.text.TextFileDocumentProvider. Shall I remove these dependencies, too?

By the way, the common library depends on the following as extra (but I don't think that should be the problem)
1- org.eclipse.jdt.core

Thank you,
Re: Converting IFile to IDocument [message #985232 is a reply to message #984602] Thu, 15 November 2012 08:54 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 14.11.2012 21:59, Kivanc Muslu wrote:
> Quote:
>> This indicates that you also have UI plug-ins in your target. They
>> can extend core bundles and will be loaded if needed. You need to
>> remove the ui bundles from your target.
>
>
> Hi Dani, could you please explain this a little more in detail?
>
> Currently my headless Eclipse application depends on the following
> (defined by the dependencies in plugin.xml file):
> 1- org.eclipse.core.resources
> 2- org.eclipse.equinox.app
> 3- org.eclipse.core.runtime
> 4- org.eclipse.jface.text
> 5- org.eclipse.ui.editors
> 6- a common library that I develop as also a plug-in project.
> 7- a logging library that is imported as a jar (that has no
> dependencies).
>
> Are the problematic dependencies here org.eclipse.jface.text and
> org.eclipse.ui.editors? I need jface.text for using
> org.eclipse.jface.text.TextSelection and ui.editors for using
> org.eclipse.ui.texteditor.IDocumentProvider and
> org.eclipse.ui.editors.text.TextFileDocumentProvider. Shall I remove
> these dependencies, too?
>
> By the way, the common library depends on the following as extra (but
> I don't think that should be the problem)
> 1- org.eclipse.jdt.core
The problem is not your dependencies (I guess) but when you launch, it
looks like there are also other bundles enabled/available.

Dani
>
> Thank you,
Re: Converting IFile to IDocument [message #985246 is a reply to message #985232] Thu, 15 November 2012 09:03 Go to previous messageGo to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Is there a way for me to diagnose (which bundle creates the problem) and make sure that it is not loaded. What might be the reason of that bundle loading?

Thank you,

Edit: I thought that the way I create the headless Eclipse in my plug-in (i.e., internal Eclipse), might help, here is the code:
// Get Eclipse workspace location and hash it.
String wsPath = ResourceUtility.getInstance().getWorkspacePath();
String workspacePostfix = Checksum.getInstance().hashToHexString(wsPath);
String eclipseExecutable = System.getProperty("eclipse.launcher");
String shadowWorkspacePath = CommonConstants.SHADOW_WORKSPACE_ROOT + CommonConstants.PS
     + workspacePostfix;

// We cannot have -consoleLog switch on Windows environment as it creates a command line
// for the headless Eclipse, which kills all the idea of being headless. Until we have a
// better solution, let's detect the OS and don't pass that switch when it is Windows.
ArrayList<String> eclipseArguments = new ArrayList<String>();
eclipseArguments.add(eclipseExecutable);
String osName = System.getProperty("os.name");
boolean isWindows = isWindows(osName);
if (!isWindows)
    eclipseArguments.add("-consoleLog");
eclipseArguments.add("-data");
eclipseArguments.add(shadowWorkspacePath);
eclipseArguments.add("-nosplash");
eclipseArguments.add("-application");
eclipseArguments.add("com.kivancmuslu.www.solstice.client.application");

Process process = Runtime.getRuntime()
 .exec(eclipseArguments.toArray(new String[eclipseArguments.size()]));

[Updated on: Thu, 15 November 2012 09:35]

Report message to a moderator

Re: Converting IFile to IDocument [message #986092 is a reply to message #985246] Sun, 18 November 2012 18:05 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1036
Registered: July 2009
Senior Member
Kivanc Muslu wrote on Thu, 15 November 2012 10:03
Is there a way for me to diagnose (which bundle creates the problem) and make sure that it is not loaded. What might be the reason of that bundle loading?


Have you tried this: in your launch configuration deselect all plug-ins, select your own plug-ins and click "Add required plug-ins", which should give you the minimal transitive closure of dependencies?
Previous Topic:Adding content assist to non-javadoc in java editor.
Next Topic:eclipse.launcher returns NULL when running JUnit plug-in tests
Goto Forum:
  


Current Time: Sat Nov 29 07:45:27 GMT 2014

Powered by FUDForum. Page generated in 0.11545 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software