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 74878 - AssErr: Should have set configFilesFolder
Summary: AssErr: Should have set configFilesFolder
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 08:27 UTC by findulas
Modified: 2006-06-16 10:36 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 findulas 2006-04-12 08:27:17 UTC
The aim is to generate persistence entities (EJB 3.0) from database tables.

The project is an Enterprise Application project.

The wizard comes up and imports the db-structure without a problem.
Table selection and configuration of the generation process is no problem.

The following error rises during generation:

java.lang.AssertionError: Should have set configFilesFolder, e.g. by retrieving
it from a PersistenceLocationProvider or EjbJar or by asking the user
	at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.createBeans(RelatedCMPWizard.java:226)
	at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.access$100(RelatedCMPWizard.java:42)
	at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard$2.run(RelatedCMPWizard.java:191)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 1 findulas 2006-04-12 08:34:04 UTC
Netbeans BUILD 200604110200
Java 1.5.0_05-b05
VM: Hotspot client

I try this one using two tables, one with a multicolumn primary key which
references a second table with a multicolumn primary key.
Comment 2 Andrei Badea 2006-05-17 12:55:26 UTC
Which project is that? Are you sure it is an Enterprise Application (EAR)
project? I think entity classes (and Java classes) are not supported in EAR
projects. Marking as incomplete for now.
Comment 3 findulas 2006-05-23 09:11:37 UTC
This was an EAR Project. The Persistence Classes should work, as they are the
EJB 3.0 Standard. I hope I can reconstruct this error next week using the Beta
Version.
Comment 4 Andrei Badea 2006-05-23 11:26:40 UTC
Sorry, it is still not clear to me. I don't understand how you invoked the
Entity Classes from Database wizard on an EAR project, since the wizard is not
available in the New File wizard. Could it have been an EJB project inside an
EAR project? Please post detailed reproducible steps.
Comment 5 findulas 2006-06-16 10:36:32 UTC
I cannot reproduce this issue with the actual daily builds. So I mark it as
WORKSFORME.