-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XStream not working with Java version 16 and above #1142
Comments
Same here. But happens only if I run eclipse itself with java 16. Looks like some of the underlying libs are not compatible:
Workaround is to run eclipse with java 11 |
#1142 (comment) OS: Java: Eclipse: |
No you do not. If you look carefully at the post you had referenced it clearly states that using JRE/JDK 11 is not encountering this issue. |
yes i did, if you look carefully in my message you'll see i never said i had the same issue, just same exception and problem ofcourse things are different, different java, different hardware, different operating systems, different configurations, different files, no 2 computer is ever going to be identical but i understand your sentiment of not wanting "unrelated" posts in issues, however i wanted to help show that this wasnt just something one user had experienced (tag: unconfirmed) as i had gotten a blatantly identical stacktrace |
What confuses me is that this issue should only "starting" with Java 16. In reality the issue is present since Java 9. See: x-stream/xstream#101 It also depends if VM switches are turned on to allow illegal reflection access or not. A workaround for now is either to downgrade to Java 15 or below, or to allow illegal reflection access. However with Java 17 Saros will indeed stop working unless we either replace the XStream library or the issue is fixed in the XStream library. |
@m273d15 Can we somehow manage to publish a new Saros Version (16.0.2) by using XStream Version 1.4.18 ? Workaround for now (Eclipse): Download https://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.4.18/xstream-1.4.18.jar Locate the Delete the Open the file Replace line Restart Eclipse and ensure the OSGI cache is purged. |
The above workaround doesn't work for me. As a workaround, I added the following lines to my eclipse.ini:
I was able to run saros 15.0.0 with Eclipse Version: 2023-12 (4.30.0) (Build id: 20231201-2043) and Java 17 (org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.9.v20231028-0858). |
Describe the bug
Saros panel is displaying an error after installation.
Here's a snippet of the error:
org.eclipse.core.runtime.CoreException: Plug-in saros.eclipse was unable to load class saros.ui.views.SarosView.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:61)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:104)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:304)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:342)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: