Negative array size exception thrown by Eclipse - eclipse

Recently my copy of eclipse ceased to live, though I can't think of what I may have done to cause this, I must have done something, but essentially for any work space I try to open the following shows up in my log files:
eclipse.buildId=M20120208-0800
java.version=1.7.0_04
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.ui 4 0 2012-08-29 09:30:43.361
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NegativeArraySizeException
at org.eclipse.core.internal.registry.TableReader.readArray(TableReader.java:360)
at org.eclipse.core.internal.registry.TableReader.basicLoadExtensionPoint(TableReader.java:351)
at org.eclipse.core.internal.registry.TableReader.loadExtensionPoint(TableReader.java:339)
at org.eclipse.core.internal.registry.TableReader.loadExtensionPointTree(TableReader.java:309)
at org.eclipse.core.internal.registry.RegistryObjectManager.load(RegistryObjectManager.java:421)
at org.eclipse.core.internal.registry.RegistryObjectManager.basicGetObject(RegistryObjectManager.java:270)
at org.eclipse.core.internal.registry.RegistryObjectManager.getObject(RegistryObjectManager.java:262)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensionPoint(BaseExtensionPointHandle.java:106)
at org.eclipse.core.internal.registry.BaseExtensionPointHandle.getExtensions(BaseExtensionPointHandle.java:32)
at org.eclipse.ui.internal.activities.ws.TriggerPointManager.<init>(TriggerPointManager.java:87)
at org.eclipse.ui.internal.activities.ws.WorkbenchActivitySupport.<init>(WorkbenchActivitySupport.java:80)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1523)
at org.eclipse.ui.internal.Workbench.access$36(Workbench.java:1486)
at org.eclipse.ui.internal.Workbench$66.run(Workbench.java:2597)
I tried looking for this error, and I found a few references to negative array size exceptions in the eclipse bugs forums, but nothing that seemed to be related to this.Any ideas?

Try running eclipse -clean to clean out your configuration area. Perhaps something got corrupted. This will likely fix your problem.

Related

Eclipse Headless Application failing with Stackoverflow error

I have built up an eclipse headless application, but while running it ends up with Stackoverflow error.
!SESSION 2020-06-24 16:24:05.556 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_251
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -application com.headless.application indir C:\workspace\TestData
Command-line arguments: -os win32 -ws win32 -arch x86_64 -application com.headless.application -consoleLog indir C:\workspace\TestData
!ENTRY org.eclipse.osgi 4 0 2020-06-24 18:43:21.315
!MESSAGE Application error
!STACK 1
java.lang.StackOverflowError
at org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl$EObjectOutputStream.saveEObject(BinaryResourceImpl.java:1236)
at org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl$EObjectOutputStream.saveEObjects(BinaryResourceImpl.java:1003)
Perhaps I thought this is because of memory issues so I tried to increase the memory in eclipse.ini file:
-vmargs
-Xmx16G
-Xms3G
-Xss16M
-XX:MinHeapFreeRatio=50
-XX:MaxHeapFreeRatio=60
-XX:+UseParallelGC
But still it fails with same Stackoverflow error.
I'm running my headless eclipse application via a batch file. The content of batch file looks like this:
#echo off
start eclipse -application com.headless.application -consoleLog indir C:\workspace\TestData
So my first doubt is that whether my headless application is considering the eclipse.ini file or not? If not what are other ways to pass eclipse.ini file directly in above eclipse call?
In case if it is considering the eclipse.ini file, what other options can be tried?
Note: In case of same GUI application, it is working fine.

Problem with Checkstyle: Creating formatter profile

