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 69063 - Hang of IDE in ejb CMP entity wizard when connecting to DB
Summary: Hang of IDE in ejb CMP entity wizard when connecting to DB
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-11-21 18:21 UTC by _ pcw
Modified: 2005-12-07 20:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (14.73 KB, text/plain)
2005-11-21 18:23 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2005-11-21 18:21:46 UTC
I was attempting to create some CMP Entity beans (against AS 8.1, Pointbase, if
that matters) and the wizard hung or deadlocked or something when connecting to
the DB.  The connection code is executed in the AWT thread (bad!) so the whole
IDE is dead now.

Thread dump attached.
Comment 1 _ pcw 2005-11-21 18:23:31 UTC
Created attachment 27112 [details]
thread dump
Comment 2 Andrei Badea 2005-12-01 14:51:20 UTC
It's not a deadlock by definition. There is a JDBC call in the AWT thread which
makes it wait for input from a network socket. 

Should not make JDBC calls in the AWT thread.
Comment 3 Andrei Badea 2005-12-07 20:50:31 UTC
Fixed. The JDBC calls are now made in a request processor and a progress dialog
is displayed.

RCS file:
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/Bundle.properties,v
done
Checking in
db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/Bundle.properties;
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/Bundle.properties,v
 <--  Bundle.properties
initial revision: 1.1
done
Checking in
db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/DBSchemaTablesPanel.form;
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/DBSchemaTablesPanel.form,v
 <--  DBSchemaTablesPanel.form
new revision: 1.2; previous revision: 1.1
done
Checking in
db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/DBSchemaTablesPanel.java;
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/DBSchemaTablesPanel.java,v
 <--  DBSchemaTablesPanel.java
new revision: 1.5; previous revision: 1.4
done
RCS file:
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/ProgressPanel.form,v
done
Checking in
db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/ProgressPanel.form;
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/ProgressPanel.form,v
 <--  ProgressPanel.form
initial revision: 1.1
done
RCS file:
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/ProgressPanel.java,v
done
Checking in
db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/ProgressPanel.java;
/cvs/db/model/src/org/netbeans/modules/dbschema/jdbcimpl/wizard/ProgressPanel.java,v
 <--  ProgressPanel.java
initial revision: 1.1
done
Checking in
j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/cmp/MultipleEntitySetupPanel.java;
/cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/cmp/MultipleEntitySetupPanel.java,v
 <--  MultipleEntitySetupPanel.java
new revision: 1.7; previous revision: 1.6
done