|
From: <ama...@ge...> - 2007-11-26 14:34:57
|
Many thanks Gabriel for your response. It was precisely this. I am still looking into it since I don't quite understand why the second app didn't freeze when the first was not run as a service. Also, when the exec argument is "cmd /c start startup.bat > null" everything works fine now, but using for instance "cmd /c startup.bat > null" has exactly the same problem as before. I'm checking out why, frankly I'm not familiar with windows commands. Thanks again for your prompt reply. Regards. Adrián. Gabriel Jurado escribió: > Hello Adrian, > I had a similar problem, make sure that you are reading or at least discarding the output of your > "executed" application, like the standard output and the error output of the process. > > Regards, > > G.J. > > --- Adrian Marques <ama...@ge...> escribió: > > >> Hello everyone, >> >> I have a Java application that uses Runtime.exec() to start another .NET >> app. This works just fine when running my program 'standalone'. >> The problem arises when I use the wrapper to install my Java app as a >> service: Runtime.exec() executes ok, the .NET app is launched and it >> seems to work without issues up to about one and a half / two minutes >> into execution, where it freezes and is seen as 'not responding' by windows. >> >> I have browsed through the mailing lists archives and seen some problems >> with exec() related to the access to network drives or error dialog >> messages that are not displayed on screen, but I don't think any of this >> applies to me. Of course I considered that the problem may be caused by >> the .NET app running as SYSTEM, but (and I find this quite puzzling) >> after the freeze if I stop the java service or just plain kill the java >> process the .NET app resumes normal execution as if nothing had happened >> and has no more problems. >> >> A couple more details: >> >> - My java app has no GUI; the .NET one does. >> - The java service seems to keep running in normal fashion after the >> .NET app hangs. >> - (Don't know if this is relevant) The .NET app acts as client to some >> web services. It invokes them some times without any apparent issues >> before hanging. >> >> If anyone could point me in the right direction where to look regarding >> this it would be greatly appreciated (I'm quite lost here). >> >> Many thanks. >> >> Adrián. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > > > Los referentes más importantes en compra/ venta de autos se juntaron: > Demotores y Yahoo! > Ahora comprar o vender tu auto es más fácil. Vistá ar.autos.yahoo.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |