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 204099 - [71cat] NullPointerException at org.openide.loaders.MultiDataObject$Entry.access$000
Summary: [71cat] NullPointerException at org.openide.loaders.MultiDataObject$Entry.acc...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 08:25 UTC by dbell
Modified: 2011-11-04 06:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182218


Attachments
stacktrace (1.79 KB, text/plain)
2011-10-22 08:25 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:25:23 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: Used "find" to search for text in project




Stacktrace: 
java.lang.NullPointerException
   at org.openide.loaders.MultiDataObject$Entry.access$000(MultiDataObject.java:1212)
   at org.openide.loaders.MultiDataObject.getFolderList(MultiDataObject.java:288)
   at org.openide.loaders.MultiDataObject.addSecondaryEntry(MultiDataObject.java:272)
   at org.openide.loaders.MultiDataObject.registerEntry(MultiDataObject.java:359)
   at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:223)
   at org.openide.loaders.DataObjectPool.handleFindDataObject(DataObjectPool.java:161)
Comment 1 dbell 2011-10-22 08:25:26 UTC
Created attachment 112328 [details]
stacktrace
Comment 2 Jaroslav Havlin 2011-10-24 15:43:21 UTC
Please, what types of project (PHP, Java) were opened when the exception was raised?
Can you find out which file causes the problem?
Thank you.
Comment 3 Jaroslav Havlin 2011-11-01 10:53:40 UTC
I am sorry, I need more information to be able to reproduce the problem.
If you can provide us with more details, please reopen.
Comment 4 dbell 2011-11-01 11:06:39 UTC
(In reply to comment #2)
> Please, what types of project (PHP, Java) were opened when the exception was
> raised?
> Can you find out which file causes the problem?
> Thank you.

Sorry I missed this message. The projects were Java projects, some of which were NetBeans IDE sources. From the stacktrace it looks as though the file that was causing the problem was java.source/src/org/netbeans/modules/java/source/usages/ContainsErrorsWarning.form. It looks like it was missing.
Comment 5 Jaroslav Havlin 2011-11-01 12:51:58 UTC
Thank you for your reply.
I've just tested searching in module java.source, with your NetBeans build (201110200600), deleted the form file, and no exception was raised.
Can you please attach your ide log?
Comment 6 dbell 2011-11-01 12:56:50 UTC
(In reply to comment #5)
> Can you please attach your ide log?

I think my IDE log might already be attached (see http://statistics.netbeans.org/exceptions/detail.do?id=182218)
Comment 7 Jaroslav Havlin 2011-11-01 12:59:08 UTC
Sorry, of course, thanks.
Comment 8 dbell 2011-11-01 13:21:08 UTC
No worries. Thanks for looking into it.
Comment 9 Jaroslav Havlin 2011-11-01 15:41:07 UTC
core-main/rev/b1864ee74416

Logging warning instead of throwing exception, so the search can continue.

It seems that the file is somehow damaged in the filesystem. 
Can you please check whether files ContainsErrorsWarning.form and ContainsErrorsWarning.java exist?
Have you encountered the exception only once, or can you reproduce it?
Comment 10 Jaroslav Havlin 2011-11-02 09:10:48 UTC
On 1.11.2011 20:07, Jesse Glick wrote (excerpts):
> WARNING is probably too severe for this.
> Also a more sensible default return value would be true.
> This is not about a DONFE, but rather an undocumented NPE which should 
> be reassigned to platform/Datasystems.

core-main/rev/fe0f49bca2d9
Comment 11 Quality Engineering 2011-11-02 15:14:56 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b1864ee74416
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #204099 - [71cat] NullPointerException at org.openide.loaders.MultiDataObject$Entry.access$000
Comment 12 Quality Engineering 2011-11-03 15:31:23 UTC
Integrated into 'main-golden', will be available in build *201111030600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b1864ee74416
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #204099 - [71cat] NullPointerException at org.openide.loaders.MultiDataObject$Entry.access$000
Comment 13 Jaroslav Tulach 2011-11-04 06:18:58 UTC
ergonomics#8d5fb1bffd47