- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- JNI Option -Xrs Doesn't Seem to Work; Ctrl-C not i...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2005 12:31 PM
тАО06-15-2005 12:31 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2005 07:29 PM
тАО06-15-2005 07:29 PM
SolutionIt may be a feature of the Fast VM, try the classic VM to start with, though I doubt it would make a difference.
Based on what I know of JVM and VMS knowledge:
When Java code is called, it will take control - completely, implying that a condition handler, defined in a higher level, will be ignored.
So the JVM will capture ^C, and follow it's normal path in these cases: Stop after issueing a tracedump (you don't want to see either) and be removed from memory. When JVM was started from the commandline, that behaviour is expected (and preferable). When embedded however, it may be not - since it means the running image is removed, because the JVM-executed code is part of that image.
My guess is that the JVM runs in a separate thread that takes over, so that would be the reason that the condition handler is ignored, and it will stop all threads up to DCL in case of some condition - including ^C.
To prevent this, consider to run the Java code in a subprocess, executing a commandprocedure that will take control until it is finished for whatever reason. Let it return on ^C with an error. Or create a subprocess constantly reading it's input from a mailbox (or socket) and return status information, until requested to stop.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2005 02:36 AM
тАО06-16-2005 02:36 AM
Re: JNI Option -Xrs Doesn't Seem to Work; Ctrl-C not ignored by JVM
$ write sys$output f$message(1620)
I get
$SYSTEM-F-CONTROLC, Operation completed under CTRL/C
In other words, the interrupted JVM made the condition FATAL, which caused my exception handler to fire and quit the application. I think I can intercept this condition and do a SS$_CONTINUE instead of SS$_RESIGNAL, but I'm not sure this is really the best/final solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2005 08:53 AM
тАО06-16-2005 08:53 AM
Re: JNI Option -Xrs Doesn't Seem to Work; Ctrl-C not ignored by JVM
Have you try to add a CTRL/C AST on your terminal. You do this with IO$_SETMODE!IO$M_CTRLCAST. See documentation:
http://h71000.www7.hp.com/doc/732FINAL/aa-pv6sf-tk/00/00/43-con.html#term-enable-ast
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2005 09:32 PM
тАО06-16-2005 09:32 PM
Re: JNI Option -Xrs Doesn't Seem to Work; Ctrl-C not ignored by JVM
Your condition handler can cope with that error code: check this status and allow to continue if "1620" (use the name, not the value). You will need to unwind the stack to resume your normal processing as if the JAVA application finshed without a problem($UNWIND system service)
Willem
OpenVMS Developer & System Manager