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 104468 - More db columns as primary key
Summary: More db columns as primary key
Status: RESOLVED DUPLICATE of bug 105084
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 05:09 UTC by rice80
Modified: 2007-05-30 13:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
primarykeytesttable.sql (554 bytes, application/octet-stream)
2007-05-28 10:03 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rice80 2007-05-22 05:09:38 UTC
there is a bug while trying to develop a java desktop application with a MySQL 
database using the Connector.jar driver 
http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-
5.0.6.zip/from/pick

the documentation can be found here: 
http://dev.mysql.com/doc/refman/5.0/en/connector-j.html

org.netbeans.modules.form.PersistenceException: Missing attributes of 
component element
	at org.netbeans.modules.form.GandalfPersistenceManager.restoreComponent
(GandalfPersistenceManager.java:572)
	at org.netbeans.modules.form.GandalfPersistenceManager.loadComponent
(GandalfPersistenceManager.java:843)
	at org.netbeans.modules.form.GandalfPersistenceManager.restoreComponent
(GandalfPersistenceManager.java:709)
	at org.netbeans.modules.form.GandalfPersistenceManager.loadComponent
(GandalfPersistenceManager.java:843)
	at org.netbeans.modules.form.GandalfPersistenceManager.loadForm
(GandalfPersistenceManager.java:436)
	at org.netbeans.modules.form.GandalfPersistenceManager.loadForm
(GandalfPersistenceManager.java:232)
	at org.netbeans.modules.form.FormEditor$2.run(FormEditor.java:251)
	at org.netbeans.modules.form.FormLAF$1.run(FormLAF.java:183)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1201)
	at org.openide.util.Mutex.readAccess(Mutex.java:262)
	at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel
(FormLAF.java:168)
	at org.netbeans.modules.form.FormEditor.loadFormData
(FormEditor.java:249)
	at org.netbeans.modules.form.FormEditor.loadFormDesigner
(FormEditor.java:172)
	at org.netbeans.modules.form.FormDesigner.componentShowing
(FormDesigner.java:1710)
	at org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing
(MultiViewPeer.java:176)
	at 
org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentShowing
(MultiViewCloneableTopComponent.java:112)
	at org.openide.windows.WindowManager.componentShowing
(WindowManager.java:320)
	at org.netbeans.core.windows.WindowManagerImpl.componentShowing
(WindowManagerImpl.java:1004)
	at org.netbeans.core.windows.view.DefaultView.changeGUI
(DefaultView.java:137)
	at org.netbeans.core.windows.ViewRequestor.dispatchRequest
(ViewRequestor.java:247)
	at org.netbeans.core.windows.ViewRequestor.processRequest
(ViewRequestor.java:223)
	at org.netbeans.core.windows.ViewRequestor.postRequest
(ViewRequestor.java:161)
	at org.netbeans.core.windows.ViewRequestor.scheduleRequest
(ViewRequestor.java:101)
	at org.netbeans.core.windows.Central.activateModeTopComponent
(Central.java:1612)
	at 
org.netbeans.core.windows.WindowManagerImpl.topComponentRequestActive
(WindowManagerImpl.java:1109)
	at org.openide.windows.TopComponent.requestActive
(TopComponent.java:680)
	at org.netbeans.modules.form.FormEditorSupport.openFormEditor
(FormEditorSupport.java:164)
	at org.netbeans.modules.form.FormDataNode$1.actionPerformed
(FormDataNode.java:59)
	at org.netbeans.modules.project.ui.ProjectUtilities$3.run
(ProjectUtilities.java:253)
	at org.openide.util.Mutex.doEvent(Mutex.java:1181)
	at org.openide.util.Mutex.writeAccess(Mutex.java:376)
	at 
org.netbeans.modules.project.ui.ProjectUtilities.openAndSelectNewObject
(ProjectUtilities.java:245)
[catch] at org.netbeans.modules.project.ui.actions.NewProject$2.run
(NewProject.java:189)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
==>
Comment 1 Jana Maleckova 2007-05-22 09:50:39 UTC
I used your described driver to connect mysql db. No exception occurred and Java
Desktop application was correctly generated.
Can you provide more information about your NB build, jdk version you used and
steps how to reproduce it?
Comment 2 Jiri Vagner 2007-05-28 10:00:36 UTC
Primary key from more db columns brokes generated code from Master/Detail wizzards.

Steps to reproduce:
 - create attached db table
 - create Java Application project
 - use m/d wizzard (New file -> JavaGUI Forms -> Sample Forms -> Master/Detail
Form) and use that db table


Drag and drop of db table into jframe works, but there are ugly msgs in output
window. After manual build, everything is ok.

Steps to reproduce:
 - create attached db table
 - create Java Application project
 - crete jframe form
 - go to runtime tab
 - drag that db table and drop it with CTRL key above jframe
 - check output window


NetBeans IDE Dev (Build 200705271800)
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
en_US (nb); UTF-8
Comment 3 Jiri Vagner 2007-05-28 10:03:27 UTC
Created attachment 42836 [details]
primarykeytesttable.sql
Comment 4 Jan Stola 2007-05-30 13:28:40 UTC

*** This issue has been marked as a duplicate of 105084 ***