Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox java 10 compatibility
Equinox java 10 compatibility [message #1794697] Wed, 05 September 2018 05:05 Go to next message
Tharindu Wijewardane is currently offline Tharindu WijewardaneFriend
Messages: 3
Registered: September 2018
Junior Member
Hi all,

Does anyone know which version of equinox is compatible with java 10?

I am trying to upgrade an equinox osgi based software platform (wso2 carbon version 4) to be able to run on java 10.

At the moment it is based on equinox version kepler and when I try to run following exceptions are thrown

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.osgi.internal.baseadaptor.BaseStorage (file:/Users/tharindu/CarbonServer/wso2carbon-4.4.35-SNAPSHOT/repository/components/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.internal.baseadaptor.BaseStorage
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:70)
	at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:51)
Caused by: java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
	at org.wso2.carbon.server.CarbonLauncher.launch(CarbonLauncher.java:115)
	at org.wso2.carbon.server.Main.launchCarbon(Main.java:160)
	at org.wso2.carbon.server.Main.main(Main.java:94)
	... 6 more


Therefore I upgrade the equinox version to Photon (latest) and came across following issues when building with even java 8.

Cannot complete the install because one or more required items could not be found.
 Software being installed: Carbon Product 4.4.34.SNAPSHOT (carbon.product.id 4.4.34.SNAPSHOT)
 Missing requirement: Equinox Provisioning Metadata Repository 1.3.0.v20180302-1057 (org.eclipse.equinox.p2.metadata.repository 1.3.0.v20180302-1057) requires 'osgi.bundle; org.tukaani.xz 1.3.0' but it could not be found
 Cannot satisfy dependency:
  From: Carbon Product 4.4.34.SNAPSHOT (carbon.product.id 4.4.34.SNAPSHOT)
  To: org.eclipse.equinox.p2.iu; org.wso2.carbon.core.runtime.feature.group [4.4.34.SNAPSHOT,4.4.34.SNAPSHOT]
 Cannot satisfy dependency:
  From: Equinox Provisioning Console 1.1.0.v20180130-1836 (org.eclipse.equinox.p2.console 1.1.0.v20180130-1836)
  To: java.package; org.eclipse.equinox.p2.engine [2.0.0,3.0.0)
 Cannot satisfy dependency:
  From: Equinox Provisioning Engine 2.6.0.v20180409-1209 (org.eclipse.equinox.p2.engine 2.6.0.v20180409-1209)
  To: java.package; org.eclipse.equinox.internal.p2.metadata.repository.io 0.0.0
 Cannot satisfy dependency:
  From: WSO2 Carbon - Carbon Runtime Feature 4.4.34.SNAPSHOT (org.wso2.carbon.core.runtime.feature.group 4.4.34.SNAPSHOT)
  To: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.console [1.1.0.v20180130-1836,1.1.0.v20180130-1836]


This seems like a bug in org.eclipse.equinox.p2.metadata.repository.

Any help is appreciated.
Re: Equinox java 10 compatibility [message #1794734 is a reply to message #1794697] Wed, 05 September 2018 17:41 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 486
Registered: July 2009
Senior Member
Looks like you hit https://bugs.eclipse.org/bugs/show_bug.cgi?id=502108

I would expect Oxygen to be able to run on Java 10.

Unfortunately I do not know what the p2 messages are about. Hopefully someone else can assist with p2 issues, but you may want to try the p2 forum https://www.eclipse.org/forums/index.php?t=thread&frm_id=195
Re: Equinox java 10 compatibility [message #1794755 is a reply to message #1794734] Thu, 06 September 2018 07:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29550
Registered: July 2009
Senior Member
The IUs mentioned in the message are definitely available in the http://download.eclipse.org/releases/photon" repository and if I use Oomph's Repository Explorer view (it's part of every Photon package), I can see that org.eclipse.equinox.p2.metadata.repository requires <required namespace='osgi.bundle' name='org.tukaani.xz' range='1.3.0'/> and that version 1.8.0.v20180207-1613 is present in the repo so that should satisfy this requirement.
Re: Equinox java 10 compatibility [message #1794762 is a reply to message #1794755] Thu, 06 September 2018 08:20 Go to previous messageGo to next message
Tharindu Wijewardane is currently offline Tharindu WijewardaneFriend
Messages: 3
Registered: September 2018
Junior Member
Hi Thomas,
Thanks for the info. Looks like Kepler is not compatible with java 10. I definitely have to upgrade the equinox version used.

Hi Ed,
We use maven for the build. Since eclipse releases are not available in maven central repo what I did was, downloaded the equinox-SDK-Photon.zip and manually installed the jars into my local maven repo with customized GroupIDs.
ArtifactIDs and version numbers are taken from the filenames of the jars. Does it has any impact on the issue here? I tried adding org.tukaani.xz as a dependency to my pom as well.

Thanks

[Updated on: Thu, 06 September 2018 08:23]

Report message to a moderator

Re: Equinox java 10 compatibility [message #1794764 is a reply to message #1794762] Thu, 06 September 2018 08:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29550
Registered: July 2009
Senior Member
Sorry, I don't know so much about Maven. For doing builds, most projects at Eclipse use Maven in combination with Tycho and with Tycho you can use p2 repositories directly to resolve dependencies and Tycho knows about IUs so it solves the dependencies the way they'd be solved at runtime by p2...
Re: Equinox java 10 compatibility [message #1794770 is a reply to message #1794764] Thu, 06 September 2018 09:17 Go to previous messageGo to next message
Tharindu Wijewardane is currently offline Tharindu WijewardaneFriend
Messages: 3
Registered: September 2018
Junior Member
Hi Ed,

Could you please explain how the dependency org.tukaani.xz is being available to org.eclipse.equinox.p2.metadata.repository ? I suppose its not another osgi bundle.
I am new to equinox/OSGi and I can't clearly understand the role of P2 with equinox. I would appreciate if you can explain or direct me to an article.

Thanks
Re: Equinox java 10 compatibility [message #1794780 is a reply to message #1794770] Thu, 06 September 2018 12:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29550
Registered: July 2009
Senior Member
It is just another bundle. Perhaps this has some useful links/info: https://wiki.eclipse.org/Equinox/p2
Previous Topic:Bug or Feature: Unexpected activation of Prototype service
Next Topic:Conflicting touchpoint actions
Goto Forum:
  


Current Time: Mon Sep 24 19:43:06 GMT 2018

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

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

Back to the top