Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » index:/org.eclipse.setup fails to resolve with 2021-03
index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839468] Mon, 22 March 2021 09:16 Go to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
I have a setup that was working fine until 2020-12. With 2021-03 the setuptasks are no longer executed (no settings are changed, projects are not imported).

When I open the setup in eclipse I get the following error:

org.eclipse.oomph.util.IOExceptionWithCause: unknown protocol: archive: archive:http://www.eclipse.org/setups/setups.zip!/http/git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup


Can anybody give me a hint in which direction to look?
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839470 is a reply to message #1839468] Mon, 22 March 2021 09:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
This protocol should always be supported via ArchiveURIHandlerImpl being registered and its org.eclipse.emf.ecore.resource.impl.ArchiveURIHandlerImpl.canHandle(URI) method returning true.

Did you update from 2020-12 to 2021-03 or create a new installation?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839471 is a reply to message #1839470] Mon, 22 March 2021 09:52 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
I created a new installation
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839472 is a reply to message #1839471] Mon, 22 March 2021 10:00 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
just tried doing an update: that installation now shows the same error message
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839483 is a reply to message #1839472] Mon, 22 March 2021 12:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
I've created a large number of new installations, none of which have this problem. Please look in the Error Log for potential problems. E.g., bundles that aren't starting properly.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839497 is a reply to message #1839483] Mon, 22 March 2021 19:39 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
Thank you for your help, I have found no errors in the Error Log as well as the ".log" inside the metadata folder.

I have also tried installing a different product: If I base my installation on the "Eclipse Platform" everthing works, If I base it on the "Eclipse Modeling Tools" I get the error described above: So the problem is most likely not directly related to Eclipse Oomph. Thank you for your support!

EDIT: i have attached a minimal example of the project-setup that does not change settings with Eclipse Modeling Tools 2021-03
  • Attachment: test.setup
    (Size: 1.99KB, Downloaded 103 times)

[Updated on: Mon, 22 March 2021 19:50]

Report message to a moderator

Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839516 is a reply to message #1839497] Tue, 23 March 2021 06:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
It seems that this change in CDO:

https://git.eclipse.org/c/cdo/cdo.git/diff/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/bundle/OM.java?id=9e4d911a8af50ae84b6973f5f6c57a8cdb7fc4c9

Does not interact well with this code in Oomph:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/util/SetupCoreUtil.java#n602


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839545 is a reply to message #1839516] Tue, 23 March 2021 16:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
I've temporarily removed CDO from the modeling product:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/commit/?id=441e9b09a1611104b39021496bbc351f67765d95


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839553 is a reply to message #1839545] Tue, 23 March 2021 19:57 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
Thank you! Should I file a bug? If yes - on which project should i file it?
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839574 is a reply to message #1839553] Wed, 24 March 2021 05:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
You can start by opening one here:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EMF&component=cdo.core

No doubt we have to work around this in Oomph as well, but even in that case, the CDO change as it is, is likely to break other things as well.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1839577 is a reply to message #1839574] Wed, 24 March 2021 06:47 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
I have opened a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=572246
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1840841 is a reply to message #1839577] Mon, 26 April 2021 14:18 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
(Crosspost with https://bugs.eclipse.org/bugs/show_bug.cgi?id=572246 )

I did a fresh installation of 2021-03:

seems like it now works with

CDO Model Repository EPP; 4.14.0.v20210422-0817; org.eclipse.emf.cdo.epp.feature.group

from the weekly-cdo-build and also with

CDO Model Repository EPP; 4.13.0.v20210308-1811; org.eclipse.emf.cdo.epp.feature.group

Altough I am not sure what fixed it:
https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/commit/?id=d04499a9ad15492577337867182a22db7fbec878
or
https://git.eclipse.org/c/cdo/cdo.git/commit/?id=49be6aed097552f54b7ce8df4a4837310d8c1757

[Updated on: Mon, 26 April 2021 14:18]

Report message to a moderator

Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1840863 is a reply to message #1840841] Tue, 27 April 2021 08:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
Either fix would avoid the issue. I've regenerated the catalog to include CDO again.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1840870 is a reply to message #1840863] Tue, 27 April 2021 16:24 Go to previous messageGo to next message
Ernst Blecha is currently offline Ernst BlechaFriend
Messages: 14
Registered: December 2019
Junior Member
Thank you again for your help!
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1854236 is a reply to message #1840870] Mon, 08 August 2022 17:31 Go to previous messageGo to next message
Elie Richa is currently offline Elie RichaFriend
Messages: 72
Registered: February 2016
Member
Hello Ed,

I'm encountering this same issue again with a fresh install of Eclipse Modeling Tools 2021-03 using Oomph. When the installation completes, the new instance is unable to load Oomph setups when "Perform Setup Tasks" is invoked or any of the setups are navigated.

As before, the error is about the "archive:" protocol. This occurs at least on macOS and Linux (Ubuntu 20.04).

I imagine this is fixed in newer versions, but assuming I wanted to stay on 2021-03, what would the solution be here?

Many thanks,

eclipse.buildId=4.19.0.I20210303-1800
java.version=11.0.16
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.modeling.product

org.eclipse.oomph.setup.ui
Error
Mon Aug 08 08:52:14 PDT 2022
org.eclipse.oomph.util.IOExceptionWithCause: unknown protocol: archive: archive:http://www.eclipse.org/setups/setups.zip!/http/git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.oomph.util.IOExceptionWithCause: unknown protocol: archive: archive:http://www.eclipse.org/setups/setups.zip!/http/git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$ResourceLocator.demandLoadHelper(ResourceSetImpl.java:804)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$MappedResourceLocator.getResource(ResourceSetImpl.java:1204)
	at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil$3.getResource(SetupCoreUtil.java:466)
        ...
Caused by: org.eclipse.oomph.util.IOExceptionWithCause: unknown protocol: archive: archive:http://www.eclipse.org/setups/setups.zip!/http/git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup
	at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createIOException(ECFURIHandlerImpl.java:555)
	at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.access$15(ECFURIHandlerImpl.java:542)
	at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1805)
	at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:323)
	at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:358)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1314)
	at org.eclipse.oomph.setup.internal.core.util.ResourceMirror$LoadJob.perform(ResourceMirror.java:232)
	at org.eclipse.oomph.util.WorkerPool$Worker.run(WorkerPool.java:434)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.net.MalformedURLException: unknown protocol: archive
	at java.base/java.net.URL.<init>(URL.java:652)
	at java.base/java.net.URL.fromURI(URL.java:719)
	at java.base/java.net.URI.toURL(URI.java:1116)
	at org.eclipse.ecf.provider.filetransfer.identity.FileTransferID.getURL(FileTransferID.java:80)
	at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)
	at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:578)
	at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:108)
	at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnectionRequest(ECFURIHandlerImpl.java:1950)
	at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1649)
	... 6 more


