I need to stop the process by calling a specific method on an instance of this class. The process works all day, and if I close it tightly, I will lose a lot of work. Due to an error in the API, the graphical interface is not connected correctly and does not call the correct stop function. I have an interactive Java interpreter (Scala), so if I could get an instance of the process, I could easily call the correct method.
I am not participating in a debugging session, no com.sun.jdi. I can see the instance in the stack trace dump, but the StackTraceElement does not contain actual instances, just classes and line numbers.
Is there any way in the current session without special tools to get this instance - through its class through a stream dump?
source share