It's all about the answers!

Ask a question

RTC Client Debug problem with WinHttpClients


William Hunsicker (40610) | asked Mar 23 '21, 11:02 a.m.
edited Mar 23 '21, 2:07 p.m.

 Hi Everyone,


  I am upgrading our version of Eclipse to 2020-06.  When I install the base Eclipse IDE for Enterprise Java Developers and then install the RTC Client 6.0.4 Eclipse Plugins from the P2 repository, I encounter the below error when trying to start an Eclipse Application debug session.

org.apache.httpcomponent.httpclient
-- Missing Constratint: Import-Package: org.apache.commons.codec.binary; version="[1.13.0,1.14.0)" (Yes the square bracket and the closing parenthacy are accurate for the message from eclipse)

When I start the same debug without the RTC client, I get no warnings at all.

I can click "continue" and ignore this message and the child Eclipse application will start.  When I do that, and attempt to create a new repository connection, I get the same error as listed in the thread below:
"Unhandled event loop exception:  java.lang.NoClassDefFoundError: org/apache/http/impl/client/WinHttpClients"


Here is the environment I am running in:
OpenJDK 1.8-262
Eclipse 2020-06 
RTC Client 6.0.4 (loaded using P2 repo)
Windows 10 20H2

Any suggestions for ways to resolve this so I can upgrade would be apprecitated.

Thanks,
Bill


Comments
William Hunsicker commented Mar 23 '21, 1:45 p.m.

 More information on the error stacktrace from the child Eclipse debug session:

Caused by: java.lang.ClassNotFoundException: org.apache.http.impl.client.WinHttpClients cannot be found by com.ibm.team.repository.common.remoteaccess_1.2.4000.v20170426_0030
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.lang.ClassLoader.loadClass(ClassLoader.java:872)


William Hunsicker commented Mar 23 '21, 2:06 p.m.

Steps to reproduce:

  1. Copy Eclipse IDE for Enterprise Java Developers version 2020-06 to c:\eclipse
  2. Update eclipse.ini and change memory to 1024/2048
  3. Update eclipse.ini and change JDK to point to OpenJDK 1.8-262
  4. Start Eclipse
  5. Add P2 repo for RTC Client 6.0.4 (extracted from the zip file)
  6. Create Debug Configuration for Eclipse Application
  7. Click on Plugins Tab and set Launch With to "plug-ins selected below only"
  8. Apply and Debug (Note no errors)
  9. install RTC and repeat test


William Hunsicker commented Mar 23 '21, 2:08 p.m.

 Unable to enact this solution as they cannot be installed at the same time
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=416596

One answer



permanent link
Ralph Schoon (63.6k33647) | answered Mar 23 '21, 2:50 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 23 '21, 2:51 p.m.

I think I remember to have seen someting similar in a different context. Try using the Vanilla RTC shipped without the P2 install, or create a case with support.


Comments
William Hunsicker commented Mar 23 '21, 2:54 p.m.

Hi Ralph.


Can the Vanilla RTC be accessed from within Eclipse or is that the command line version? 


Ralph Schoon commented Mar 23 '21, 4:09 p.m. | edited Mar 23 '21, 4:14 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On the all downloads page is a complete install of an Eclipse client with RTC installed, as ZIP file. Install that one. It has all you want. It is called Client for Eclipse 4.2.x IDE download https://jazz.net/downloads/rational-team-concert/releases/6.0.4/RTC-Client-Win64-6.0.4.zip
If you have problems there -> support.

In the past there have been RTC clients missng some features of the PDE, but that is not the case any more. Just try the complete RTC Client zip that does not need the P2 install. If that does not work, ask support.



William Hunsicker commented Mar 23 '21, 4:23 p.m.

Thanks :).  Appreciate the time as always! 

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.