recursive call into SystemOutandErrhandler

Team City is running on a Solaris. My ant task, called by Team City, is attempting to start a glassfish domain. The task just hangs for a really long time and then eventually errors out. I can run this ant task from the unix command line with no problems. I only seem to have this problem when the task is called from Team City. It's not 100% consistent but happens more often than not. Has anyone seen this problem or have any ideas on how to fix it?

Here is the exception:

+recursive call into SystemOutandErrhandler
java.lang.RuntimeException: recursivecall
at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:359)
at java.io.PrintStream.write(PrintStream.java:432)
at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.write(SystemOutandErrHandler.java:293)
+
This is my ant task:
+ ]]>+

5 comments

melody wrote:

Team City is running on a Solaris. My ant task, called by Team City, is attempting to start a glassfish domain.
The task just hangs for a really long time and then eventually errors out. I can run this ant task from the unix command line with no problems.
I only seem to have this problem when the task is called from Team City. It's not 100% consistent but happens more often than not.
Has anyone seen this problem or have any ideas on how to fix it?

Here is the exception:

+recursive call into SystemOutandErrhandler
java.lang.RuntimeException: recursivecall
at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:359)
at java.io.PrintStream.write(PrintStream.java:432)
at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.write(SystemOutandErrHandler.java:293)
+
This is my ant task:
+<target name="domain-start" description="Start domain">
<echo message="Using glassfish at ${glassfish.dir}"/>
<setSystemProperty name="com.sun.aas.instanceName" value="server"/>
<sun-appserv-admin asinstalldir="${glassfish.dir}"
explicitcommand="start-domain ${domain.name}" />
</target>+


We have no experience with running Glassfish inside build.
But this error may be related to fact that TeamCity agent intercepts
output and error streams of build process and sending them to server.
We will try to investigate further.

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Thanks for looking into this.

0

Has there been any progress on this issue? I can't run any server tests with team city.

0

Hello,

We've reported the issue to our bug tracker:
http://www.jetbrains.net/jira/browse/TW-3407

You can comment/watch progress there.

I am afraid there is no progress so far, but we will give it one more try.

--
Best regards,

Yegor Yarko
Quality Assurance Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Hi,

I'm afraid, we don't have enough information to fix the problem :(

The only thing I can suggest is to try to make a thread dump when the process hangs.

Please find instructions on how to make it at
http://www.jetbrains.net/confluence/display/TCD3/HowtoDebug+problems , section "Hangs and thread dumps"

And please attach the thread dump to the Jira issue. Please make sure that you make thread dumps of all available java processes on the build agent.

Please also watch corresponding Jira issue to be notified on changes.

With kind regards,
KIR

0

Please sign in to leave a comment.