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 179664 - NullPointerException: The element parameter cannot be null
Summary: NullPointerException: The element 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: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 05:41 UTC by Martin Schovanek
Modified: 2010-02-10 02:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151552


Attachments
stacktrace (4.26 KB, text/plain)
2010-01-19 05:41 UTC, Martin Schovanek
Details
stacktrace (4.26 KB, text/plain)
2010-02-03 07:46 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2010-01-19 05:41:20 UTC
Build: NetBeans IDE Dev (Build 201001190201)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
GUEST: Creanting a new Enterprise Bean

mschovanek: Created a new GF 2.1 EAR project.

Chiana: Reporing error #325247




Stacktrace: 
java.lang.NullPointerException: The element parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:86)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:379)
   at org.netbeans.modules.j2ee.ejbcore.ui.logicalview.ejb.shared.EjbViewController$4.run(EjbViewController.java:249)
   at org.netbeans.modules.j2ee.ejbcore.ui.logicalview.ejb.shared.EjbViewController$4.run(EjbViewController.java:245)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:471)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
Comment 1 Martin Schovanek 2010-01-19 05:41:27 UTC
Created attachment 93407 [details]
stacktrace
Comment 2 Martin Schovanek 2010-01-19 06:49:53 UTC
to reproduce:
-------------
1) create a new Java EE 6 EAR project
2) at the Web app create a new Persistance Unit for jdbc/sample data source
3) at the Web app create new RESTful Web Services from Databases for CUSTOMER table
4) use default REST Resource Configuration
5) expand Generated Sources and Sources Packages
ERROR: IDE throws the NPE
Comment 3 Petr Jiricka 2010-02-03 07:46:00 UTC
Created attachment 93804 [details]
stacktrace

Creating REST services from Entity classes
Comment 4 Petr Jiricka 2010-02-03 07:47:27 UTC
This is easily reproduceable -> P2. Andrey, can you please look at this?  Thanks.
Comment 5 Andrey Yamkovoy 2010-02-09 04:56:30 UTC
Fixed in the web-main.
Comment 6 Quality Engineering 2010-02-10 02:18:20 UTC
Integrated into 'main-golden', will be available in build *201002100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a2c7f9cd87a0
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: #179664 -  NullPointerException: The element parameter cannot be null