Production Configuration & Update Manager Errors [message #459192] |
Tue, 28 November 2006 19:59  |
Eclipse User |
|
|
|
I have developed an Eclipse RCP application and trying to use the update
manager to keep it up-to-date.
For starters, when I navigate to Software Updates -> Management Extension
page, the product listed does not have any tree nodes displayed, just the
root (no matter what toggles are set). I click on Scan for Updates link,
I get the message "The current configuration contains errors and this
operation can have unpredictable results. Do you want to continue?"
I click Yes to continue and it displays a error dialog: "an internal error
occurred during: Update Manager". If I scan for updates twice, it finally
gives a more detaled message: "An internal error occurred during: 'Update
Manager'. / by zero".
The product runs fine in all other regards, but the update manager does
not work properly, I am guessing as a result of the above problem.
Where I need your help is to understand how to determine the root cause as
to why eclipse thinks that the configuration contains errors? What should
a standard configuration look like? How do I determine this?
Thank you for your help!
Brian
|
|
|
Re: Production Configuration & Update Manager Errors [message #459645 is a reply to message #459192] |
Tue, 05 December 2006 09:13   |
Eclipse User |
|
|
|
Hi,
I am facing a similar problem.
The product configuration manager doesn't show install location of my
product and the update manager seems to ignore it as well. Thus I can't
install any feature from the update manager (I have 'foo' displayed as
target directory and can't change it to the appropriate one).
I've just read a few comments on the way to manage an external product
configuration, with a directory containing a .eclipseextension file. My
feeling is that the update manager and product configuration manager are
expecting this type of structure while I just want to use the basic
default location with a .eclipseproduct file.
Anybody have an idea of what is happening ? I've just exported my
product thanks to the product export wizard and I can't understand why
this location cannot be the default install location (as it behaves in
Eclipse IDE)...
Frédéric
Brian Price a écrit :
> I have developed an Eclipse RCP application and trying to use the update
> manager to keep it up-to-date.
>
> For starters, when I navigate to Software Updates -> Management
> Extension page, the product listed does not have any tree nodes
> displayed, just the root (no matter what toggles are set). I click on
> Scan for Updates link, I get the message "The current configuration
> contains errors and this operation can have unpredictable results. Do
> you want to continue?"
>
> I click Yes to continue and it displays a error dialog: "an internal
> error occurred during: Update Manager". If I scan for updates twice, it
> finally gives a more detaled message: "An internal error occurred
> during: 'Update Manager'. / by zero".
>
> The product runs fine in all other regards, but the update manager does
> not work properly, I am guessing as a result of the above problem.
>
> Where I need your help is to understand how to determine the root cause
> as to why eclipse thinks that the configuration contains errors? What
> should a standard configuration look like? How do I determine this?
>
> Thank you for your help!
>
> Brian
>
|
|
|
|
|
|
Re: Production Configuration & Update Manager Errors [message #465163 is a reply to message #459192] |
Fri, 23 March 2007 15:59  |
Eclipse User |
|
|
|
Okay, more information. I have the same problem if I select 'Scan for
Updates' from the update configuration screen. I'm using version 3.2.1.
Note that updates work if I just use the normal Find n Install... action.
Here's what the workspace/.log file displays:
!MESSAGE An internal error occurred during: "Update Manager".
!STACK 0
java.lang.ArithmeticException: / by zero
at
org.eclipse.update.internal.ui.views.FindUpdatesAction$TrackingProgressMonitor.updateStatus(FindUpdatesAction.java:73)
at
org.eclipse.update.internal.ui.views.FindUpdatesAction$TrackingProgressMonitor.beginTask(FindUpdatesAction.java:53)
at
org.eclipse.update.search.UpdateSearchRequest.performSearch(UpdateSearchRequest.java:267)
at org.eclipse.update.ui.UpdateJob.runUpdates(UpdateJob.java:207)
at org.eclipse.update.ui.UpdateJob.run(UpdateJob.java:168)
at
org.eclipse.update.internal.ui.views.FindUpdatesAction$TrackedUpdateJob.run(FindUpdatesAction.java:93)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Actually looking at the code from eclipse, sure enough line 73 of
FindUpdatesAction.java looks like:
String perc = ((int) (workSoFar * 100.0) / totalWork) + "";
The 'totalWork' variable is passed in (effectively) from line 267 of
UpdateSearchRequest.java.
This is a bug in the Eclipse update manager code. 1) There's no
protection around this expression; and 2) the caller is passing in '0'
for total work to do.
Brian Price wrote:
> I have developed an Eclipse RCP application and trying to use the update
> manager to keep it up-to-date.
>
> For starters, when I navigate to Software Updates -> Management
> Extension page, the product listed does not have any tree nodes
> displayed, just the root (no matter what toggles are set). I click on
> Scan for Updates link, I get the message "The current configuration
> contains errors and this operation can have unpredictable results. Do
> you want to continue?"
>
> I click Yes to continue and it displays a error dialog: "an internal
> error occurred during: Update Manager". If I scan for updates twice, it
> finally gives a more detaled message: "An internal error occurred
> during: 'Update Manager'. / by zero".
>
> The product runs fine in all other regards, but the update manager does
> not work properly, I am guessing as a result of the above problem.
>
> Where I need your help is to understand how to determine the root cause
> as to why eclipse thinks that the configuration contains errors? What
> should a standard configuration look like? How do I determine this?
>
> Thank you for your help!
>
> Brian
>
|
|
|
Powered by
FUDForum. Page generated in 0.04658 seconds