I'm dealing with a frustrating issue on an airgapped RHEL 6 server after conducting a power-loss test. When the power is cut, about 70% of the time, the system recovers just fine. However, in about 30% of cases, the Java GUI fails to open even though the process appears to be running (I can see it with `ps -ef`). Restarting the machine or killing the process doesn't resolve the problem; the only fix I've found is to re-image the system. I've tried a bunch of troubleshooting steps, including messing with X11 display settings, clearing cache, and manipulating the Java environment. Upgrading the OS isn't an option for me right now. I'm starting to think there might be some corrupted state or a hidden lock causing the issue. I'd appreciate any insights on what might be preventing the Java window from showing, especially within RHEL 6's older setup. Thanks in advance! PS: This problem affects all users, not just the one who was running the application during the power loss.
4 Answers
Have you tried enabling detailed logging for the JRE? Changing the `.level` to `FINEST` might provide some insights, especially if your application uses AWT or Swing. If it’s based on SWT, you might require different settings.
Is any part of your GUI loading, like Gnome or the desktop manager? It’s worth checking the runlevel and ensuring everything's set correctly. Also, are there any GPUs in play? They might be causing rendering issues.
Just a heads-up, the problem affects all users on the system, not just the one who had the app open during the power cut.
This is an intriguing situation! What does your full application stack look like? If you’re running a database backend, check for clock skew issues. If it’s a VM, ensure it's properly syncing time. Sometimes that can lead to issues like this, especially if the app depends on database timestamps. Also, is there an SSL certificate involved that communicates with another system?
Have you checked `dmesg` for any errors during startup? That command can often reveal what's going wrong behind the scenes.

Yeah, Gnome seems to be running fine. It’s only our Java GUI that’s not working. I’ve even tried reinstalling the software and replacing the JRE, JDK, and JVM, but no luck. I’m not too familiar with how openjdk works with the OS graphically—should I be checking other areas too?