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 72001

Summary: NPE when invoke New persistence unit wizard
Product: javaee Reporter: Petr Blaha <blaha>
Component: PersistenceAssignee: Erno Mononen <emononen>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: stack trace

Description Petr Blaha 2006-01-30 09:28:56 UTC
[build 20060129]
Steps:
1) create j2SE application
2) select project node in project tab
3) New File - Persistence Unit
4) click next
ERROR: 
java.lang.NullPointerException
	at
org.netbeans.modules.j2ee.persistence.wizard.unit.ProviderUtil.getContainerManagedProvider(ProviderUtil.java:216)
Comment 1 Petr Blaha 2006-01-30 09:32:05 UTC
Created attachment 28639 [details]
stack trace
Comment 2 Erno Mononen 2006-01-30 09:32:45 UTC
I'm working on this.
Comment 3 Erno Mononen 2006-01-30 10:16:18 UTC
Fixed in the javaee5 branch. 

Checking in ProviderUtil.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/unit/
Attic/ProviderUtil.java,v  <--  ProviderUtil.java
new revision: 1.1.2.9; previous revision: 1.1.2.8
Comment 4 Petr Blaha 2006-01-31 08:41:28 UTC
build 20060130