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 252855 - IllegalArgumentException: MultiFileObject@64e5472e[Services/MIMEResolver/user-defined-mime-resolver.xml]
Summary: IllegalArgumentException: MultiFileObject@64e5472e[Services/MIMEResolver/user...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 248828 252478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-07 09:47 UTC by psaberi
Modified: 2015-09-26 12:58 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217780


Attachments
stacktrace (2.80 KB, text/plain)
2015-06-07 09:47 UTC, psaberi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description psaberi 2015-06-07 09:47:53 UTC
This bug was originally marked as duplicate of bug 232134, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
psaberi: when I unse netbeans to programmin in php, i get this error.

Corneliu: Managing file associations from Options -> Miscellaneous -> Files




Stacktrace: 
java.lang.IllegalArgumentException: MultiFileObject@64e5472e[Services/MIMEResolver/user-defined-mime-resolver.xml]
   at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl.create(MIMEResolverImpl.java:358)
   at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl.getMIMEToExtensions(MIMEResolverImpl.java:153)
   at org.openide.filesystems.MIMEResolver$UIHelpers.getMIMEToExtensions(MIMEResolver.java:189)
   at org.netbeans.core.ui.options.filetypes.FileAssociationsModel.init(FileAssociationsModel.java:302)
   at org.netbeans.core.ui.options.filetypes.FileAssociationsModel.getExtensions(FileAssociationsModel.java:149)
   at org.netbeans.core.ui.options.filetypes.FileAssociationsPanel.load(FileAssociationsPanel.java:401)
Comment 1 psaberi 2015-06-07 09:47:55 UTC
Created attachment 154089 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-08-10 13:39:09 UTC
It seems that file user-defined-mime-resolver.xml is corrupted.

Can you please check it? It is located in NetBeans user directory, e.g.
~/.netbeans/8.0/config/Services/MIMEResolver/. If it is empty or missing, please try deleting (or renaming) its parent directory (MIMEResolver).

Thank you.
Comment 3 Tomas Hurka 2015-09-10 08:35:39 UTC
*** Bug 252478 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Havlin 2015-09-22 12:06:13 UTC
*** Bug 248828 has been marked as a duplicate of this bug. ***
Comment 5 Jaroslav Havlin 2015-09-24 09:49:19 UTC
http://hg.netbeans.org/core-main/rev/9c7ed05394ff
Fixed (informative message in IDE Log instead of exception report).

Thank you for reporting.
Comment 6 Quality Engineering 2015-09-26 12:58:41 UTC
Integrated into 'main-silver', will be available in build *201509261150* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9c7ed05394ff
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #252855: IllegalArgumentException: Empty file Services/MIMEResolver/user-defined-mime-resolver.xml