Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 376654

Summary: RejectedExecutionException is thrown if Finish is clicked and then trying to edit the host name field
Product: [WebTools] WTP ServerTools Reporter: Elson Yuen <eyuen7>
Component: wst.serverAssignee: Elson Yuen <eyuen7>
Status: RESOLVED FIXED QA Contact: Elson Yuen <eyuen7>
Severity: normal    
Priority: P3 CC: alexander.silgidjian, vladimir.pavlov
Version: 3.2   
Target Milestone: 3.2.5 P   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 371600    
Bug Blocks:    
Attachments:
Description Flags
v1.0 none

Description Elson Yuen CLA 2012-04-12 15:16:38 EDT
+++ This bug was initially created as a clone of Bug #371600 +++

Build Identifier: Version: 3.3.1.v201107072200 Build id: 20100921193530

We are developing a custom Server Adapter that performs custom validation when the New Server wizard is finished.
If the validation fails, CoreException is thrown and the user is supposed to correct the problem. 
However if the Server host name field is the one to be edited, an exception is thrown:

!ENTRY org.eclipse.ui 4 0 2012-02-15 11:45:16.314
!MESSAGE Unhandled event loop exception
!STACK 0
java.util.concurrent.RejectedExecutionException
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
	at java.util.concurrent.Executors$DelegatedExecutorService.execute(Unknown Source)
	at org.eclipse.wst.server.ui.internal.Timer.runTimer(Timer.java:46)
	at org.eclipse.wst.server.ui.internal.wizard.page.NewManualServerComposite.setHostnameChangeTimer(NewManualServerComposite.java:835)



The problem seems to be that in NewManualServerComposite#dispose the timer is not set to null and it is reused by setHostnameChangeTimer method

Reproducible: Always

Steps to Reproduce:
1. Make sure that New Server wizard will fail on Finish
2. Go back and try to edit Server host name: field
Comment 1 Elson Yuen CLA 2012-04-12 15:19:28 EDT
Created attachment 213931 [details]
v1.0
Comment 2 Elson Yuen CLA 2012-04-12 15:20:14 EDT
This bug is for porting fix for bug 371600 to the 325P code stream.
Comment 3 Elson Yuen CLA 2012-04-16 15:20:16 EDT
Code released to 325P