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 180969 - NullPointerException at org.netbeans.api.project.ProjectUtils.getSources
Summary: NullPointerException at org.netbeans.api.project.ProjectUtils.getSources
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 08:04 UTC by Exceptions Reporter
Modified: 2010-02-25 22:11 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165325


Attachments
stacktrace (1.97 KB, text/plain)
2010-02-19 08:04 UTC, Exceptions Reporter
Details
stacktrace (1.97 KB, text/plain)
2010-02-19 20:24 UTC, skappel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-02-19 08:04:12 UTC
Build: NetBeans IDE Dev (Build 201002190200)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
Chiana: Created JSF file from entity

Chiana: Apparently the wizard for creating jsf pages from entityclasses is VERY broken. It do not create the needed classes and makes only a stub class for AbstractFacade. Further it does not create a proper facadeclass (aka AbstractRemoteFacade) to extend the <entity>RemoteFacade classes with items defined in AbstractFacade.
And ofcourse it causes this error...

GUEST: generating JSF pages from entity classes.

before that, generated entity classes from mysql database.

Chiana: Tried the same as last time one more time...




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.project.ProjectUtils.getSources(ProjectUtils.java:102)
   at org.netbeans.modules.j2ee.persistence.dd.PersistenceUtils.getJPAVersion(PersistenceUtils.java:177)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$1.run(EjbFacadeWizardIterator.java:298)
   at org.netbeans.modules.j2ee.ejbcore.ejb.wizard.jpa.dao.EjbFacadeWizardIterator$1.run(EjbFacadeWizardIterator.java:253)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:661)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
Comment 1 Exceptions Reporter 2010-02-19 08:04:17 UTC
Created attachment 94337 [details]
stacktrace
Comment 2 Milos Kleint 2010-02-19 08:12:51 UTC
reassigning to persistence
Comment 3 skappel 2010-02-19 20:24:08 UTC
Created attachment 94351 [details]
stacktrace

Creating JSF from Entities
Comment 4 Sergey Petrov 2010-02-24 04:45:39 UTC
works in next case: new web project with jsf, create entity, create jsf from entity, got npe on press finish.
Comment 5 Sergey Petrov 2010-02-24 05:09:26 UTC
in previous comment "works" means "issue is reproducible".
http://hg.netbeans.org/web-main/rev/5e516c49c00a fixed
Comment 6 Quality Engineering 2010-02-24 22:03:43 UTC
Integrated into 'main-golden', will be available in build *201002250200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5e516c49c00a
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #180969 - fixed, pass project as a parameter now
Comment 7 roti 2010-02-25 04:41:42 UTC
http://bits.netbeans.org/dev/nightly/ is not reachable right now
Comment 8 Sergey Petrov 2010-02-25 05:01:09 UTC
yes, it's known issue
Comment 9 roti 2010-02-25 06:05:22 UTC
the site works now, but the latest directory is:

2010-02-24_02-00-36/    24-Feb-2010 05:09

do I need to wait for tomorrow to test it?
Comment 10 Sergey Petrov 2010-02-25 06:19:41 UTC
yes, build shouldn't be older then 201002250200
Comment 11 Quality Engineering 2010-02-25 22:11:03 UTC
Integrated into 'main-golden', will be available in build *201002260200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5e516c49c00a
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #180969 - fixed, pass project as a parameter now