Friday, March 18, 2016

Eclipse: AERI failed with an error

This is not a serious error. I'd say you can ignore it. However, if it bothers you, please try the following:

Steps that reproduce the Symptom:

- Import an existing project (from the worksapce of another copy of Eclipse), with "copy project into workspace" selected.
- Clean and rebuild the project
- Close the project
- Exit and restart eclipse

The following error (warning) is displayed on the Error tab:

AERI failed with an error. Please report this error: null ; version: 1.100.0.v20160211-1103

java.lang.NullPointerException
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:217)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:90)
at org.eclipse.epp.logging.aeri.core.SystemControl.executeHandler(SystemControl.java:103)
at org.eclipse.epp.logging.aeri.core.SystemControl.isActive(SystemControl.java:65)
at org.eclipse.epp.logging.aeri.core.util.LogListener.logging(LogListener.java:45)
at org.eclipse.core.internal.runtime.RuntimeLog.logToListeners(RuntimeLog.java:161)
at org.eclipse.core.internal.runtime.PlatformLogWriter.logged(PlatformLogWriter.java:103)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.java:88)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:217)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.java:189)
at org.eclipse.osgi.internal.log.ExtendedLogServiceFactory.log(ExtendedLogServiceFactory.java:65)
at org.eclipse.osgi.internal.log.ExtendedLogServiceImpl.log(ExtendedLogServiceImpl.java:87)
at org.eclipse.osgi.internal.log.LoggerImpl.log(LoggerImpl.java:54)
at org.eclipse.core.internal.runtime.Log.log(Log.java:65)
..
..
at org.eclipse.core.internal.runtime.PlatformLogWriter.logging(PlatformLogWriter.java:44)
at org.eclipse.core.internal.runtime.RuntimeLog.log(RuntimeLog.java:97)
at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:701)
at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:105)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:72)

Causes:

Most likely because the build path environments are not properly bound during import. The system environment settings such as JRE and JBoss Server of both Eclipse are configure with the exact same names. The project uses these environments when it is compiled. In fact, the compile is successful without error, but after compile and close the project, it complains the project is not open. When Eclipse is closed and it tries to save project preferences, a warning (error) is recorded.

Solution:

Remove all build path environments for the project. Add all dependencies one by one from scratch.

No comments:

Post a Comment