after switching to java8 whenIexecutetheUpdateHandler I geta nullPointerException #484

OPEN vogella Website
Submitted vor 6 Monaten

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

  vor 6 Monaten

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

  vor 6 Monaten

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

  vor 6 Monaten
  vor 6 Monaten

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.

  vor 6 Monaten
  vor 6 Monaten

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

  vor 6 Monaten

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

  vor 6 Monaten

executing from an exported product

  vor 5 Monaten

|Is anybody working on this issue still not resolved

  vor 5 Monaten

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.