Is jsvc supposed to restart a program which stops because of an uncaught exception - jsvc

I am using commons-daemon-1.0.15 and Ubuntu 14.04.
I followed the tutorial here: http://www.neilson.co.za/creating-a-java-daemon-system-service-for-debian-using-apache-commons-jsvc/
In my program I generate a runtime-exception which is caught by the catch-all handler. This handler exits the program with code code 1.
However, jsvc does not restart the program.
Is jsvc supposed to restart a program which exits with a non-zero code.
Thanks!

I found the solution,
My catch-all handler should exit with code 123. That causes jsvc to restart the jvm

Related

IAR: Debugger Exits After Interrupt

When I attempt to use breakpoints, rather than stopping at the breakpoint and allowing me to step through my program, IAR will exit to the default interrupt handler file for my STM chip. More specifically, it will stop and goes to the reset handler located in my startup file for IAR debugging.
I'm using an I-Jet which is their recommended debugging tool and this hasn't happened to me before on the same project. Is this a setting I overlooked or is this buggy behavior someone else has found as well? Usually when I hit pause or put in a breakpoint it stops at that point in the file so I can watch my variables as I run through the program. IAR 8.40.2 if that helps.
#pmacfarlane was correct. I had enabled a watchdog that would prompt IAR to go to the system reset file rather than pausing on a breakpoint. Code is actually set as optimized but that has not seemed to affect these symptoms.

Electron threw a compile error and Windows command prompt goes non writable

So my code had an invalid syntax, which I was trying out to see if it works and while compiling I got App threw an error during load.
Now in the command-prompt the error is listed in detail with the cursor still blinking but NOT WRITABLE. Closing, re-opening, re-navigating and restarting with electron . only seems to work.
Can't do the same for many errors I might face. So, is there a way to not let that happen? How are you guys dealing with it? Is it in anyway connected to stopping the npm server? If it helps, I'm using a Win 7 64bit OS.
Found a way, which is to terminate the batch job by hitting CTRL + C, which asks Terminate batch job (Y/N)? where choosing Y terminates and makes the command prompt writable.
I was searching for methods to terminate without confirmation and learnt it cannot be terminated without confirmation.

Keep getting : Debug error BC31019 : Unable to write to output file 'path/form.exe System Error &H80070005& VB.NET

I'm using Visual Studio Professional 2013 and I'm doing some very basic windows forms application.
A month ago, I could do everything I wanted without any problem. But I started some new projects today and for absolutely no reasons, I keep getting this error message when I come to debug or compile:
Debug error BC31019 : Unable to write to output file 'path/form.exe System Error &H80070005&
It can happen simply by changing the size of a textbox or modifying the text content in a label... It's very random... And I can even do an undo (ctrl+z) and then I can debug again, but if I try again to do the thing I did that brought the error message, the same message pops again as I try to run.
After reading a little about the subject, I realized that it was because the .exe file became in read-only mode and when I try to remove it, windows wont let me.
The only thing I can do if I really want to continue, is to restart my computer every times it happens. Then I can continue just like normal as my .exe file is no longer in read-only...
I tried tor run a sfc/scannow in my command prompt to see if i had any problems with my frameworks but everything was fine.
Since, it is when i restart my pc that the bug disapears, isn't anything i can do or run somewhere to do the same thing. I need to find why the exe file goes to read-only for nothing and how to get it back to normal without having to restart my pc every time...
Please help me!
thank you
I came across the same issue and it was related to having a command line argument that VS could not find, then when i clicked stop debugging I ended up in this situation as it seemed VS kept a process running.
I could see this process in task manager but could not end it (it started with the same name as my app)
I found closing VS would release this process.
Restarting VS it would then work ok again.
there may be other ways to reproduce the issue but restarting VS seems to release the file and allow you to continue.
I set the exe properties to Read/write. No effect, but when I set app properties/settings to "Always on top" = False the issue went away and is still away.

jython script doesnt start when run in background

I have a Jython script that is meant to run as a daemon in background, but somehow it doesn't start at all when I'm trying to run it in background.
So I've tried to do a most basic "hello world" script, it works fine if I execute it in console like
./mysqript.py
But same script executed like
./mysqript.py &
fails. It doesn't output error messages, it doesn't throw exceptions, it's actually not even quitting silently. It's just hanging forever in the process list as a zombie process doing nothing.
Why is that and how can I make it work?
PS: Environment is Jython2.7 beta.

QueryInterface for interface VBA._Collection failed

We are randomly seeing this error during long executions of our system. The error is caught by our alarm system, and we successfully retry, and continue running the system. The only hits we found on Google seem to mention corrupt installations. We do not think this is the case here, since our systems are running, get the error, and can continue running.
Register the .dll file again from a command window by using the below command:
regsvr32 C:\WINDOWS\system32\msvbvm60.dll