File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

App stops logging after 10 minutes

 
James Daniel
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a java application to kick off a build script and capture the build script output. Without fail, the capture stops after exactly 10 minutes. The build script continues on until completion without fail. Why does my app stop logging after 10 minutes?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where does it log to? What does it log? What are you using for logging?

Without telling us more about what you're doing, you're asking for mind-reading.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't tell us more about how you build your capture functionality, it seems difficult to help.
Could it be a buffer getting full ?
 
James Daniel
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I guess that is why I am still a greenhorn. It is a web based application that stores Ant scripts within a MySQL database writes them to Windows based computers then kicks off the Ant build.xml. I use a buffered reader to read the output from the process and do error checking such as CVS tag does not exist, etc. I then write it out to a log. It essentially passes the Ant script output through Java. It works for 10 minutes then stops. The Ant build completes but the Ant output is incomplete.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it's just that you're not flushing the output. Does the log magically become complete if you call flush() on the Writer or OutputStream you're sending it to?
 
James Daniel
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling the flush method worked. The log completes. Thanks so much for the input. I am sure I will have more questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic