Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » P2 mirror of archived update sites causes problems in Oomph setup
P2 mirror of archived update sites causes problems in Oomph setup [message #1745932] Wed, 19 October 2016 13:52 Go to next message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 197
Registered: September 2015
Senior Member
To start off, I know that this may not be Oomph related, but I would like to start off here as the issue occurs during performing Oomph setup tasks.

It seems that

1. if an update site was moved to archive.eclipse.org (e.g. http://download.eclipse.org/graphiti/updates/0.11.1/ )

2. the repository uses mirrors (see content.jar/content.xml):
<property name='p2.mirrorsURL' value='http://www.eclipse.org/downloads/download.php?file=/graphiti/updates/0.11.1/&amp;protocol=http&amp;format=xml'/>


3. There is an Oomph setup that contains a Targlet task that uses the archive repository (see GraphitiArchive.setup attached)

4. Mirrors are enabled during the Oomph task execution

Then the Targlet task will fail with very cryptic error messages:

Quote:

[2016-10-19 15:25:27] Performing Targlets Modular Target (Eclipse Platform + Graphiti Archive), activate
[2016-10-19 15:25:27] Repository http://download.eclipse.org/eclipse/updates/4.6
[2016-10-19 15:25:27] Repository http://archive.eclipse.org/graphiti/updates/0.11.1/
[2016-10-19 15:25:27] Repository http://download.eclipse.org/releases/mars
[2016-10-19 15:25:27] Offline = false
[2016-10-19 15:25:27] Mirrors = true
[2016-10-19 15:25:35] Calculating requirements and dependencies.
[2016-10-19 15:25:38] Computing prerequisite plan
[2016-10-19 15:25:48] Collecting 2 artifacts from http://download.eclipse.org/eclipse/updates/4.6
[2016-10-19 15:25:49] Downloading org.eclipse.rcp_root
[2016-10-19 15:25:49] Downloading org.eclipse.platform_root
[2016-10-19 15:25:49] Collected 2 artifacts for http://download.eclipse.org/eclipse/updates/4.6 in 1.315s
[2016-10-19 15:25:49] Collecting 6 artifacts from http://archive.eclipse.org/graphiti/updates/0.11.1/
[2016-10-19 15:25:50] Downloading org.w3c.dom.smil.source
[2016-10-19 15:25:50] Downloading org.eclipse.graphiti.export.batik.source
[2016-10-19 15:25:50] Downloading org.eclipse.graphiti.pattern.source
[2016-10-19 15:25:50] Downloading org.eclipse.graphiti.source
[2016-10-19 15:25:50] Downloading org.eclipse.graphiti.ui.source
[2016-10-19 15:25:50] Downloading org.eclipse.graphiti.mm.source
[2016-10-19 15:25:50] Mirrored 1 artifacts from /graphiti/updates/0.11.1/ at 0kb/s
[2016-10-19 15:25:50] Collected 6 artifacts for http://archive.eclipse.org/graphiti/updates/0.11.1/ in 0.841s
[2016-10-19 15:25:50] An error was detected while performing the engine operation and the changes are being rolled back. See the log for details.
[2016-10-19 15:25:50] ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred while collecting items to be installed
at org.eclipse.oomph.targlets.internal.core.TargletContainer.forceUpdate(TargletContainer.java:778)
at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl$4.run(TargletTaskImpl.java:1128)
at org.eclipse.oomph.util.pde.TargetPlatformUtil.runWithTargetPlatformService(TargetPlatformUtil.java:120)
at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl.perform(TargletTaskImpl.java:1036)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3151)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.access$1(SetupTaskPerformer.java:3094)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil$1.run(SetupTaskPerformer.java:4315)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:4309)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.access$0(SetupTaskPerformer.java:4307)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3085)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3060)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2960)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:556)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:682)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=D__development_projects_graphiti-archive-master_ws-93fbd80b8c6b961c7d169e9330231f8da680a375, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found containing: osgi.bundle,org.eclipse.graphiti.mm.source,0.11.1.v20140903-1228
ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found containing: osgi.bundle,org.eclipse.graphiti.source,0.11.1.v20140903-1228
ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found containing: osgi.bundle,org.eclipse.graphiti.export.batik.source,0.11.1.v20140903-1228
ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found containing: osgi.bundle,org.eclipse.graphiti.pattern.source,0.11.1.v20140903-1228
ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found containing: osgi.bundle,org.w3c.dom.smil.source,1.0.0.v200806040011
ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found containing: osgi.bundle,org.eclipse.graphiti.ui.source,0.11.1.v20140903-1228


and the error log will have such events:

Quote:

eclipse.buildId=4.6.1.M20160907-1200
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.committers.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.committers.product

org.eclipse.core.jobs
Error
Wed Oct 19 15:25:50 CEST 2016
An internal error occurred during: "Install download4".

java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:666)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:591)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:723)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:319)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:288)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:223)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Turning off Mirrors leads to a successful execution of setup tasks.

The relevant Targlet definition (also in the attachement) is this:
<?xml version="1.0" encoding="UTF-8"?>
<setup.targlets:TargletTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/setup/targlets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore">
  <targlet name="Graphiti Archive"
      activeRepositoryList=""
      includeSources="false">
    <requirement
        name="org.eclipse.sdk.feature.group"/>
    <requirement
        name="org.eclipse.graphiti.feature.feature.group"
        versionRange="[0.11.0,0.12.0)"/>
    <requirement
        name="org.eclipse.graphiti.export.feature.feature.group"
        versionRange="[0.11.0,0.12.0)"/>
    <repositoryList
        name="">
      <repository
          url="http://archive.eclipse.org/graphiti/updates/0.11.1/"/>
      <repository
          url="http://download.eclipse.org/releases/mars"/>
    </repositoryList>
  </targlet>
</setup.targlets:TargletTask>
Re: P2 mirror of archived update sites causes problems in Oomph setup [message #1745939 is a reply to message #1745932] Wed, 19 October 2016 16:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Open a Bugzilla and I'll see if I can find time to have a look.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: P2 mirror of archived update sites causes problems in Oomph setup [message #1745982 is a reply to message #1745939] Thu, 20 October 2016 07:18 Go to previous messageGo to next message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 197
Registered: September 2015
Senior Member
Thanks for replying, I have checked with "Install new software" and it gives the same error (I didn't know if it would try to use mirrors or not), so the problem is not with Oomph.

I will ask the webmaster as I think this same update site has worked before and move to P2 if it turns out that it may be the culprit.
Re: P2 mirror of archived update sites causes problems in Oomph setup [message #1745983 is a reply to message #1745982] Thu, 20 October 2016 07:37 Go to previous message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 197
Registered: September 2015
Senior Member
I have opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=506255
Previous Topic:Disable dedicated update sites after installation
Next Topic:How to modify org.eclipse.e4.workbench/workbench.xmi
Goto Forum:
  


Current Time: Fri Apr 26 22:18:30 GMT 2024

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

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

Back to the top