cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 176056 - unable to cancel a long running wizard...
: unable to cancel a long running wizard...
Status: RESOLVED FIXED
: javaee
EJB
: 6.8
: Macintosh All
: P2 (vote)
: 6.8
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-11-05 16:02 by
Modified: 2009-11-09 08:19 (History)
Issue Type: DEFECT
:


Attachments
a screen shot... i had clicked finish. pressing cancel was not effective (89.54 KB, text/plain)
2009-11-05 16:07, Vince Kraemer
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-11-05 16:02:35
I was working at home, which has a less than stellar internet connectivity.

I had created a maven ejb project.
I had targeted it at a gf v3 build on my local disk.
I went to create a stateless session bean.  I clicked finish and got to this
state...

There is something that is getting downloaded... I do not know what...  The
cancel button is not effective... and I have been looking at this situation for 
about a minute.

In all fairness... When I came back to the IDE from getting coffee and helping
my kids finish getting ready for school (about 10 minutes later) the wizard 
had completed its work.
------- Comment #1 From 2009-11-05 16:07:05 -------
Created an attachment (id=90523) [details]
a screen shot... i had clicked finish. pressing cancel was not effective
------- Comment #2 From 2009-11-09 06:23:48 -------
org.netbeans.modules.j2ee.ejbcore.ejb.wizard.session.SessionEJBWizard seems to
work in AWT thread. I've had just a short blink of unresponsiveness, but here
is my explanation why it could happen to you, for a more indepth anaylysis we
would need a tread dump or a profiler snapshot.

1. you've created a new maven project.
2. that triggered a anynchronous binary dependency download (aftewards followed
by yet more asynchronous source/javadoc downloads as seen on your screenshot)
3. when binary download finishes, the java classpath gets notified and scans
the sources.
4. As far as I could tell, the wizard will eventually kick into the java
instracture for some data, possibly hanging until scanning finishes?

reassigning to ejb devs to confirm my theory mentioned in 4.
------- Comment #3 From 2009-11-09 06:49:47 -------
Milos, you are right, while creating session bean we are waiting when scan
finished to get bean and it's local/remote interfaces elements resolved by java
model to add 'implements' clause to the bean.
------- Comment #4 From 2009-11-09 08:06:02 -------
Since there is no way to get elements resolved for a few classes while scanning
in progress I am going to add implements clause and @LocalBean annotation by
adding corresponding template parameters to avoid waiting for java model
finished scanning.
------- Comment #5 From 2009-11-09 08:19:58 -------
Fixed in the web-main.