after switching to java8 whenIexecutetheUpdateHandler I geta nullPointerException #484

CLOSED
Submitted 4 years ago

ENTRY org.eclipse.core.jobs 4 2 2020-06-09 21:06:58.427 !MESSAGE An internal error occurred during: "Update Job". !STACK 0 java.lang.NullPointerException at org.eclipse.equinox.p2.engine.ProvisioningContext.isEnabled(ProvisioningContext.java:271) at org.eclipse.equinox.p2.engine.ProvisioningContext.loadMetadataRepository(ProvisioningContext.java:253) at org.eclipse.equinox.p2.engine.ProvisioningContext.getLoadedMetadataRepositories(ProvisioningContext.java:211) at org.eclipse.equinox.p2.engine.ProvisioningContext.getMetadata(ProvisioningContext.java:299) at org.eclipse.equinox.internal.p2.director.SimplePlanner.updatesFor(SimplePlanner.java:1000) at org.eclipse.equinox.p2.operations.UpdateOperation.updatesFor(UpdateOperation.java:144) at org.eclipse.equinox.p2.operations.UpdateOperation.computeProfileChangeRequest(UpdateOperation.java:180) at org.eclipse.equinox.p2.operations.UpdateOperation.lambda$0(UpdateOperation.java:315) at org.eclipse.equinox.internal.p2.operations.SearchForUpdatesResolutionJob.runModal(SearchForUpdatesResolutionJob.java:41) at org.eclipse.equinox.p2.operations.ProfileChangeOperation.resolveModal(ProfileChangeOperation.java:118) at com.ssesep.gashulub.handlers.UpdateHandler.checkForUpdates(UpdateHandler.java:62) at com.ssesep.gashulub.handlers.UpdateHandler.access$0(UpdateHandler.java:50) at com.ssesep.gashulub.handlers.UpdateHandler$1.run(UpdateHandler.java:45) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Comments

  4 years ago

I will have a look this Friday and report back if I can reproduce & fix the issue.

  4 years ago

Can you point me to the exercise you are doing? AFAICS this is not part of https://learn.vogella.com/courses/rich-client-platform

  4 years ago
  4 years ago

Are you trying this update from an exported product started outside of Eclipse or via a product started from the IDE?

Please reply in the issue, not via email.

  4 years ago
  4 years ago

This may be a security issue as it is a shared drive on a windows network

  4 years ago

I executed the application as administrator and got the same exception so it is probably not a security or rights issue

  4 years ago

executing from an exported product

  4 years ago

|Is anybody working on this issue still not resolved

  4 years ago

The issue that I have is that the product export fails from the ui. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=545653 So I’m currently reworking the exercise so that I add it to the official RCP training and use the Tycho build. I hope I can give you Wednesday an update.

Please login to write a comment.