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 109084 - org.netbeans.modules.form.PersistenceException when creating a SwingAppFramework Database application.
Summary: org.netbeans.modules.form.PersistenceException when creating a SwingAppFramew...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords: RANDOM
: 105810 109095 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-08 10:11 UTC by mahantya
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans log file with the error stacktrace (188.90 KB, text/plain)
2007-07-09 08:25 UTC, mahantya
Details
org-netbeans-modules-j2ee-persistence.jar (1.53 MB, application/octet-stream)
2007-07-09 14:34 UTC, Andrei Badea
Details
The log file with the stacktrace - after replacing the JAR file. (185.92 KB, text/plain)
2007-07-09 17:55 UTC, mahantya
Details
Log file - After trying to create a New Java Class. (117.32 KB, text/plain)
2007-07-09 20:01 UTC, mahantya
Details
The new java class file that got created - Car.java (211 bytes, text/plain)
2007-07-09 20:12 UTC, mahantya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mahantya 2007-07-08 10:11:56 UTC
I'm trying to do the following tutorial- http://www.netbeans.org/kb/60/ide-gui-db-prev.html
And every time I try to do Step #7 under "Creating the Application" section, I get few errors.
Comment 1 mahantya 2007-07-09 08:25:22 UTC
Created attachment 44803 [details]
Netbeans log file with the error stacktrace
Comment 2 Tomas Pavek 2007-07-09 11:40:02 UTC
Looks like failure in entity class generation or finding.
Comment 3 Tomas Pavek 2007-07-09 11:40:43 UTC
Asking for evaluation.
Comment 4 Andrei Badea 2007-07-09 14:34:51 UTC
Created attachment 44815 [details]
org-netbeans-modules-j2ee-persistence.jar
Comment 5 Andrei Badea 2007-07-09 14:36:52 UTC
I can't reproduce this issue. Please copy the attached jar file to <netbeans_dir>/java1/modules (you should replace a
file of the same name in that directory), reproduce the issue and attach the messages.log file. Thanks.
Comment 6 mahantya 2007-07-09 17:53:49 UTC
I downloaded the jar file and replaced the existing one. The issue continues to prevail.
I'm attaching the messages.log file.
Comment 7 mahantya 2007-07-09 17:55:11 UTC
Created attachment 44833 [details]
The log file with the stacktrace - after replacing the JAR file.
Comment 8 mahantya 2007-07-09 19:56:07 UTC
I just noticed another thing. When I try to create a new Java file i.e.
File -> New File -> Java -> Java Class

and enter any filename say Car. The editor creates a Car.java file but it's unable to create source code from the
template. This is how the source code looks no matter what filename I give.

/*
 * __NAME__.java
 *
 * Created on __DATE__, __TIME__ 
 * @author __USER__
 *
 */

package Templates.Classes;

public class Class {

    /** Creates a new instance of __NAME__ */
    public Class() {
    }

}


Is there any particular module/jar I need to change?
Comment 9 mahantya 2007-07-09 20:01:19 UTC
Created attachment 44846 [details]
Log file - After trying to create a New Java Class.
Comment 10 mahantya 2007-07-09 20:12:06 UTC
Created attachment 44848 [details]
The new java class file that got created - Car.java
Comment 11 Andrei Badea 2007-07-10 10:17:24 UTC
desc9 suggests there is a problem in the generation of new Java files, so reassigning accordingly.
Comment 12 Jiri Prox 2007-07-10 10:46:28 UTC
The wrong generation of new java classes is known issue. See 103673. Just delete {netbeans.userdir}/config/Templates or
start with the fresh userdir w/o importing settings to get it work correctly. Is is still reproducible when the new
classes are generated correctly? 
Comment 13 Andrei Badea 2007-07-10 13:15:11 UTC
*** Issue 105810 has been marked as a duplicate of this issue. ***
Comment 14 Tomas Pavek 2007-07-10 16:57:18 UTC
*** Issue 109095 has been marked as a duplicate of this issue. ***
Comment 15 mahantya 2007-07-10 19:33:19 UTC
Thanks Guys! It turns out the problem was indeed because of the imported templates. 
I just re-installed NB6m10 and didn't import anything from the last version... everything works like a charm :)

Cheers!
Comment 16 Jan Pokorsky 2007-08-22 13:55:03 UTC
OK, closing as works for me.