It's all about the answers!

Ask a question

Why can't I access my Team Repository while testing and debugging an RTC extension.


Andrew Soloninka (5511924) | asked Feb 08 '13, 5:00 p.m.
edited Feb 08 '13, 5:10 p.m.
I have been building an RTC extension and today while "stepping" through the extension in debug mode the extension failed while attempting to access the Derby based Team Repository. I haven't had this happen before. I am debugging using the Jetty RTC Server. I logged into the Server Administration and checked the Component Status. I found 2 Components and their services were not functioning:
  • com.ibm.teamz.supa.admin
  • com.ibm.teamz.supa.search
I ran the diagnostics on Database and Database Indicies and both checked out ok. 

What is causing this problem?

Comments
Andrew Soloninka commented Feb 12 '13, 10:49 a.m.
I found this in the logs
10:27:28,984 [1896116484@qtp-1533631337-2]  WARN ComponentVersionMismatch                            - CRJAZ1041I The component is installed in the database but is not present in the server: com.ibm.team.scm.tests
...
10:27:29,257 [1896116484@qtp-1533631337-2] ERROR ComponentNotInstalled                               - Component has not been installed in the database: com.ibm.teamz.dsdef
10:27:29,276 [1896116484@qtp-1533631337-2] ERROR ComponentNotInstalled                               - Component has not been installed in the database: com.ibm.teamz.supa.search
10:27:29,290 [1896116484@qtp-1533631337-2] ERROR ComponentNotInstalled                               - Component has not been installed in the database: com.ibm.teamz.supa.admin

...


Andrew Soloninka commented Feb 12 '13, 12:30 p.m.

It looks like the com.ibm.team.scm.tests is missing from the server. In following the workflow of the extension workshop, should I rerun the [RTCExt] Create RTC Test Database?


Andrew Soloninka commented Feb 12 '13, 2:50 p.m. | edited Feb 12 '13, 2:54 p.m.

Tried to rerun [RTCExt] Create RTC Test Database but found that one of the features had an error. The com.ibm.team.workitem.server.test.provision.rtc.feature cannot find the org.selenium.java.client bundle

Accepted answer


permanent link
Jorge Diaz (8664434) | answered Feb 13 '13, 9:17 a.m.
JAZZ DEVELOPER
edited Feb 13 '13, 9:19 a.m.
Hi Andrew,

I have and added the following to the features list  to "[RTCExt] Create RTC Test Database":

 - com.ibm.teamz.supa.server.feature
 - com.ibm.teamz.langdef.feature.server

- com.ibm.teamz.langdef.feature.common
 - com.ibm.teamz.dsdef.feature.server
 - com.ibm.teamz.dsdef.feature.common

I then have ran the launch to generate this new database. The components list now appears OK. The errors you list in your second comment ( like "
10:27:29,257 [1896116484@qtp-1533631337-2] ERROR ComponentNotInstalled        - Component has not been installed in the database: com.ibm.teamz.dsdef ...")
No longer appear.
Andrew Soloninka selected this answer as the correct answer

Comments
Andrew Soloninka commented Feb 13 '13, 2:04 p.m.

Jorge, Thanks I will try this. 


Andrew Soloninka commented Feb 13 '13, 5:02 p.m.

Jorge, This worked to eliminate the issue with the supa components but I am still not able to connect programmatically to the Team Repository. Although the error is different. 16:53:08,884 [518659818@qtp-1097220454-54] ERROR com.ibm.team.process.common                         - 
java.lang.NullPointerException 


Jorge Diaz commented Feb 14 '13, 1:00 p.m.
JAZZ DEVELOPER

Hmm, don't think this has to do with EE or Jetty itself, I can debug EE code in my Jetty with no issues following this configuration. What is your extension trying to do?


Andrew Soloninka commented Feb 14 '13, 2:27 p.m.
My extension will automatically create the team area,
stream, and build definitions(build, promotion, deployment, etc)

when the work item state changes. 


Andrew Soloninka commented Feb 14 '13, 2:41 p.m.

 What puzzles me is that before EE was added to my Target Platform,

I could connect to the team repository and create the team area and stream.
I could not save a Build Definition. After I added EE to the Target 
Platform I could not connect to the Team Repository. I'm going to remove
EE from my Target Platform and see if I can again connect to the Team Repository. 


Andrew Soloninka commented Feb 14 '13, 9:10 p.m.

Found the problem! It was an error in the code. I fixed it and now I can connect to the Team Repository 

showing 5 of 6 show 1 more comments

One other answer



permanent link
Ralph Schoon (63.5k33646) | answered Feb 11 '13, 5:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Andrew,

I have followed https://jazz.net/library/article/1000 and the underlying principles many times and I was always able to debug, when I managed to set up Jetty and the projects following the workflow of the workshop.

One thing you have to watch for is not to clear your workspace and the dev environment on a subsequent start. If you do this, you could loose your development/test repository. If errors happen, look into the logs.

If you connected to a Tomcat with your plugin deployed I would suggest looking into the logs as well.


Comments
Andrew Soloninka commented Feb 12 '13, 9:59 p.m.

Ralph I have been following https://jazz.net/library/article/1000 and a closer review of the logs has helped me get a better handle on the issue. Please note the comments to my original question.  


Ralph Schoon commented Feb 13 '13, 1:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

When creating https://jazz.net/library/article/1000 I saw the issue with the selenium bundle. We had a discussion around it and it appears that the missing bundle does not break anything. What did break things for me was not following the advice to switch file encoding to UTF-8 as described in the article.

I have tried setting up using the method of the Extensions Workshop (with or without the repository containing he example code) and it successfully works for me every time. I noticed people getting into trouble if they miss certain steps or check boxes. From the information available I can not tell what your problem is. I would suggest to follow the extensions workshop with 4.0 once and make sure you get it working. Then, try a free set up (without the external repository with the example code) for any version you like. Just skip the setup of the external server (you need to install it to get the licenses tough). You can copy the workshop source and configuration over into your new workspace. 


Ralph Schoon commented Feb 13 '13, 1:58 a.m. | edited Feb 13 '13, 2:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Another thought, are you trying to use enterprise extensions? In this case the 10 Free developer licenses won't work. You will have to upload real Enterprise licenses. And you micht have to check if there are additional licenses you need to import.

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.