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 192746 - NullPointerException: The folder parameter cannot be null
Summary: NullPointerException: The folder parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 14:33 UTC by Petr Jiricka
Modified: 2010-12-02 06:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 169447


Attachments
stacktrace (6.86 KB, text/plain)
2010-12-01 14:33 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-12-01 14:33:24 UTC
This issue was reported manually by pjiricka.
It already has 3 duplicates 


Build: NetBeans IDE Dev (Build web-main-4252-on-101201)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
GUEST: I'm building my own web application based on The NetBeans E-commerce Tutorial (i.e. i'm using my own database model and web page model while following the tutorial steps). At chapter Adding Entity Classes and Session Beans - Adding Session Beans step 4: clicking "Next" didn't do anything, then i saw the error button at the bottom right of the IDE.

pjiricka: Generating session beans from entity beans.

GUEST: I was following the Affable Bean tutorial. At stage 8, at the part when the tutorial shows how to add Session Beans for Entity Classes, I do steps 1, 2, 3 and 4. Step 4 is clicking "Add all" to add all Entity Classes. After that, when I click Next, an exception happens and the only button that still works is cancel. This happens every time.
Hi, I'm the one who sent this report. I'd just like to add that I finally managed to go on with the tutorial. The exception still happened, but after a few more tries, I could also click Back and Next buttons. I kept clicking them (to see what would happen :)) and suddenly I could add all Entity Classes, click Next and then Finish. The exception was still there (red icon at bottom-right of the IDE window), but I didn't encounter any more problems.




Stacktrace: 
java.lang.NullPointerException: The folder parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.modules.j2ee.core.api.support.SourceGroups.getFolderSourceGroup(SourceGroups.java:140)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeVisualPanel2.read(EjbFacadeVisualPanel2.java:87)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardPanel2.readSettings(EjbFacadeWizardPanel2.java:81)
   at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:910)
   at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:861)
Comment 1 Petr Jiricka 2010-12-01 14:33:27 UTC
Created attachment 103501 [details]
stacktrace
Comment 2 Petr Jiricka 2010-12-01 14:40:28 UTC
Sergey, could I please ask you to look into this? (currently we have noone permanently assigned to the EJB area). I am getting this consistently when creating session beans from entities. Thanks.
Comment 3 Sergey Petrov 2010-12-01 14:42:55 UTC
do you have complete set of steps?
Comment 4 Petr Jiricka 2010-12-01 14:48:30 UTC
1. Create EE 6 web project with GF 3.1 target
2. Create entities from db
3. Create session beans from entities

Exception occurs in the wizard on clicking Next.
Comment 5 Sergey Petrov 2010-12-01 15:06:52 UTC
either there is no problem with 3.0.1 or I can't reproduce, will download 3.1 to try
Comment 6 Sergey Petrov 2010-12-01 15:20:06 UTC
I can now with 3.0.1 and 3.1, need to invoke wizard on project's root node
Comment 7 Sergey Petrov 2010-12-01 16:58:33 UTC
http://hg.netbeans.org/web-main/rev/3e61b673f5db should be fixed
Comment 8 Quality Engineering 2010-12-02 06:22:29 UTC
Integrated into 'main-golden', will be available in build *201012020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3e61b673f5db
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: fix #192746 - check fo null folder is added, silimar to almost all wizards