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 204096 - [71cat] NullPointerException at org.netbeans.modules.form.FormDataLoader.createPrimaryEntry
Summary: [71cat] NullPointerException at org.netbeans.modules.form.FormDataLoader.crea...
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 08:17 UTC by dbell
Modified: 2011-10-22 15:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182216


Attachments
stacktrace (3.57 KB, text/plain)
2011-10-22 08:17 UTC, dbell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dbell 2011-10-22 08:17:52 UTC
Build: NetBeans IDE Dev (Build 201110200600)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511
OS: Mac OS X

User Comments:
dbell: Invoking code completion

dbell: Tried to use code completion in Java document




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.FormDataLoader.createPrimaryEntry(FormDataLoader.java:140)
   at org.openide.loaders.MultiDataObject.createPrimaryEntry(MultiDataObject.java:1095)
   at org.openide.loaders.MultiDataObject.<init>(MultiDataObject.java:124)
   at org.netbeans.modules.form.FormDataObject.<init>(FormDataObject.java:82)
   at org.netbeans.modules.form.FormDataLoader.createMultiObject(FormDataLoader.java:118)
   at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:145)
Comment 1 dbell 2011-10-22 08:17:55 UTC
Created attachment 112326 [details]
stacktrace
Comment 2 Jan Stola 2011-10-22 15:40:17 UTC
The corresponding lines are

  FormServices services = Lookup.getDefault().lookup(FormServices.class);
  MultiDataObject.Entry entry = services.createPrimaryEntry(obj, primaryFile);

The attached exception shows that services is null. This is really strange. Lookup should return NbFormServices registered in form.nb module (the attached message log shows that form.nb module is enabled).

message.log shows several exceptions related to MetaInfServicesLookup. Therefore, the root of this issue seems to be outside GUI Builder. It seems that the lookup got corrupted/incomplete somehow.

Unfortunately, I am not able to reproduce this issue. Are you still able to reproduce it? If so, could you, please, provide more details? It would be ideal to provide exact steps to reproduce (starting with a new/empty user-dir).