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 80751 - Use Database action is enabled in the freeform project
Summary: Use Database action is enabled in the freeform project
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: EJB Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-20 18:16 UTC by Martin Schovanek
Modified: 2007-07-04 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The NPE (3.05 KB, text/plain)
2006-07-20 18:17 UTC, Martin Schovanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2006-07-20 18:16:44 UTC
[#2006071900, jdk1.5.0]

to reproduce:
-------------
1) open a EJB FreeForm project
2) in a .java file invoke 'Enterprise Resources > Use Database'
ERROR: IDE throws:
Comment 1 Martin Schovanek 2006-07-20 18:17:59 UTC
Created attachment 32064 [details]
The NPE
Comment 2 Andrei Badea 2006-07-21 15:58:49 UTC
Caused by the freeform project not having a target server instance.
Comment 3 Andrei Badea 2006-07-26 16:09:21 UTC
I cannot disable the action entirely, because I don't know a way to reliably
detect that a project is a freeform project. Just displaying a warning that the
target server is not set properly, so downgrading to P4 instead of closing.

Checking in ejbcore/nbproject/project.xml;
/cvs/j2ee/ejbcore/nbproject/project.xml,v  <--  project.xml
new revision: 1.3.2.4.2.5; previous revision: 1.3.2.4.2.4
done
Checking in
ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/Bundle.properties;
/cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.3.2.3.2.6; previous revision: 1.3.2.3.2.5
done
Checking in
ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/SelectDatabasePanel.form;
/cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/SelectDatabasePanel.form,v
 <--  SelectDatabasePanel.form
new revision: 1.3.6.2; previous revision: 1.3.6.1
done
Checking in
ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/SelectDatabasePanel.java;
/cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/entres/SelectDatabasePanel.java,v
 <--  SelectDatabasePanel.java
new revision: 1.3.2.1.2.3; previous revision: 1.3.2.1.2.2
done
Checking in utilities/manifest.mf;
/cvs/j2ee/utilities/manifest.mf,v  <--  manifest.mf
new revision: 1.6.2.3.2.8; previous revision: 1.6.2.3.2.7
done
Checking in utilities/src/org/netbeans/modules/j2ee/common/Util.java;
/cvs/j2ee/utilities/src/org/netbeans/modules/j2ee/common/Util.java,v  <--  Util.java
new revision: 1.5.8.1.2.6; previous revision: 1.5.8.1.2.5
done
Comment 4 Andrei Badea 2007-07-04 09:57:24 UTC
The EJB freeform project has been dropped from NetBeans 6.0.