I downloaded the checkstyle plugin for university in order to check the code like my professor wants it. We got an xml configuration file and i created with that another checkstyle configuration (Preferences -> Checkstyle -> New...) Also I set it as default. Now we have to create an automatic formatter like "Rightclick project -> Checkstyle -> Create Formatter-profile". Now I get an problem popup from eclipse with the message:
"An internal error occurred during: "transformCheckstyle".
org/eclipse/jdt/internal/ui/preferences/PreferencesAccess
This is the full error message from the log:
!ENTRY org.eclipse.core.jobs 4 2 2018-12-02 16:42:24.496
!MESSAGE An internal error occurred during: "transformCheckstyle".
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/preferences/PreferencesAccess
at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.writeCleanupSettings(FormatterConfigWriter.java:95)
at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.writeSettings(FormatterConfigWriter.java:89)
at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.<init>(FormatterConfigWriter.java:81)
at net.sf.eclipsecs.core.transformer.CheckstyleTransformer.transformRules(CheckstyleTransformer.java:124)
at net.sf.eclipsecs.core.jobs.TransformCheckstyleRulesJob.runInWorkspace(TransformCheckstyleRulesJob.java:117)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SESSION 2018-12-02 16:44:15.808 -----------------------------------------------
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product
CheckStyle had this bug reported:
https://github.com/checkstyle/eclipse-cs/issues/107
It has been fixed so upgrade to the latest CheckStyle version for Eclipse.
The issue has already been reported at https://github.com/checkstyle/eclipse-cs/issues/107 but no one has contributed a fix for it.

Has anyone succeeded in getting Eclipse's "Report bug or enhancement..." to work?

Here it fails every time, on multiple installations, with "Unexpected error while creating task for this report" https://i.imgur.com/CNa9KYD.png .
I'm using "Eclipse for PHP Developers" latest version - 2018-09 (4.9.0).
EDIT: Further info:
I got the error after clicking Finish https://i.imgur.com/GcCZHI3.png . I don't use the same workspace for both. I don't have a proxy. I did not knowingly try to report it anonymously, but the failing operation did not ask for any ID. This was on fairly new installations.
EDIT: Error details
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.php.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.php.product
and
!ENTRY org.eclipse.mylyn.tasks.bugs 4 0 2018-11-04 22:03:08.842
!MESSAGE Unexpected error while creating task for error report
!STACK 1
org.eclipse.core.runtime.CoreException: Error retrieving task attributes from repository.
Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:774)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:439)
at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.createTaskData(TasksUiInternal.java:875)
at org.eclipse.mylyn.internal.tasks.bugs.AttributeTaskMapper.createTaskData(AttributeTaskMapper.java:60)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter.process(TaskErrorReporter.java:88)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter$1.run(TaskErrorReporter.java:66)
at org.eclipse.mylyn.commons.ui.CommonUiUtil$1.run(CommonUiUtil.java:47)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.io.IOException: Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.AbstractReportFactory.collectResults(AbstractReportFactory.java:125)
at org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfigurationFactory.getConfiguration(RepositoryConfigurationFactory.java:40)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:857)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:751)
... 7 more
!SUBENTRY 1 org.eclipse.mylyn.bugzilla 4 1 2018-11-04 22:03:08.843
!MESSAGE Error retrieving task attributes from repository.
Premature end of file.
!STACK 0
java.io.IOException: Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.AbstractReportFactory.collectResults(AbstractReportFactory.java:125)
at org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfigurationFactory.getConfiguration(RepositoryConfigurationFactory.java:40)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:857)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:751)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:439)
at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.createTaskData(TasksUiInternal.java:875)
at org.eclipse.mylyn.internal.tasks.bugs.AttributeTaskMapper.createTaskData(AttributeTaskMapper.java:60)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter.process(TaskErrorReporter.java:88)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter$1.run(TaskErrorReporter.java:66)
at org.eclipse.mylyn.commons.ui.CommonUiUtil$1.run(CommonUiUtil.java:47)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
The same issue on Eclipse IDE for C/C++ Developers gave:
org.eclipse.core.runtime.CoreException: Error retrieving task attributes from repository.
Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:774)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:439)
at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.createTaskData(TasksUiInternal.java:875)
at org.eclipse.mylyn.internal.tasks.bugs.AttributeTaskMapper.createTaskData(AttributeTaskMapper.java:60)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter.process(TaskErrorReporter.java:88)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter$1.run(TaskErrorReporter.java:66)
at org.eclipse.mylyn.commons.ui.CommonUiUtil$1.run(CommonUiUtil.java:47)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.io.IOException: Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.AbstractReportFactory.collectResults(AbstractReportFactory.java:125)
at org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfigurationFactory.getConfiguration(RepositoryConfigurationFactory.java:40)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:857)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:751)
... 7 more
and
eclipse.buildId=4.8.0.I20180611-0500
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product
This looks like Eclipse bug 527895 which occurs with a new workspace.
If the workspace is old enough, the feature can be used, otherwise it fails with the known error dialog.
Please leave a comment that Help > Report Bug or Enhancement... is also affected by this bug.

