RTC 4.0.4 zOS 1.13 - bfagent - Why are we not able to connect to external repository url?
* parsing buildfile jar:file:/usr/lpp/jazz/v4.0.4/buildsystem/buildtoolkit/ant-contrib.jar!/net/sf/antcontrib/antlib.xml with URI = jar:file:/usr/lpp/jazz/v4.0.4/buildsystem/buildtoolkit/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
*
* BUILD FAILED
* com.ibm.team.repository.common.TeamRepositoryException: Error logging in to repository https://glenwood.dyndns.org:9443/ccm/. Verify that the repository address and credentials to log in are correct.
* at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:324)
* at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:270)
* at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamBuildClient(AbstractTeamBuildTask.java:226)
* at com.ibm.team.build.ant.task.StartBuildActivityTask.updateBuildResult(StartBuildActivityTask.java:153)
* at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105)
* at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:661)
* at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
* 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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
* at org.apache.tools.ant.Task.perform(Task.java:348)
* at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
* 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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
* at org.apache.tools.ant.Task.perform(Task.java:348)
* at net.sf.antcontrib.logic.Switch.execute(Switch.java:138)
* at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
* 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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
* at org.apache.tools.ant.Task.perform(Task.java:348)
* at org.apache.tools.ant.Target.execute(Target.java:357)
* at org.apache.tools.ant.Target.performTasks(Target.java:385)
* at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
* at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
* at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
* at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
* at org.apache.tools.ant.Main.runBuild(Main.java:758)
* at org.apache.tools.ant.Main.startAnt(Main.java:217)
* at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
* at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
* Caused by: com.ibm.team.repository.common.transport.HostUnknownException: CRJAZ1368E The following URL cannot be reached: https://glenwood.dyndns.org:9443/ccm/versionCompatibility?clientVersion=4.0.4. The network stated that the URL is invalid. Error details: java.nio.channels.UnresolvedAddressException.
* at com.ibm.team.repository.transport.client.ClientHttpUtil.executePrimitiveRequest(ClientHttpUtil.java:1310)
* at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:362)
* at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:321)
* at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:219)
* at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:228)
* at com.ibm.team.repository.transport.client.RestClientConnectionBase.executeMethod(RestClientConnectionBase.java:315)
* at com.ibm.team.repository.transport.client.RestClientConnectionBase.doMethod(RestClientConnectionBase.java:181)
* at com.ibm.team.repository.transport.client.RestClientConnectionBase.doGet(RestClientConnectionBase.java:122)
* at com.ibm.team.repository.transport.client.TeamRawRestServiceClient$RawRestClientConnection.doGet(TeamRawRestServiceClient.java:96)
* 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 com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164)
* at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88)
* at com.ibm.team.repository.client.internal.RawRestServiceClientProxy$RestClientConnectionProxy.invoke(RawRestServiceClientProxy.java:121)
* at com.sun.proxy.$Proxy9.doGet(Unknown Source)
* at com.ibm.team.repository.client.internal.TeamRepository.fetchClientVersionJSONObject(TeamRepository.java:1624)
* at com.ibm.team.repository.client.internal.TeamRepository.access$0(TeamRepository.java:1621)
* at com.ibm.team.repository.client.internal.TeamRepository$5.run(TeamRepository.java:1692)
* at com.ibm.team.repository.client.internal.TeamRepository$5.run(TeamRepository.java:1)
* at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1287)
* at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
* at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1280)
* at com.ibm.team.repository.client.internal.TeamRepository.checkServerVersionMatches(TeamRepository.java:1695)
* at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1471)
* at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:641)
* at com.ibm.team.build.internal.scm.RepositoryManager.login(RepositoryManager.java:275)
* at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:322)
* ... 37 more
* Caused by: java.nio.channels.UnresolvedAddressException
* at sun.nio.ch.Net.checkAddress(Net.java:47)
* at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:528)
* at com.ibm.team.repository.transport.client.InterruptableSocketFactory.doConnect(InterruptableSocketFactory.java:142)
* at com.ibm.team.repository.transport.client.InterruptableSocketFactory.createSocket(InterruptableSocketFactory.java:69)
* at com.ibm.team.repository.transport.client.SecureInterruptableSocketFactory.createSocket(SecureInterruptableSocketFactory.java:300)
* at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
* at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
* at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
* at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
* at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
* at com.ibm.team.repository.transport.client.ClientHttpUtil.executePrimitiveRequest(ClientHttpUtil.java:1275)
* ... 65 more
*
Accepted answer
One other answer
Comments
Thanks for the reply. I did try setting "repositoryAddress" in thebuild engine and set it to that url that I showed you the error on. I also tried using the ip of the reppsitory host instead of the host name and when using the ip address I just get a timeout at the point where the bfagent would be executing the url. Not really sure what to look at next. From a browser we can get to that url - it brings up the logon screen.
fetch:
parsing buildfile jar:file:/usr/lpp/jazz/v4.0.4/buildsystem/buildtoolkit/ant-contrib.jar!/net/sf/antcontrib/antlib.xml with URI = jar:file:/usr/lpp/jazz/v4.0.4/buildsystem/buildtoolkit/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
TMO Timeout after +300 seconds.
RESULT 999
EOR
When you say that you can access the server from a browser, are you connecting from an external machine, or from a browser on the same machine as the server? If you're on the same machine, that may be masking connectivity issues.
An update - I did try again with an IP of the HP server host and that worked but we really need to use the url with the "host name" in it - any ideas why from zOS that isn't resolved? We are a little new to setting up TCP/IP on a zOS host.