NullPointerException while updating RCP application [message #488137] |
Fri, 25 September 2009 16:07 |
Thomas Wiedmann Messages: 69 Registered: July 2009 |
Member |
|
|
Hello,
sometimes, while our RCP application tries to lookup for updates, an ugly
error message occured like:
Error at updating the software: null
Original text in German:
Fehler beim Software-Update
Folgender Fehler trat beim Update der Software auf:
null
Trying to start the application a 2nd time is mostly successfull.
This error cannot be reproduced exactly - it only occurs sometimes; no idea
on which circumstances.
The OS is Windows XP prof. SP3, the RCP runs on Java 5.
What may be the reason of such an error?
How to avoid that problem?
Thomas Wiedmann
---------------------------------------------------
Annex - Stacktrace of Java console (xxx changed):
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:421)
at
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress MonitorDialog.java:507)
at com.xxx.rcp.UpdateManager.checkForUpdates(UpdateManager.java :120)
at
com.xxx.rcp.ApplicationInitializer.initialize(ApplicationIni tializer.java:44)
at com.xxx.rcp.Application.start(Application.java:40)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartM ain.java:73)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain. java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
org.eclipse.update.internal.core.SiteTypeFactory.createFacto ryFor(SiteTypeFactory.java:70)
at
org.eclipse.update.internal.core.SiteTypeFactory.getFactory( SiteTypeFactory.java:56)
at
org.eclipse.update.internal.core.InternalSiteManager.createS ite(InternalSiteManager.java:272)
at
org.eclipse.update.internal.core.InternalSiteManager.attempt CreateSite(InternalSiteManager.java:222)
at
org.eclipse.update.internal.core.InternalSiteManager.getSite (InternalSiteManager.java:162)
at org.eclipse.update.core.SiteManager.getSite(SiteManager.java :80)
at com.xxx.rcp.UpdateManager.run(UpdateManager.java:137)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
|
|
|
Powered by
FUDForum. Page generated in 0.07148 seconds