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 97993 - IllegalStateException after db table drop
Summary: IllegalStateException after db table drop
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-15 15:47 UTC by Jiri Vagner
Modified: 2007-04-24 11:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception.txt (1.60 KB, text/plain)
2007-03-15 15:48 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-03-15 15:47:59 UTC
Dropping db table on JTable in JFrame throws IllegalState exception.

Steps to reproduce:
Create Java Project
Add JFrame into existing app.namespace
Add JTable into JFrame
Drag and drop table from Database Runtime window into JTable

java.lang.IllegalStateException: Assertion failed. WindowsAPI is required to be
called from AWT thread only, see http://core.netbeans.org/proposals/threading/
	at
org.netbeans.core.windows.WindowManagerImpl.assertEventDispatchThreadWeak(WindowManagerImpl.java:1244)
	at
org.netbeans.core.windows.WindowManagerImpl.topComponentActivatedNodesChanged(WindowManagerImpl.java:1099)
	at org.openide.windows.TopComponent.setActivatedNodes(TopComponent.java:283)
	at
org.netbeans.modules.form.FormDesigner.updateComponentInspector(FormDesigner.java:1317)
Comment 1 Jiri Vagner 2007-03-15 15:48:39 UTC
Created attachment 39533 [details]
exception.txt
Comment 2 Jiri Vagner 2007-03-15 15:49:30 UTC
NetBeans IDE Dev (Build 070314)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b04
Linux version 2.6.17-10-386 running on i386
Comment 3 Jiri Vagner 2007-03-15 15:57:45 UTC
Entity manager, list and query were added into Other Components, JTable contains
colums according db table columns, but clean and build of project generates ...

Compiling 3 source files to
/home/jirka/NetBeansProjects/JavaApplication49/build/classes
/home/jirka/NetBeansProjects/JavaApplication49/src/javaapplication49/NewJFrame.java:42:
<nulltype> cannot be dereferenced
        null.addBinding(binding);
Comment 4 Jan Stola 2007-03-23 16:06:35 UTC
I wasn't able to reproduce it, but the reporter is still able to reproduce it. 
It seems to be some race condition. Let's see whether the issue will survive 
switch to trunk. If so, we will have to fix it ;-).
Comment 5 Jan Stola 2007-04-24 11:45:58 UTC
I was able to reproduce this issue some time ago. It should be hopefully fixed 
by now.
Comment 6 Jiri Vagner 2007-04-24 11:58:49 UTC
Verified

NetBeans IDE Dev (Build 20070424-0751)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.17-10-386 running on i386