I am facing an issue in java.
The sever stop responding to anything, it just hangs, cannot be restarted unless killing java process through task manager. does not respond to hprof, jstacktrace, jvisio, console, anything.
the problem occurs very intermittently, some time it works, some time it doesn't, so, very difficult keep track of this.
when tried to debugging, it seems to be hanging on creating a instance using constructor.newInstance() method.
Especially in sun.rmi.server.Util.createStub() method.
which is trying to create a stub object, it prints (sys.out.println) the loaded stub class and constructor also, but newInstance method hangs and do not print then onwards.
If only it was as simple as making a post in a forum and then sitting back and waiting for answers.
But it is not. It will take plenty of smart people investigating every tiny little corner of the working environment to see where the problem may stem from. It starts by changing your attitude - it is too soon to claim that "java hangs". It might just as well be the OS that is blocking the process for some reason. You seem to have traced this to RMI, which opens network connections. Perhaps that is failing.
Check every log file available in the system, that is all I can say. If you must blame Java, try running with an alternate version (older and newer) to see if that changes anything. Create proof before you make claims.