pondělí 27. ledna 2014

"Profile id _SELF_ is not registered" error

Following error occurred when I exported product which was trying to install new bundles from the repository:
java.lang.IllegalArgumentException: Profile id _SELF_ is not registered.
 at org.eclipse.equinox.internal.p2.director.ProfileChangeRequest.createByProfileId(ProfileChangeRequest.java:47)
 at org.eclipse.equinox.p2.operations.InstallOperation.computeProfileChangeRequest(InstallOperation.java:74)
 at org.eclipse.equinox.p2.operations.ProfileChangeOperation.makeResolveJob(ProfileChangeOperation.java:165)
 at org.eclipse.equinox.p2.operations.ProfileChangeOperation.resolveModal(ProfileChangeOperation.java:113)
 at com.example.e4.rcp.todo.handlers.InstallHandler$1.run(InstallHandler.java:93)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
It is working when I try to run the example in Eclipse IDE but after the product is exported, this exception is thrown.
Solution (working for me):

  • it is enough to create also p2 repository for the product

Žádné komentáře:

Okomentovat