It's all about the answers!

Ask a question

RTC Eclipse fail when creating a repository connection to jazz team server


Marcelo Bilezker (4619) | asked Sep 10 '21, 2:59 p.m.
edited Sep 11 '21, 8:14 a.m.

 

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





Comments
Ralph Schoon commented Sep 11 '21, 7:17 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Accepted answer


permanent link
Thomas Hofmann (16) | answered Oct 24 '22, 4:43 a.m.
edited Oct 24 '22, 4:45 a.m. by Ralph Schoon (63.1k33645)

 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
Ralph Schoon commented Oct 26 '22, 8:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

5 other answers



permanent link
Matthias Peus (2314) | answered Nov 26 '21, 7:07 a.m.
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.


permanent link
Ralph Schoon (63.1k33645) | 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...)


   


Ralph Schoon commented Sep 14 '21, 7:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

For the extensions workshop I use Neon 4.6 from 2016.


Ralph Schoon commented Oct 28 '21, 8:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 


permanent link
Jason Maron (111) | answered Dec 02 '21, 5:17 p.m.
edited Dec 02 '21, 5:19 p.m.
Ran into same problem following the lab

trick is to be ABSOLUTELY sure you are grabbing the OLDER eclipse Luna... which is buried under "Older Releases"

Edit: to add here is the link in case others hit this problem:


Comments
Ralph Schoon commented Dec 03 '21, 2:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

If in doubt try the vanilla EWM Client that is available as a plain zip file. The reason why the workshop uses a P2 install is, that in the beginning the EWM/RTC Plain Zip vanilla client lacked some Eclipse Plugin Development Environment capabilities. This is no longer the case. Also check the release notes, for 7.02 development it appears that Eclipse up to version 7.14 works. Make sure to use Java 8 - which the workshop actually makes sure you do.


permanent link
Peter Morgenthaler (102815) | answered Sep 01 '22, 3:09 a.m.

 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


permanent link
Thomas Hofmann (16) | answered Oct 23 '22, 2:55 p.m.

 Try adding --add-opens=java.base/java.util=ALL-UNNAMED to eclipse.ini


Comments
Ralph Schoon commented Oct 24 '22, 2:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 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 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


Register or to post 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.