This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237383 - Error when Profile web application
Summary: Error when Profile web application
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 7.4
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-20 19:10 UTC by Valery-Sh
Modified: 2014-01-10 15:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valery-Sh 2013-10-20 19:10:49 UTC
Suppose we have a web application named WebApp01. Select it in the Project Explore and execute the Profile menu item. After the application start successfully  job. select WebApp01 and again execute Profile. We'l get a dialog "Profiling  session is currently in progress ... ". Click "Yes" button and quickly click Run button on the next dialog window. As a rule we'l get an "exceptionjava.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask ...".

The same way the Glassfish behaves. The only workaround is to wait a little after "Yes" answer on the confirmation dialog and before the Run button click (usually we must wait until "Finished building WebApp01 (profile)" message in the status bar of the main window disappears.

I've changed the Tomcatmanager.isRunning method to return true when the current mode is PROFILE and exitValue of the process doesn't throw an exception. This forces NetBeans to call StartServer.stopDeploymentManager. Works nice. The same is true for Nb Google AppEngine  plugin.
Comment 1 Petr Hejl 2014-01-10 15:01:59 UTC
I can't reproduce the problem. Can you share the stacktrace so we can evaluate it?