I have a rather strange error somehow related to cron, i guess.
Application runs no problem when just manually typing command line to run, or use nohup and ' & ' to run in background. However if i put it in cron to schedule it to run. The error message said:
An unexpected error has been detected by HotSpot Virtual Machine
SIGSEGV (0xb) at pc=0xfeaa5084, pid=4519, tid=1
Java VM: Java HotSpot(TM) Server VM (1.5.0_06-erdist-20060404 mixed mode)
The system is
SunOS 5.10 Generic January 2005
We use IBM WebSphere Java VM
There's a log file that has a lot of info. It indicates before the crash at libjvm.so, libocijdbc10.so is called. It seems native code is called.
I tried test program that does not have jdbc code and it works fine from cron. So seem something to do with that oracle oci native code.
But why only happens from cron?
Is it true if the app run from cron will have different user ID? What user ID cron itself has?
I had the exact same problem. I still haven't figured out what caused it, but I switched over from using OCI to the thin client and that seems to be working. I'm not happy about having to switch, but it's better than having the jvm crash. :)