It's all about the answers!

Ask a question

How do I avoid a Socket Exception in teamLastModified task?


Paul Brightly (111) | asked Oct 19 '12, 5:38 p.m.
My team is experiencing a socket timeout exception in the same ANT task (teamLastModified), in every RTC build:
[teamLastModified] Calculating last modified times for "/opt/IBM/buildsystem/buildengine/eclipse/build/publish".
[teamLastModified] com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I When accessing the URL "https://jazzserver.mydomain.com:8043/jazz/service/com.ibm.team.scm.common.IScmService" the following HTTP error occurred: "java.net.SocketTimeoutException"
	
(Note: Full exception text is at the end of this post.  The host & version names have been obfuscated.)
The ant target with the task is:
<target name="-get.versions">
    <teamLastModified repositoryAddress="${repositoryAddress}"
                      userId="${userId}"
                      passwordFile="${passwordFile}"
                      workspaceUUID="${team.scm.workspaceUUID}"
                      outputPropertiesFile="${workspace.dir}/pluginVersions.properties"
                      rawOutputPropertiesFile="${workspace.dir}/rawPluginVersions.properties"
                      sourceDirectory="${workspace.dir}" verbose="true" />
</target>
	
From other forum suggestions, I tried adding "-Dcom.ibm.team.repository.common.transport.TeamServerConfiguration.socketTimeout=1800000"
to the "-vmargs" section of "/opt/IBM/buildsystem/buildengine/eclipse/jbe.ini" on all active build engines.  I had one build go through, but none since.

I also tried adding that parameter to the end of the jbe invocation in jbectrl (same directory) with out any luck.  Also...I'm worried about the syntax and whether the parameters are getting eaten by the shell or if I need quotes somewhere.

I'm frustrated with the lack of documentation on jbe.ini and these extra parameters.  What else is available under -vmargs or as a direct parm?

One of our admins suggested another argument in jbe.ini, which didn't work either.  Our full jbe.ini now looks like this:
--launcher.suppressErrors
-vm /opt/IBM/java/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dfile.encoding=UTF-8
-Dcom.ibm.team.repository.common.transport.TeamServerConfiguration.socketTimeout=1800000
-Drepository.timeout=2400
	
We're stuck.  Any help or suggestions would be greatly appreciated.

Full exception text:
-get.versions:
[teamLastModified] Not using a proxy to reach https://jazzserver.mydomain.com:8043/jazz/
[teamLastModified] Calculating last modified times for "/opt/IBM/buildsystem/buildengine/eclipse/build/publish".
[teamLastModified] com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099I When accessing the URL "https://jazzserver.mydomain.com:8043/jazz/service/com.ibm.team.scm.common.IScmService" the following HTTP error occurred: "java.net.SocketTimeoutException"
[teamLastModified]  at com.ibm.team.repository.transport.client.ClientHttpUtil.executePrimitiveRequest(ClientHttpUtil.java:1103)
[teamLastModified]  at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:307)
[teamLastModified]  at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:269)
[teamLastModified]  at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:183)
[teamLastModified]  at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:566)
[teamLastModified]  at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:545)
[teamLastModified]  at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:485)
[teamLastModified]  at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:202)
[teamLastModified]  at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
[teamLastModified]  at $Proxy20.getMostRecentBaselinesAffecting(Unknown Source)
[teamLastModified]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[teamLastModified]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified]  at java.lang.reflect.Method.invoke(Method.java:600)
[teamLastModified]  at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164)
[teamLastModified]  at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88)
[teamLastModified]  at $Proxy20.getMostRecentBaselinesAffecting(Unknown Source)
[teamLastModified]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[teamLastModified]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[teamLastModified]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified]  at java.lang.reflect.Method.invoke(Method.java:600)
[teamLastModified]  at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy$2.run(ScmServiceInterfaceProxy.java:168)
[teamLastModified]  at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1260)
[teamLastModified]  at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
[teamLastModified]  at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1253)
[teamLastModified]  at com.ibm.team.scm.client.internal.ScmClientLibraryContext.callCancelableService(ScmClientLibraryContext.java:70)
[teamLastModified]  at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invokeCancelableService(ScmServiceInterfaceProxy.java:164)
[teamLastModified]  at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invoke(ScmServiceInterfaceProxy.java:92)
[teamLastModified]  at $Proxy20.getMostRecentBaselinesAffecting(Unknown Source)
[teamLastModified]  at com.ibm.team.scm.client.internal.WorkspaceConnection.getMostRecentBaselinesAffecting(WorkspaceConnection.java:904)
[teamLastModified]  at com.ibm.team.build.internal.scm.SourceControlUtility.fetchLastModified(SourceControlUtility.java:549)
[teamLastModified]  at com.ibm.team.build.internal.scm.SourceControlUtility.getLastModifiedTimes(SourceControlUtility.java:450)
[teamLastModified]  at com.ibm.team.build.ant.task.TeamLastModifiedTask.doExecute(TeamLastModifiedTask.java:158)
[teamLastModified]  at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:653)
[teamLastModified]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[teamLastModified]  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[teamLastModified]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[teamLastModified]  at java.lang.reflect.Method.invoke(Method.java:600)
[teamLastModified]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[teamLastModified]  at org.apache.tools.ant.Task.perform(Task.java:348)
[teamLastModified]  at org.apache.tools.ant.Target.execute(Target.java:357)
[teamLastModified]  at org.apache.tools.ant.Target.performTasks(Target.java:385)
[teamLastModified]  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[teamLastModified]  at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[teamLastModified]  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[teamLastModified]  at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[teamLastModified]  at org.apache.tools.ant.Main.runBuild(Main.java:758)
[teamLastModified]  at org.apache.tools.ant.Main.startAnt(Main.java:217)
[teamLastModified]  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[teamLastModified]  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[teamLastModified] Caused by: java.net.SocketTimeoutException
[teamLastModified]  at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:204)
[teamLastModified]  at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:86)
[teamLastModified]  at com.ibm.team.repository.transport.client.InterruptableSocket$InterruptableSocketInputStream.read(InterruptableSocket.java:583)
[teamLastModified]  at com.ibm.jsse2.b.a(b.java:95)
[teamLastModified]  at com.ibm.jsse2.b.a(b.java:65)
[teamLastModified]  at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:242)
[teamLastModified]  at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:773)
[teamLastModified]  at com.ibm.jsse2.f.read(f.java:26)
[teamLastModified]  at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
[teamLastModified]  at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
[teamLastModified]  at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
[teamLastModified]  at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
[teamLastModified]  at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
[teamLastModified]  at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
[teamLastModified]  at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
[teamLastModified]  at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
[teamLastModified]  at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
[teamLastModified]  at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
[teamLastModified]  at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
[teamLastModified]  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
[teamLastModified]  at com.ibm.team.repository.transport.client.ClientHttpUtil.executePrimitiveRequest(ClientHttpUtil.java:1052)
[teamLastModified]  ... 49 more
	


One answer



permanent link
Ralph Schoon (59.4k23642) | answered Oct 22 '12, 4:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

not sure what is going on. I would consider to open a defect or a PMR.

Your answer


Register or to post your answer.