Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 - Nullpointer Exception at RepositoryTransport.download
P2 - Nullpointer Exception at RepositoryTransport.download [message #554809] Tue, 24 August 2010 13:04 Go to next message
Suganya Devi is currently offline Suganya DeviFriend
Messages: 21
Registered: July 2009
Junior Member
We are following the Product based build for our RCP application. Our build process creates a local P2 repository in the build directory. Once the build is successful, we copy the P2 repository to a remote URL (http).
The P2.inf (inside product plug-in) points to the remote URL. Now when I start the application, I'm getting NullPointer Exception at RepositoryTransport.download(RepositoryTransport.java:75). If I connect to the local repository (in build directory), it works fine.

I have created the following bug - https://bugs.eclipse.org/bugs/show_bug.cgi?id=323149

Please let me know if anyone has a solution for this problem?

Exception:
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:477)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress MonitorDialog.java:507)
at ams.client.eclipse.actions.UpdateAction.run(Unknown Source)
at ams.client.eclipse.AMSClientWorkbenchAdvisor.preStartup(Unkn own Source)
at org.eclipse.ui.internal.Workbench$31.runWithException(Workbe nch.java:1564)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3660)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2537)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 27)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at ams.client.eclipse.AMSClient.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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:369)
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: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.repository.RepositoryTranspo rt.download(RepositoryTransport.java:75)

at org.eclipse.equinox.internal.p2.repository.RepositoryTranspo rt.download(RepositoryTransport.java:127)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadIndexFile(AbstractRepositoryManager.jav a:719)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractR epositoryManager.loadRepository(AbstractRepositoryManager.ja va:640)
at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:96)
at org.eclipse.equinox.internal.p2.metadata.repository.Metadata RepositoryManager.loadRepository(MetadataRepositoryManager.j ava:92)
at org.eclipse.equinox.p2.engine.ProvisioningContext.loadMetada taRepository(ProvisioningContext.java:211)
at org.eclipse.equinox.p2.engine.ProvisioningContext.getLoadedM etadataRepositories(ProvisioningContext.java:194)
at org.eclipse.equinox.p2.engine.ProvisioningContext.getMetadat a(ProvisioningContext.java:275)
at org.eclipse.equinox.internal.p2.director.SimplePlanner.updat esFor(SimplePlanner.java:769)
at org.eclipse.equinox.p2.operations.UpdateOperation.updatesFor (UpdateOperation.java:144)
at org.eclipse.equinox.p2.operations.UpdateOperation.computePro fileChangeRequest(UpdateOperation.java:181)
at org.eclipse.equinox.p2.operations.UpdateOperation$1.run(Upda teOperation.java:325)
at org.eclipse.equinox.internal.p2.operations.SearchForUpdatesR esolutionJob.runModal(SearchForUpdatesResolutionJob.java:37)
at org.eclipse.equinox.p2.operations.ProfileChangeOperation.res olveModal(ProfileChangeOperation.java:115)
at ams.client.eclipse.actions.UpdateAction$Runner.checkForUpdat es(Unknown Source)
at ams.client.eclipse.actions.UpdateAction$Runner.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)
... 30 more
Re: P2 - Nullpointer Exception at RepositoryTransport.download [message #555101 is a reply to message #554809] Wed, 25 August 2010 13:03 Go to previous message
Suganya Devi is currently offline Suganya DeviFriend
Messages: 21
Registered: July 2009
Junior Member
Something to do with proxy? But my other application works though.
Previous Topic:Classloader issue
Next Topic:how to detect whether a plug-in was installed or not when installing new features by update site
Goto Forum:
  


Current Time: Wed Apr 24 16:18:44 GMT 2024

Powered by FUDForum. Page generated in 0.03527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top