Can't export deployable features in Luna - eclipse

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.

Related

Eclipse Expressions tab *always* showing "<error(s)_during_the_evaluation>"

Eclipse version:
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2022-03 (4.23.0)
Build id: 20220310-1457
Linux Mint 20.2
Java 11.0.13
Currently runing a Jupiter JUnit
Cannot evaluate 5+5 or even 5 without getting this error.
If I hover over a variable, I don't see a quick evaluation either, instead it shows the type.
I used to be getting "eclipse "com.sun.jdi.InternalException: Got error code in reply:35 occurred retrieving 'this' from stack frame.", but for some reason, now I'm not.
When I hovered over a variable, I did see this message in the error log:
eclipse.buildId=4.23.0.I20220308-0310
java.version=17.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -data file:/home/woodsman/mycorp/eclipse-workspaces-2/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
org.eclipse.ui
Warning
Wed Mar 23 16:28:13 EDT 2022
Invalid property category path: org.springframework.ide.eclipse.beans.ui.properties.ProjectPropertyPage (bundle: org.springframework.ide.eclipse.xml.namespaces, propertyPage: org.springframework.ide.eclipse.beans.ui.namespaces.projectPropertyPage)
If it helps, this is the effective command being launched:
/home/woodsman/java/jdk-11.0.13/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:36313 -ea -javaagent:/home/woodsman/java/eclipse-2022-03/configuration/org.eclipse.osgi/1042/0/.cp/lib/javaagent-shaded.jar -Dfile.encoding=UTF-8 -classpath <myclasspath> --add-modules ALL-DEFAULT org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 34227 -testLoaderClass org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader -loaderpluginname org.eclipse.jdt.junit5.runtime -classNames com.mycorp.grammarservice.controller.mvc.ToolControllerMVCTest

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.

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

Programmatically installing plugins from Eclipse plugin: error processing mirrors URL

In our project (an Eclipse plugin), we're trying to install a couple of plugins programmatically (no worries, the user first has to accept all their licenses). Everything works fine, the plugins get installed, except that a certain error keeps popping up:
eclipse.buildId=M20120208-0800
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_BE
Framework arguments: -product org.eclipse.epp.package.rcp.product
command-line arguments: -os win32 -ws win32 -arch x86_64 -product
org.eclipse.epp.package.rcp.product
Error
Thu Nov 07 12:32:22 CET 2013
Error processing mirrors URL:
http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml
java.io.FileNotFoundException:
http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml
at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryStatusHelper.checkFileNotFound(RepositoryStatusHelper.java:297)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.checkException(FileReader.java:384)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:358)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:213)
at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.computeMirrors(MirrorSelector.java:274)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.initMirrors(MirrorSelector.java:336)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.selectMirror(MirrorSelector.java:406)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.getMirrorLocation(MirrorSelector.java:314)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getMirror(SimpleArtifactRepository.java:651)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:568)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:680)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:260)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:235)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:191)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:122)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:664)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
We've tried a couple of things, like setting in the pom.xml for tycho that we don't want to use mirrors, or giving it as a JVM argument, or simply setting the System property to not use mirrors. However, as far as I understood, this will only cancel out non-eclipse.org sites and this is an eclipse.org site...
The updatesite to install from is: http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim/ (for Teneo).
What can I do to prevent this error from happening? To be clear: this doesn't prevent the code from running as it should. Teneo gets installed. I just don't want this kind of errors popping up in the Error Log.
Thanks for any tips.

An internal error occurred during: "Initializing Java Tooling"

How do I resolve the above reported Eclipse error message? Additional details are given below.
Exception Stack Trace
java.lang.NullPointerException
at org.eclipse.m2e.jdt.internal.MavenClasspathContainerInitializer.initialize(MavenClasspathContainerInitializer.java:48)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2843)
at org.eclipse.jdt.internal.core.JavaModelManager$11.run(JavaModelManager.java:2749)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2789)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1873)
at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:3886)
at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Session Data
eclipse.buildId=I20120608-1400
java.version=1.7.0_08-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/ravisankars/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/ravisankars/.eclipse_keyring -showlocation
I did the following:
1) Close eclipse
2) Delete everything from the subfolder
\.metadata\.plugins\org.eclipse.core.resources\.projects in my workspace. In my case this was
folder C:\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects.
3) Restart eclipse
I also set my M2_REPO classpath variable in eclipse (this is a maven based project):
4) In eclipse, select Window - preferences - java - build path - classpath variable - new
5) Set name=M2_REPO
6) Set path=the path to your .m2 folder (you will need to find your .m2 folder and use the correct path for your environment, in my case is was C:\Users\pondolal\.m2\repository).
7) Restart eclipse
8) Clean and build projects