java.lang.IllegalThreadStateException

Bug #252909 reported by Charles Goodwin
2
Affects Status Importance Assigned to Milestone
Vexi
Fix Released
Low
Charles Goodwin

Bug Description

When exiting a Vexi app created by a launcher, often this occurs:
java.lang.IllegalThreadStateException: process hasn't exited
 at java.lang.UNIXProcess.exitValue(UNIXProcess.java:172)
 at org.vexi.launcher.Launcher.spawn(Unknown Source)
 at org.vexi.launcher.Launcher.go(Unknown Source)
 at org.vexi.launcher.Launcher.access$100(Unknown Source)
 at org.vexi.launcher.Launcher$1$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.vexi.launcher.Launcher$1.run(Unknown Source)

Caused by the repeatable widget still running a background thread.

Changed in vexi:
assignee: nobody → mike-goodwin
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Charles Goodwin (charlesgoodwin) wrote :

The fix seemed to be a missing 'p.waitFor();' which has now been added although not tested.

Further explanation of waitFor() here:
http://www.java2s.com/Code/JavaAPI/java.lang/ProcesswaitFor.htm

Changed in vexi:
assignee: mike-goodwin → charlesgoodwin
status: Confirmed → Fix Committed
Changed in vexi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.