Although the JFileChooser code runs fine (over and over) as a regular Java application, when I put that code into a REST service, it only runs once. That is, the dialog only comes up the first time I hit the URL.
The URL code in the service itself is this:
Which instantiates this class:
Called, like this:
The first time I start the service, I see the JFileChooser dialog and it returns the file selected.
Second and subsequent tries to invoke the same URL, I get a FileChooser[,0,0,0x0,invalid] error in the debugger.
Any ideas what's going on?
Trying to just add a simple file picker to a web service that's called by a third-party application.
posted 3 years ago
It appears from my research after the posting above that JFileChooser will hang due to bugs under different circumstances. In the case above, it would only run once then hang.