It's all about the answers!

Ask a question

TeamRepositoryException Badly configured client


Krzysztof Daniel (5163) | asked Dec 06 '10, 3:09 a.m.
Hello,
I am trying to write a LN plugin that will connect to the repository and open a workitem.

Unfortuntely I get an exception

TeamRepositoryException Badly configured client. Missing a foundation component tag

INFO java.lang.NullPointerException
at com.ibm.btt.common.core.logic.expr.ConstantsLogic.loadFromServer(Unknown Source)
at com.ibm.btt.common.core.logic.expr.ConstantsLogic.access$0(Unknown Source)
at com.ibm.btt.common.core.logic.expr.ConstantsLogic$1.run(Unknown Source)
com.ibm.team.repository.common.TeamRepositoryException: Badly configured client. Missing a foundation component tag.
at com.ibm.team.repository.client.internal.TeamRepository.checkServerVersionMatches(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository.login(Unknown Source)
at com.ibm.support.openworkitem.handlers.OpenWorkItemHandler.execute(Unknown Source)

What does it mean and how can I fix it?

5 answers



permanent link
William Fu (4611) | answered Mar 06 '11, 10:03 p.m.
Hi, I'm wondering if you have solved this error? I'm getting the same problem. I've traced down the code and seems like we've reached a code which should never have happened....(There is a developer's comment in the code :-) )


String clientVersionString = getClientVersionString();
if (clientVersionString == null)
// Should never happen, there will always be at least a Foundation
// configuration. No need to externalize
throw new TeamRepositoryException("Badly configured client. Missing a foundation component tag.");

permanent link
vedika dalmia (6) | answered May 27 '11, 6:14 a.m.
Hi,

I hit the same error. I have a standalone java program that uses the Java Client APIs to create work items and it throws the same exception when it tries to log in


Badly configured client. Missing a foundation component tag.
com.ibm.team.repository.common.TeamRepositoryException: Badly configured client. Missing a foundation component tag.
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:1582)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1444)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:617)

When I run the program from within RTC is runs without errors.
When the program is packaged as a jar and uses a classloader to load the Java Client API from the user's machine , it throws this exception. The API's are not packaged in the jar.
Is there something that needs to be added to the jar to make it pick up the client version?

Any help/insight to resolve this would be great.

Thanks in advance.

permanent link
John Vasta (2.6k15) | answered May 27 '11, 8:44 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The fallback "Foundation" configuration that the getClientVersionString() method will look for is defined in the com.ibm.team.repository.common bundle, so it must be that you are not including that bundle/jar in your client configuration.

permanent link
Chaitanya Puttaswamy (6) | answered Feb 02 '12, 12:18 a.m.
Hi,
I am trying to make an Eclipse plugin project on Eclipse 3.6. I get an error as below when I invoke RTC client API's . These API's work fine when run in a standalone Java class. I am using RTC Java Client version 3.0.1.2.

ERROR

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:1657)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1445)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:618)
at com.ibm.tools.rtc.client.shared.RTCClient.login(RTCClient.java:220)
at com.ibm.job.JobRunner.getContext(JobRunner.java:130)
at com.ibm.job.JobRunner.runOneJob(JobRunner.java:151)
at wizards.PatchPublishWizard.performFinish(PatchPublishWizard.java:59)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.ibm.rtc.tools.ui.core.actions.PatchPublishAction.run(PatchPublishAction.java:41)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
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:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


I have com.ibm.team.repository.common and com.ibm.team.rtc.common in the classpath.

I have also added this piece of code but this does not resolve the error -
RepositoryPackage.eINSTANCE.eContents();

Is there anything that I am missing? Any pointers?
Please, help.

Thanks,
Chaitanya

permanent link
Nick Edgar (6.5k711) | answered Apr 21 '12, 11:36 a.m.
JAZZ DEVELOPER
This issue is being discussed again now in https://jazz.net/forums/viewtopic.php?t=24415

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.