Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Illegal state exception from TAU makefile widget

The problem is the widget has already been processed once before setConfiguration is called so it needs to be reinitialized with the configuration present in order to properly populate the widget. Ideally the configuration could be set before the initial call but I didn't see a way to reach it until the update model is doing its thing. Probably the thing to do is skip the early initialization and wait for the update model to run the job at all.
=Wyatt


On Fri, Aug 23, 2013 at 7:06 AM, Christopher Navarro <cmnavarr@xxxxxxxxxxxx> wrote:
Hi Wyatt,

I noticed in the ptp_7_0 branch you added a setConfiguration method to the TauMakefile widget where it calls job.setUser and job.schedule; however, I'm seeing an illegal state exception thrown when both the constructor and the new setConfiguration method try to schedule the same job without checking if the job is already running (that exception then breaks the UI for me where further selections are not recognized). Was there a use case where the job wasn't getting scheduled for you?

To recreate this, I created a profile configuration with trestles as my connection, switch to the performance tab and with breakpoints set, I hit both the constructors job.schedule and the setConfiguration methods job.schedule. I was wondering if you see the same behavior? The solution might be just to get rid of the job schedule in the constructor since the combo's update model should always pass in a configuration or just call job.getState() and check if the job is already schedule.

Chris
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top