Elie Richa, Ph.D
Software Engineer, AdaCore
https://www.adacore.com
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1854245 is a reply to message #1854236] Tue, 09 August 2022 06:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
I just tried it and it worked okay for me. You could try installing a newer version of CDO into the IDE with problems.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1854257 is a reply to message #1854245] Tue, 09 August 2022 11:21 Go to previous messageGo to next message
Elie Richa is currently offline Elie RichaFriend
Messages: 72
Registered: February 2016
Member
Hmm there are things I don't understand. Apologies if these are obvious questions.

The releases/2021-03 repository contains org.eclipse.emf.cdo.common [4.13.0.v20210308-1749] and org.eclipse.oomph.setup.core [1.19.0.v20210221-1019].

There were two patches addressing this issue, one in CDO and one in Oomph. Both fixes happened after the dates in the above build qualifiers of course.

So do I understand correctly that the fixes never made it into the releases/2021-03 repository? Which means that installing from releases/2021-03 should create that issue systematically for everyone, not just me?

You mentioned installing a newer version of CDO. Do you mean I should install CDO from the releases/2021-06 repository for example?

I did that using the traditional "Install New Software" wizard. It was CDO 4.14.0 and it managed to install with no conflicts or earthquakes. After that my Eclipse instance was able to resolve Oomph setups. Then when running the tasks, I expected Oomph to downgrade CDO back to 4.13.0 because that's the version the the P2 Director task sees. But to my surprise Oomph did not do a downgrade. How come?

And finally, I wanted to find a way to propagate the solution to my team. So I tried adding a P2 Director task in our project setup to install CDO 4.14.0. I disabled merge so that the releases/2021-06 repository does not get used for resolving the main Eclipse Modeling Tools P2 Directory task.

<?xml version="1.0" encoding="UTF-8"?>
<setup.p2:P2Task
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
    label="CDO"
    mergeDisabled="true">
  <requirement
      name="org.eclipse.emf.cdo.epp.feature.group"
      versionRange="[4.14.0,5.0.0)"/>
  <repository
      url="http://download.eclipse.org/releases/2021-06"/>
</setup.p2:P2Task>


The installation finished successfully but the result was a weird inconsistent installation where the Installation Details view only showed the CDO 4.14.0 feature (and none of the other features), but the actual cdo.common plugin was 4.13.0 and caused the same URI handler issue.

So is there something else I could try to propagate a solution through the Oomph project setup?

Many thanks,


Elie Richa, Ph.D
Software Engineer, AdaCore
https://www.adacore.com
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1854262 is a reply to message #1854257] Tue, 09 August 2022 15:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
Yes, many things going on. The installer generally includes https://download.eclipse.org/oomph/updates/milestone/latest (or https://download.eclipse.org/oomph/updates/latest for the nightly installer). Until 2022-03, the latest version of Oomph could be installed in very old IDEs, but the platform's changes for PGP signing could not be accommodated in a backward compatible way, so that stopped being true. So for older IDEs, the latest Oomph won't install but instead the Oomph version from the train gets installer, which can be quite old.

The generated product catalog includes version ranges on only a few of the features, and even for those, only sets the lower bound so you can always update the features of an installation. You should instead use a CDO site with mostly only CDO plugins, e.g.,

https://download.eclipse.org/modeling/emf/cdo/drops/R20220608-1105/

This for browser all the folders for CDO:

https://download.eclipse.org/justj/?file=modeling/emf/cdo/drops/R20220608-1105

I think just adding this site will install the latest CDO from that site while installing the rest as normal.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1854263 is a reply to message #1854262] Tue, 09 August 2022 15:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
Oh, and I think perhaps another alternative is to include this update site to install a newer version of Oomph (though not the latest version).

https://download.eclipse.org/oomph/drops/release/1.23.0/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: index:/org.eclipse.setup fails to resolve with 2021-03 [message #1854274 is a reply to message #1854263] Tue, 09 August 2022 22:31 Go to previous message
Elie Richa is currently offline Elie RichaFriend
Messages: 72
Registered: February 2016
Member
Thanks for the explanation Ed. It makes things much clearer.

I went for the second solution of including a newer Oomph update site and it worked well.

Thanks!


Elie Richa, Ph.D
Software Engineer, AdaCore
https://www.adacore.com
Previous Topic:Eclipse installation fails on repository error
Next Topic:Installation failure [solved]
Goto Forum:
  


Current Time: Tue May 07 06:46:37 GMT 2024

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

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

Back to the top