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

Summary: Hang of IDE in ejb CMP entity wizard when connecting to DB
Product: db Reporter: _ pcw <pcw>
Component: DB schemaAssignee: Andrei Badea <abadea>
Status: RESOLVED FIXED    
Severity: blocker CC: issues, pjiricka
Priority: P2 Keywords: PERFORMANCE
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

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