logPublisher throws exceptions
Hi
I am working on a headless build in RTC using Ant.
I am using logPublisher to add a log file to my buildResult:
<logPublisher repositoryAddress="${env.repositoryAddress}"
userId="${env.builduser}"
passwordfile="${env.buildpasswordfile}"
buildResultUUID="${env.buildResultUUID}"
filePath="${genDirectory}\IUXCA_cbl_Results.xml"
label="IUXCA Cobol Build Results"
verbose="true"/>
The log file is succesfully added to buildResult, but logPublisher throws dozens of exception (caused by 'long running operations prohibited' - see below).
How can I prevent this.
[logPublisher] Not using a proxy to reach http://test-teamconcert.danskenet.net/jazz/
[logPublisher] feb 27, 2014 11:56:59 AM com.ibm.team.repository.client.util.ThreadCheck checkLongOpsAllowed
[logPublisher] SEVERE: Long-running operations prohibited on this thread
[logPublisher] java.lang.IllegalStateException: Long-running operations prohibited on this thread
[logPublisher] at com.ibm.team.repository.client.util.ThreadCheck.checkLongOpsAllowed(ThreadCheck.java:118)
[logPublisher] at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:85)
[logPublisher] at com.ibm.team.repository.client.internal.RawRestServiceClientProxy$RestClientConnectionProxy.invoke(RawRestServiceClientProxy.java:121)
[logPublisher] at com.sun.proxy.$Proxy9.doGet(Unknown Source)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository.fetchClientVersionJSONObject(TeamRepository.java:1624)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository.access$0(TeamRepository.java:1621)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository$5.run(TeamRepository.java:1692)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository$5.run(TeamRepository.java:1)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1287)
[logPublisher] at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1280)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository.checkServerVersionMatches(TeamRepository.java:1695)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1471)
[logPublisher] at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:641)
[logPublisher] at com.ibm.team.build.internal.scm.RepositoryManager.login(RepositoryManager.java:275)
[logPublisher] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:322)
[logPublisher] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:270)
[logPublisher] at com.ibm.team.build.internal.ant.AbstractContentPublisherTask.updateBuildResult(AbstractContentPublisherTask.java:175)
[logPublisher] at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105)
[logPublisher] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:661)
[logPublisher] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[logPublisher] at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
[logPublisher] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[logPublisher] at java.lang.reflect.Method.invoke(Method.java:607)
[logPublisher] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[logPublisher] at org.apache.tools.ant.Task.perform(Task.java:348)
[logPublisher] at org.apache.tools.ant.Target.execute(Target.java:392)
[logPublisher] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[logPublisher] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[logPublisher] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[logPublisher] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[logPublisher] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[logPublisher] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[logPublisher] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
[logPublisher] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537)
[logPublisher] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[logPublisher] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
[logPublisher] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[logPublisher] at java.lang.reflect.Method.invoke(Method.java:607)
[logPublisher] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
[logPublisher] at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
[logPublisher] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
[logPublisher] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[logPublisher] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[logPublisher] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
[logPublisher] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
[logPublisher] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[logPublisher] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
[logPublisher] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[logPublisher] at java.lang.reflect.Method.invoke(Method.java:607)
[logPublisher] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
[logPublisher] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
[logPublisher] at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
[logPublisher] at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
[logPublisher]
[logPublisher] feb 27, 2014 11:57:00 AM com.ibm.team.repository.client.util.ThreadCheck checkLongOpsAllowed
/Steen Larsen
|
One answer
There were a number of issues like that, but I was not able to find an exact match.
I recommend that you open a defect on jazz.net: https://jazz.net/jazz/web/projects/Rational Team Concert#action=com.ibm.team.workitem.newWorkItem&type=defect |
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.