Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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




0 votes

Comments


Accepted answer

Permanent link

 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

0 votes

Comments


5 other answers

Permanent link
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.

2 votes

Comments

 Thanks for the help. I was banging my head against a brick wall on this one.


Permanent link

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.

1 vote

Comments

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

As of today only versions up to 4.15 are supported for EWM/RTC 


Permanent link
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:

0 votes

Comments

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

 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

0 votes


Permanent link

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

0 votes

Comments

This does not change anything for me. 

Works for me. Could you past the stack trace from the error message please?


 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

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 

 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

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 127

Question asked: Sep 10 '21, 2:59 p.m.

Question was seen: 5,008 times

Last updated: Dec 01 '22, 10:54 a.m.

Confirmation Cancel Confirm