CQ Gateway starts but not syncing
I'm trying to use the CQ Connector gateway on linux using M5a. The files
were unzipped using the '-a' option as I saw previous posts(or workitem recommending this). My CQ Schema is the out of the box sample schema supplied with the connector. Both the schema database (SCHEMADB) and the user database (USERDB1) are co-located with the CQ Connector gateway. ClearQuest has been installed on this host and a dbset registered by the name CQ_CONN. I can use CQ to connect to the database set and create defects from this host. When I create the defect I do see the name of the project record I created. Does this need to match anything on the jazz server?(Project area or team area?) The hostname (as reported by the hostname command) for this machine is jazztest.rchland.ibm.com. When the gateway starts I'm seeing the following in the catalina.out log file. Apr 3, 2008 2:40:33 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent I'm not sure whats causing it to report the UnkownHostException, usually this exception lists the host its looking for but this seems to be listing dot? My cqconnector.properties file is as follows with passwords obviously x'd out. # CQ Connector polling period The Gateway appears to start as if I goto test page I do see the "Welcome to the Jazz CQ Connector Gateway!" message. I did import the sync rules to my jazz repo and created a external repo connection point to the host that has the cq gateway on it. To verify I've copy/pasted the url from the external repo definition into a browser and I do see the "Welcome to the Jazz CQ Connector Gateway!" message. I also enabled the outgoing sync capabilites on the Jazz server via the admin web interface. For safe measures I also restarted the jazz server following that. I've also double/triple checked that the User Record in CQ maps correctly to the user in jazz for the connector. Meaning that the CQ Login, Name, and E-mail fields are exactly the same as the Jazz User Id, Name, and email fields. At this point I'm not sure where to look for additional debug information. Any additional insight? --Mark |
7 answers
Hi Mark,
Can you look at the server.startup file to see how the cqconnector.properties file is being specified. Did you change it? I ask because I see that it is trying to use the ftp protocol. This may be a "red-herring", but the gateway can't work without reading the properties file. Here is a snippet from the stack trace you included: at sun.net.ftp.FtpClient.openServer(FtpClient.java:490) at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:2 87) at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection .java:369) at java.net.URL.openStream(URL.java:1041) at com.ibm.rational.connector.cq.teamapi.common.internal.InteropProperties.r eadPropertyFile(InteropProperties.java:37) Rich Piazza Jazz CQ Connector Team |
rpiazza wrote:
Hi Mark, Hey Rich, Yeah, In M5 there didn't appear to linux startup scripts ( I see they might be with M6) so I wrote my own based on the windows version. Looks like I had a type-o on the export for cqconnector.properties version. Now I'm seeing the following in the log... INFO: Deploying web application archive InteropGateway.war Which seems to indicate a problem with the CQ install itself? --Mark |
Hi Mark,
First, no big deal, but please use the forum so others can take advantage of our discussion :-) What version of the Connector are you using? M6 should handle any version of CQ (after 7.0.1), and Linux! Additionally, the gateway startup script does some environment preparation, so you should use the one in the zip file (Starting in M6 the cq core jar file used by the gateway is the one installed the machine where the gateway runs) Rich Piazza Jazz CQ Connector Team --------------------------------------------------------- From Mark via email: Hey Rich, Yeah, In M5 there didn't appear to linux startup scripts ( I see they might be with M6) so I wrote my own based on the windows version. Looks like I had a type-o on the export for cqconnector.properties version. Now I'm seeing the following in the log... > INFO: Deploying web application archive InteropGateway.war > 09:55:53,688 ERROR com.ibm.rational.interop.level1 > - Couldn't start interop polling: > com.ibm.team.interop.service.managers.clearquest.common.InteropException: Couldn > 't get CQ DB info > at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.initializ > eRepoInfo(CQRepository.java:97) > at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.<init>(CQ > Repository.java:33) > at com.ibm.rational.connector.cq.common.cqgateway.CQGateway.connectToRep > ositoryLocal(CQGateway.java:80) > at com.ibm.rational.connector.cq.gateway.CQInteropPollingManager.addCQRe > pository(CQInteropPollingManager.java:670) > at com.ibm.rational.connector.cq.gateway.CQInteropPollingManager.initial > ize(CQInteropPollingManager.java:772) > at com.ibm.rational.connector.cq.gateway.polling.PollingThread.pollingIn > coming(PollingThread.java:44) > at com.ibm.rational.connector.cq.gateway.polling.PollingThread.run(Polli > ngThread.java:31) > Caused by: > com.ibm.team.interop.service.managers.clearquest.common.InteropException: Couldn > 't get CQ version > at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.getCQV > ersionInfo(CqObjectFactory.java:99) > at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.getImp > lementation(CqObjectFactory.java:106) > at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.create > CqProvider(CqObjectFactory.java:286) > at com.ibm.rational.connector.cq.common.cqgateway.CQInteropEventHandler. > connect(CQInteropEventHandler.java:68) > at com.ibm.rational.connector.cq.common.cqgateway.CQInteropEventHandler. > <init>(CQInteropEventHandler.java:51) > at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.getHandle > r(CQRepository.java:140) > at com.ibm.rational.connector.cq.common.cqgateway.CQRepository.initializ > eRepoInfo(CQRepository.java:90) > ... 6 more > Caused by: > com.ibm.team.interop.service.managers.clearquest.common.InteropException: Illega > l version combination: cqprovider version 7011-IFIX01; cm api version 701 > at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.determ > ineGatewayVersion(CqObjectFactory.java:59) > at com.ibm.rational.connector.cq.common.cqgateway.CqObjectFactory.getCQV > ersionInfo(CqObjectFactory.java:91) > ... 12 more Which seems to indicate a problem with the CQ install itself? :D :) :) |
rpiazza wrote:
Hi Mark, I took a peek at the M6 startup script, the only difference I could see was the copying of the cqjni.jar to the tomcat shared library directory and the setting of the LD_LIBRARY_PATH. So I modified my startup script for M5a to set the LD_LIBRARY_PATH and then copyied that file manually. I then restarted the server, but I'm still seeing the following in the log files: com.ibm.team.interop.service.managers.clearquest.common.InteropException: Illegal version combination: cqprovider version Unfortunately I can't upgrade the environment to M6 until middle of next week. Just in case I did miss something here is the script that I wrote. #!/bin/bash |
M6 additionally has a fix to the code that compares the versions. Those two versions are compatible, but M5a can't determine it
:-( |
rpiazza wrote:
M6 additionally has a fix to the code that compares the versions. I'm guessing given the frown, that the M6 connector prolly shouldn't be used with a M5a repo? --Mark |
As a rule, it is a bad idea to use a jazz repo from one version in a different version. On the other hand, you can make use of the repotools to upgrade your jazz repo from M5a to M6.
|
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.