Exception when login to RTC with Java API
Use'Run as' -- 'Java Application', the following code may login to one RTC server and return some value needed:
However, When I call these code in my Notes-plugin(use an OSGI/Equinox container),throws the following exception: com.ibm.cbnr.exception.WICException: TeamRepositoryException occurs while performing the authorization to the repository with the username and password. at com.ibm.cbnr.rtc.RTCClientManager.login(RTCClientManager.java:475) at com.ibm.cbnr.rtc.RTCClientManager.accessRepository(RTCClientManager.java:115) at com.ibm.cbnr.NotesConnectRTC.ConnectionTORTC(NotesConnectRTC.java:1467) at com.ibm.cbnr.actions.ConnectTORTC.run(ConnectTORTC.java:19) at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4057) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3648) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.ibm.rcp.personality.framework.internal.RCPApplication.run(RCPApplication.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) Caused by: com.ibm.team.repository.common.TeamRepositoryException: Badly configured client. Missing a foundation component tag. at com.ibm.team.repository.client.internal.TeamRepository.checkServerVersionMatches(TeamRepository.java:1686) at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1470) at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:638) at com.ibm.cbnr.rtc.RTCClientManager.login(RTCClientManager.java:473) ... 38 more Please refer to below my MANIFEST.MF: Manifest-Version: 1.0 Eclipse-LazyStart: true Bundle-ManifestVersion: 2 Bundle-Name: NotesToRTC Bundle-SymbolicName: com.ibm.****;singleton:=true Bundle-Version: 1.0.0.qualifier Bundle-Localization: plugin Bundle-Activator: com.ibm.****.SideNotePlugin Bundle-Vendor: **** Require-Bundle: org.eclipse.core.runtime, org.eclipse.ui, org.eclipse.ui.views, com.ibm.rcp.ui, com.ibm.notes.java.api, com.ibm.notes.java.ui Bundle-ActivationPolicy: lazy Bundle-ClassPath: SideNote.jar, ., lib/apache-mime4j-0.6.jar, lib/org.eclipse.osgi_3.6.3.R36x_v20110629.jar, lib/org.eclipse.equinox.registry_3.5.0.v20100503.jar, lib/org.eclipse.equinox.common_3.6.0.v20100503.jar, lib/org.eclipse.emf.ecore_2.6.1.v20100914-1218.jar, lib/org.eclipse.emf.ecore.xmi_2.5.0.v20100521-1846.jar, lib/org.eclipse.emf.ecore.change_2.5.1.v20100907-1643.jar, lib/org.eclipse.emf.common_2.6.0.v20100914-1218.jar, lib/org.eclipse.core.runtime_3.6.0.v20100505.jar, lib/org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar, lib/com.ibm.team.foundation.client_1.1.1000.v20120518_2049.jar, lib/com.ibm.team.foundation.common_1.2.0.v20120518_2049.jar, lib/com.ibm.team.foundation.rcp.core_1.1.1000.v20120518_2049.jar, lib/com.ibm.team.repository.rcp.common_3.1.0.v20120502_0655.jar, lib/com.ibm.team.repository.common_1.3.1000.v20120522_1716.jar, lib/com.ibm.team.repository.common.transport_1.1.1000.v20120518_2049.jar, lib/com.ibm.team.repository.common.serialize_1.1.100.v20120518_2049.jar, lib/com.ibm.team.repository.common.remoteaccess_1.1.1000.v20120518_2049.jar, lib/com.ibm.team.repository.common.remoteaccess.auth_1.2.1000.v20120518_2049.jar, lib/com.ibm.team.repository.common.json_1.1.1000.v20120518_2049.jar, lib/com.ibm.team.repository.client_1.2.1000.v20120518_2049.jar, lib/com.ibm.team.process.common_1.2.1000.v20120518_2049.jar, lib/com.ibm.team.interop.common_3.0.200.v20120430_0235.jar, lib/com.ibm.team.interop.client_3.0.200.v20120430_0235.jar, lib/c3p0-0.9.2-pre8.jar, lib/com.ibm.icu_4.2.1.v20100412.jar, lib/com.ibm.rational.wvcm.ct_3.0.100.v20120516_0411.jar, lib/com.ibm.rational.wvcm.factory_3.0.100.v20120430_0235.jar, lib/com.ibm.rational.wvcm.interop_3.0.100.v20120430_0235.jar, lib/com.ibm.rational.wvcm.ri.repo_3.0.100.v20120501_0806.jar, lib/com.ibm.team.build.client_3.0.100.v20120430_0235.jar, lib/com.ibm.team.build.common_3.1.0.v20120510_2207.jar, lib/com.ibm.team.calm.foundation.common_3.1.0.v20120430_0235.jar, lib/com.ibm.team.connector.scm.client_3.0.100.v20120430_0235.jar, lib/com.ibm.team.connector.scm.common_3.0.100.v20120430_0235.jar, lib/com.ibm.team.connector.scm.operations_3.0.100.v20120430_0235.jar, lib/com.ibm.team.filesystem.client_3.1.0.v20120430_0235.jar, lib/com.ibm.team.filesystem.client.1.7.jar, lib/com.ibm.team.filesystem.client.daemon_3.1.0.v20120516_0411.jar, lib/com.ibm.team.filesystem.client.workitems_3.1.0.v20120503_2134.jar, lib/com.ibm.team.filesystem.common_3.1.0.v20120430_0235.jar, lib/com.ibm.team.filesystem.common.workitems_3.1.0.v20120430_0235.jar, lib/com.ibm.team.interop.client.rest_3.0.200.v20120430_0235.jar, lib/com.ibm.team.process.client_1.2.1000.v20120518_2049.jar, lib/com.ibm.team.reports.client_2.1.1000.v20120518_2049.jar, lib/com.ibm.team.reports.common_2.3.100.v20120518_2049.jar, lib/com.ibm.team.rtc.common_3.1.0.v20120522_0828.jar, lib/com.ibm.team.scm.admin.common_3.1.0.v20120430_0235.jar, lib/com.ibm.team.scm.client_3.1.0.v20120502_0655.jar, lib/com.ibm.team.scm.common_3.1.0.v20120506_2349.jar, lib/com.ibm.team.workitem.client_3.1.0.v20120504_0401.jar, lib/com.ibm.team.workitem.common_3.1.0.v20120510_2207.jar, lib/commons-fileupload-1.2.2.jar, lib/commons-io-1.2.jar, lib/commons-io-2.0.1.jar, lib/commons-lang3-3.1.jar, lib/commons-logging-api-1.1.jar, lib/freemarker-2.3.19.jar, lib/httpclient-4.1.2.jar, lib/httpcore-4.1.3.jar, lib/httpcore-nio-4.1.3.jar, lib/httpmime-4.1.2.jar, lib/log4j-1.2.15.jar, lib/mchange-commons-java-0.2.3.3.jar, lib/net.oauth_0.2.0.v20120518_2049.jar, lib/ognl-3.0.6.jar, lib/org.apache.commons.codec_1.3.0.v20100518-1140.jar, lib/org.apache.commons.httpclient_3.1.0.v201005080502.jar, lib/org.apache.commons.logging_1.0.4.v201005080501.jar, lib/org.eclipse.core.filesystem_1.3.1.R36x_v20100727-0745.jar, lib/org.eclipse.core.resources_3.6.1.R36x_v20110131-1630.jar, lib/org.eclipse.core.resources_3.6.2.R36x_v20110628-1020.jar, lib/org.eclipse.equinox.preferences_3.3.0.v20100503.jar, lib/org.eclipse.equinox.preferences_3.3.1.R36x_v20110302.jar, lib/org.eclipse.jface.text_3.6.1.r361_v20100825-0800.jar, lib/org.eclipse.osgi_3.6.2.R36x_v20110210.jar, lib/org.eclipse.text_3.5.0.v20100601-1300.jar, lib/org.eclipse.xsd_2.6.0.v20100914-1218.jar, lib/poi-3.9-20121203.jar, lib/com.ibm.notes.java.api_1.5.1.20090929-1223/, lib/com.ibm.notes.java.api.win32.linux_1.5.1.20090929-1223/, lib/com.ibm.notes.java.ui_8.5.1.20090929-1223/ Export-Package: com.ibm.****, com.ibm.****.actions Thanks a lot for the help. |
2 answers
Hello,
please refer to this topic - https://jazz.net/forum/questions/75680/cant-connect-to-jazz-server-in-was-70
where you might find the solution to your issue.
Hope it helps,
Eric
Comments
qi li
commented Nov 07 '13, 4:27 a.m.
Eric, thanks for your response.
|
Eric, thanks for your response.
on that topic, I can NOT find the solution for RSA setting. Below actions found : - Removed the javax.servlet jar from my build path - Changed the classloader mode and policy. (Right Click on the EAR -> Java EE -> Open WebSphere Application Server Deployment, go to Application section and make Classloader mode: PARENT_LAST and WAR classloader policy: APPLICATION) My project just is plug-in project. So, appreciate if can give the detail solution. thanks. |
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.