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 188176 - NullPointerException at org.netbeans.modules.j2ee.persistence.provider.ProviderUtil.addPersistenceUnit
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.provider.Provid...
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 23:31 UTC by valdecir
Modified: 2010-06-30 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 169024


Attachments
stacktrace (6.80 KB, text/plain)
2010-06-28 23:31 UTC, valdecir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description valdecir 2010-06-28 23:31:04 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP

User Comments:
GUEST: I tried to create an entity from a MySQL Database

GUEST: I am trying to connect MySql to JDBC datasource

GUEST: trying to create classes from database




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.provider.ProviderUtil.addPersistenceUnit(ProviderUtil.java:617)
   at org.netbeans.modules.j2ee.persistence.wizard.Util.addPersistenceUnitToProject(Util.java:516)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.instantiate(RelatedCMPWizard.java:274)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
Comment 1 valdecir 2010-06-28 23:31:08 UTC
Created attachment 100470 [details]
stacktrace
Comment 2 Sergey Petrov 2010-06-29 05:35:48 UTC
As  a workaround it should be possible to creat persistence unit first.

What server is used/project type/any additional steps?
Comment 3 Sergey Petrov 2010-06-30 13:25:48 UTC
Please provide netbeans message.log also, it may contain additional details (warnings, exception etc).
I can't reproduce and it's hard to fix with only stacktrac information. Please reopen the issue after update, it may have sense to try 6.9 release also.