Eclipse Indigo Crashes Very Unstable

I am using Ubuntu 14.04 with JRE 8. I am a newbie tying to learn javascript, but I have the rather annoying problem that my Eclipse Indigo SR2 x86_64 installation crashes every few moments.
Solutions I've tried:
Purging / reinstalling Java (sometimes after a crash I get an error message stating that Java crashed, but most times Eclipse simply crashes and no message.)
reinstalling Eclipse
Adding " -Dorg.eclipse.swt.browser.DefaultType=mo­zilla " at the end of the eclipse.ini file (no change in crashing behavior)
Checked for updates
My error log says the following:
!SESSION 2015-11-06 16:15:11.677
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.8.0_66
java.vendor=Oracle Corporation BootLoader constants: OS=linux,
ARCH=x86_64, WS=gtk, NL=en_HK Framework arguments: -product
org.eclipse.epp.package.javascript.product Command-line arguments:
-os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.javascript.product
!ENTRY org.eclipse.jface 2 0 2015-11-06 16:15:40.366 !MESSAGE Ignored
reentrant call while viewer is busy. This is only logged once per
viewer instance, but similar calls will still be ignored. !STACK 0
java.lang.RuntimeException at
org.eclipse.jface.viewers.ColumnViewer.checkBusy(ColumnViewer.java:763)
at
org.eclipse.jface.viewers.ColumnViewer.update(ColumnViewer.java:552)
at
org.eclipse.ui.model.WorkbenchContentProvider$4.run(WorkbenchContentProvider.java:334)
at
org.eclipse.ui.model.WorkbenchContentProvider.runUpdates(WorkbenchContentProvider.java:159)
at
org.eclipse.ui.model.WorkbenchContentProvider.processDelta(WorkbenchContentProvider.java:132)
at
org.eclipse.ui.model.WorkbenchContentProvider.resourceChanged(WorkbenchContentProvider.java:106)
at
org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:395)
at
org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1530).......
Greatly appreciate any tips for getting Eclipse to work properly.
thanks,
yup

Can't export deployable features in Luna

I am trying to export a couple of deployable features in Luna, but I always get the error message below. I have two plug-in projects, a corresponding feature project for each and a category definition. With this set up Kepler exported the deployable features into a folder flawlessly, but with Luna there is always this message.
How can this be solved? Is there any other relevant information I can post?
Message:
An internal error occurred during: "Export Features".
Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.osgi.internal.resolver.NativeCodeSpecificationImpl.isSatisfiedBy(NativeCodeSpecificationImpl.java:88)
at org.eclipse.osgi.internal.module.ResolverImpl.isResolvable(ResolverImpl.java:285)
at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles(ResolverImpl.java:639)
at org.eclipse.osgi.internal.module.ResolverImpl.resolve(ResolverImpl.java:477)
at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:545)
at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:605)
at org.eclipse.pde.internal.build.site.BuildTimeSite.getRegistry(BuildTimeSite.java:186)
at org.eclipse.pde.internal.build.BuildScriptGenerator.generateFeatures(BuildScriptGenerator.java:276)
at org.eclipse.pde.internal.build.BuildScriptGenerator.generate(BuildScriptGenerator.java:127)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:257)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:224)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.run(FeatureExportOperation.java:108)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Session Data:
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_11
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.standard.product
Command-line arguments: -data /media/lads/Data/users/lads/Trabalho/Eclipse/Luna/Workspace.Acceleo -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.standard.product
This is a known issue with release 4.4.0 reported in Bug 438652. A fix was shipped with release 4.4.1, thus an update to Eclipse gets this functionality working again.