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 130553 - Sample form seems not to work
Summary: Sample form seems not to work
Status: VERIFIED INVALID
Alias: None
Product: usersguide
Classification: Unclassified
Component: Form (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-19 18:08 UTC by Petr Dvorak
Modified: 2008-04-14 12:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-03-19 18:08:37 UTC
Product Version: NetBeans IDE Dev (Build 200803190008)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

I tried to execute test scenario from TS_61_MasterDetailFormWizard. I inserted "Master/Detail Sample Form" in generated
Java Application, I selected sample JDBC connection (provided by default, app/app), and finally, I selected CUSTOMERS
table and some of the fields (see test specification). Then I executed the form (Shift+F6) and I got following run-time
exception:

Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager
named samplePU:  No META-INF/persistence.xml was found in classpath.
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
        at javaapplication5.NewMasterDetailForm.initComponents(NewMasterDetailForm.java:30)
        at javaapplication5.NewMasterDetailForm.<init>(NewMasterDetailForm.java:14)
        at javaapplication5.NewMasterDetailForm$1.run(NewMasterDetailForm.java:386)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

As it is a sample form, it should work out-of-box (there WAS a META-INF/persistence.xml file in the project window and
it was possible to open it...). Test specification describes that the form should be just compiled with no
complications, that is why I report this issue:

http://wiki.netbeans.org/TS_61_MasterDetailFormWizard#section-TS_61_MasterDetailFormWizard-TestSuiteMDWizardInJavaApplicationProject
Comment 1 Petr Dvorak 2008-03-19 18:17:00 UTC
Mistake in the test spec., quite logical thing is that you need to build the project in order to make it working. Excuse
my stupidity... :-/

INVALID
Comment 2 Petr Dvorak 2008-04-14 12:21:36 UTC
Verified: 20080411