RTC Eclipse fail when creating a repository connection to jazz team server
I have a jazz team server runnning
And an Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2021-03 (4.19.0),
Using jdk-16.0.2 library
When, inside Eclipse, through Team Artifacts View -> Create a Repository Connection, I try to create a jazz repository connection, It connects (user and password are ok), but I get the following message:
Could not get value of field private transient sun.util.calendar.BaseCalendar$Date java.util.Date.cdate in 2021-04-22 10:58:57.95
|
Accepted answer
Thomas Hofmann (16)
| answered Oct 24 '22, 4:43 a.m.
edited Oct 24 '22, 4:45 a.m. by Ralph Schoon (63.5k●3●36●46) Add these two lines to the Eclipse.ini
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
Ralph Schoon selected this answer as the correct answer
Comments I decided to provide more details here: https://rsjazz.wordpress.com/2022/10/26/the-ewm-rational-team-concert-extensions-workshop-and-recent-eclipse-versions/ |
5 other answers
I had the same problem with Eclise 2021-09 with JRE 17 and the p2 repo for EWM 7.0.2 client.
When trying to connect to a Jazz repo I got the error message
Could not get value of field private transient sun.util.calendar.BaseCalendar$Date java.util.Date.cdate in 2021-09-29 18:08:52.74 When using the eclipse installer and select the JRE version 16 instead 17 a repository connection is successful against EWM 7.0.2.
Comments
Peter Morgenthaler
commented Dec 01 '21, 10:36 p.m.
Thanks for the help. I was banging my head against a brick wall on this one. |
Ralph Schoon (63.5k●3●36●46)
| answered Sep 14 '21, 6:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Please download the vanilla Eclipse client for the version of your CCM server e.g. the plain zip version. Try to connect to your repository using that vanilla Eclipse client using the IBM Java that is included in the download.
Comments
Marcelo Bilezker
commented Sep 14 '21, 7:41 a.m.
I resolved downloading the eclipse LUNA client, (2014) running against jazz team server that cames with RTC702.
It seems that there is some incompatibility with latest version of Eclipse.
Anyway i See you advice was the right direction (I change eclipse cliente before I read your answer...)
For the extensions workshop I use Neon 4.6 from 2016.
I see the same issue with 4.21
Ralph Schoon
commented Oct 28 '21, 11:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As of today only versions up to 4.15 are supported for EWM/RTC |
Hi, Below are the combinations of Java/Eclipse clients versions I have tried
Eclipse 2019-06 (supported according IBM) - Java 8 - EWM works as expected
Eclipse 2021-09 (Not supported according to IBM) - Java 8 - Will not start (requires Java 11)
Eclipse 2021-09 -Java 11 - EWM plugin starts and appears to work as epected - Some eclipse plugins (Wild Web Developer do not work.. require Java 17+)
Eclipse 2021-09- Java 14 - EWM plugin starts and appears to work as epected - Some eclipse plugins (Wild Web Developer do not work.. require Java 17+)
Eclipse 2021-09 - Java 15-17 - EWM Plugin will not connect to server - Other plugins now work :(
Hoping IBM fixes the java compatibilty issue.. it is likely a really simple fix to avoid using the cdate call which appears to be be deprecated now..
Hope that is of some use to people.
Pete
|
Try adding --add-opens=java.base/java.util=ALL-UNNAMED to eclipse.ini Comments This does not change anything for me.
Thomas Hofmann
commented Oct 24 '22, 3:52 a.m.
Works for me. Could you past the stack trace from the error message please?
Ralph Schoon
commented Oct 24 '22, 4:06 a.m.
| edited Oct 24 '22, 4:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The stacktrace:
eclipse.buildId=4.24.0.I20220607-0700
java.version=17.0.3
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -showLocation
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -showLocation
org.eclipse.core.jobs
Error
Mon Oct 24 10:04:08 CEST 2022
An internal error occurred during: "Logging into localhost".
java.lang.RuntimeException: Could not get value of field private final byte[] java.lang.String.value in ADMIN
at com.ibm.team.repository.common.internal.util.ObjectSizer.getFieldValue(ObjectSizer.java:427)
at com.ibm.team.repository.common.internal.util.ObjectSizer.getDeepSize(ObjectSizer.java:333)
at com.ibm.team.repository.common.model.impl.ItemHandleImpl.size(ItemHandleImpl.java:554)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.ibm.team.repository.common.internal.util.ItemStore$ItemInvocationHandler.invoke(ItemStore.java:597)
at jdk.proxy10/jdk.proxy10.$Proxy43.size(Unknown Source)
at com.ibm.team.repository.common.internal.util.ItemStore.getSize(ItemStore.java:478)
at com.ibm.team.repository.common.internal.util.ItemStore.access$2(ItemStore.java:476)
at com.ibm.team.repository.common.internal.util.ItemStore$WeakItemDescriptor.<init>(ItemStore.java:495)
at com.ibm.team.repository.common.internal.util.ItemStore.putItem(ItemStore.java:160)
at com.ibm.team.repository.common.internal.util.ItemStore.putItems(ItemStore.java:231)
at com.ibm.team.repository.client.internal.ItemManager.applyNewStates(ItemManager.java:1455)
at com.ibm.team.repository.client.internal.ItemManager.applyItemUpdates(ItemManager.java:732)
at com.ibm.team.repository.client.internal.ItemManager.applyItemUpdates(ItemManager.java:722)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1618)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:673)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:646)
at com.ibm.team.process.internal.rcp.ui.LoginAction$1.run(LoginAction.java:88)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @3aef4650
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at com.ibm.team.repository.common.internal.util.ObjectSizer.getFieldValue(ObjectSizer.java:424)
... 21 more
Thomas Hofmann
commented Oct 24 '22, 4:24 a.m.
Ok that should explain it.
module java.base does not "opens java.lang" to unnamed module
You need to add a line that I already had in my eclipse.ini I guess.
Please also add:
--add-opens=java.base/java.lang=ALL-UNNAMED
Ralph Schoon
commented Oct 24 '22, 4:34 a.m.
| edited Oct 24 '22, 4:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Das ändert leider nichts. Hier meine ini
-vm
C:\RTC702SR1Dev\installs\TeamConcertVanilla\jazz\jdk\bin
-startup
plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.500.v20220509-0833
-product
org.eclipse.epp.package.jee.product
-showLocation
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.3.v20220515-1416/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
--add-opens=java.base/java.lang=ALL-UNNAMED
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms256m
-Xmx2048m
-Duser.language=en
-Dhttps.protocols=TLSv1.1,TLSv1.2
Ralph Schoon
commented Dec 01 '22, 10:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I missed the statement -vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.3.v20220515-1416/jre/bin in the middle....
showing 5 of 6
show 1 more comments
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Read How should I ask a question in the Forum if I want to receive useful answers? and update your question.