p2 throws a mysterious unexpected error while resolving an update operation [message #1689802] |
Tue, 24 March 2015 07:10  |
Eclipse User |
|
|
|
Hello,
When trying to implement a very basic update operation, resolving my update operation does not go well : the resulting IProvisioningPlan and ProvisioningJob are both null.
Now to find out what is happening is not that easy : when I call getResolutionDetails() on the resolved update operation, I get the following message :
Quote:
Your original request has been modified. Unexpected Error. Could not process the request. Check the error log for details.
But how to get a grip on this error log ? The only log appender I have in the application is set to the console, and there nothing appears.
Surrounding the resolve method with a try-catch catches nothing, and operation.getResolutionResult().getException() returns nothing either.
How can I figure out what is happening ?
Thomas Elskens
|
|
|
|
|
Re: p2 throws a mysterious unexpected error while resolving an update operation [message #1690168 is a reply to message #1690110] |
Wed, 25 March 2015 10:36  |
Eclipse User |
|
|
|
Hmm, weird. It's likely easier to install the p2 SDK and poke around the source. I think most of the code funnels log messages down into a class called LogHelper. That particular error message, keyed as PlannerResolutionJob_NullProvisioningPlan, is used in a class called org.eclipse.equinox.internal.p2.operations.PlannerResolutionJob in org.eclipse.equinox.p2.operations. It looks to happen when a plan cannot be determined, though I don't see how the result is logged. Try poking around.
Brian.
|
|
|
Powered by
FUDForum. Page generated in 0.02904 seconds