Linux agent throws InvocationTargetException at end of build

Hi,

Running TeamCity 2.0, working on getting Linux agent up and running.

All is goodness, except that TC server sez build failed (it didn't), and shows red on build status page. Linux agent logfile shows the following exception. Timestamp coincides with the conclusion of the build. Agent log has pretty much only these stack traces.

Any ideas? Any other info I can provide for troubleshooting?

Thanks!
-chris


ERROR - ecution.process.ProcessHandler -

java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.execution.process.ProcessHandler$5.invoke(ProcessHandler.java:197)
at $Proxy0.onTextAvailable(Unknown Source)
at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:158)
at com.intellij.execution.process.OSProcessHandler$2.textAvailable(OSProcessHandler.java:111)
at com.intellij.execution.process.OSProcessHandler$ReadProcessThread.checkTextAvailable(OSProcessHandler.java:312)
at com.intellij.execution.process.OSProcessHandler$ReadProcessThread.run(OSProcessHandler.java:270)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.charAt(String.java:558)
at jetbrains.buildServer.agent.impl.SimpleRunner.removeNewLine(SimpleRunner.java:69)
at jetbrains.buildServer.agent.impl.SimpleRunner.onTextAvailable(SimpleRunner.java:62)
at jetbrains.buildServer.agent.runner.GenericProgramRunner$2.onTextAvailable(GenericProgramRunner.java:174)

2 comments
Comment actions Permalink

Wrong forum?

On 2007-09-19 22:55:30 +0400, Chris Walquist <no_reply@jetbrains.com> said:

Hi,

Running TeamCity 2.0, working on getting Linux agent up and running.

All is goodness, except that TC server sez build failed (it didn't),
and shows red on build status page. Linux agent logfile shows the
following exception. Timestamp coincides with the conclusion of the
build. Agent log has pretty much only these stack traces.

Any ideas? Any other info I can provide for troubleshooting?

Thanks!
-chris


ERROR - ecution.process.ProcessHandler -

java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.intellij.execution.process.ProcessHandler$5.invoke(ProcessHandler.java:197)
at $Proxy0.onTextAvailable(Unknown Source)
at
com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:158)
at
com.intellij.execution.process.OSProcessHandler$2.textAvailable(OSProcessHandler.java:111)
at
com.intellij.execution.process.OSProcessHandler$ReadProcessThread.checkTextAvailable(OSProcessHandler.java:312)
at
com.intellij.execution.process.OSProcessHandler$ReadProcessThread.run(OSProcessHandler.java:270)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
at java.lang.String.charAt(String.java:558)
at
jetbrains.buildServer.agent.impl.SimpleRunner.removeNewLine(SimpleRunner.java:69)
at
jetbrains.buildServer.agent.impl.SimpleRunner.onTextAvailable(SimpleRunner.java:62)
at
jetbrains.buildServer.agent.runner.GenericProgramRunner$2.onTextAvailable(GenericProgramRunner.java:174)



0
Comment actions Permalink

Dohh....sorry, yes.

0

Please sign in to leave a comment.