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 236528 - IllegalArgumentException: No parser for mime type: text/html (was: Opening project from 7.3 is not possible)
Summary: IllegalArgumentException: No parser for mime type: text/html (was: Opening pr...
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: PC Windows 8
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: 8.0_WAIVER_APPROVED
: 237582 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-30 06:08 UTC by burza
Modified: 2014-11-28 18:51 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (42.54 KB, text/plain)
2013-09-30 06:08 UTC, burza
Details
Screen afetr unfolding project. (61.86 KB, image/png)
2013-09-30 06:09 UTC, burza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description burza 2013-09-30 06:08:07 UTC
I get permanent "Please wait..." message on the "Projects" pane when trying to open the project. I can open files using "Files" pane.

When I unfold the project I get also Notification: "Unexpected Exception - Priority: Silent, Category: Error, No parse for mime type: text/html"

Product Version = NetBeans IDE 7.4 RC1 (Build 201309162201)
Operating System = Windows 8 version 6.2 running on x86
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) Client VM 23.25-b01
Comment 1 burza 2013-09-30 06:08:10 UTC
Created attachment 140630 [details]
IDE log
Comment 2 burza 2013-09-30 06:09:33 UTC
Created attachment 140631 [details]
Screen afetr unfolding project.
Comment 3 Ondrej Vrabec 2013-10-02 07:31:18 UTC
marian, was it a wild guess or was there any hint this was connected to subversion in any way???
> SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.spi.project.ui.support.NodeFactorySupport$DelegateChildren$1
> java.lang.IllegalArgumentException: No parser for mime type: text/html
> 	at org.netbeans.modules.parsing.api.ParserManager.findParser(ParserManager.java:402)
> 	at org.netbeans.modules.parsing.api.ParserManager.parseWhenScanFinished(ParserManager.java:358)
> 	at org.netbeans.modules.web.clientproject.remotefiles.RemoteFiles.update(RemoteFiles.java:100)
suggests the problem is in org.netbeans.modules.web.clientproject.remotefiles.RemoteFiles
Comment 4 burza 2013-10-02 07:43:57 UTC
I have deactivated most of the default plugins including subversion and it did not help.
Comment 5 Vladimir Riha 2013-10-02 10:56:35 UTC
Hi, I tried to reproduce it but no luck. What I did:
 - create project in 7.3.1
 - start 7.4 RC2, import settings from 7.3.1
 => project is opened OK

Then I tried to just open project in 7.4 RC2 without importing settings and it also went OK.

Did you imported settings from 7.3.1?

Could you try to change or delete your user and cache dir? 

To change it:
 - close IDE
 - open C:\Program Files (x86)\NetBeans 7.4 RC1\etc\netbeans.conf in text editor and change paths in

   netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/7.4rc1"
   netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.4rc1"

to e.g.

   netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/7.4rc11"
   netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.4rc11"

 - start 7.4 RC1 and try to open the project

To delete it:
 - close IDE
 - remove folders 
C:\Users\Mariusz\AppData\Roaming\NetBeans\7.4rc1
C:\Users\Mariusz\AppData\Local\NetBeans\Cache\7.4rc1
 - start 7.4 RC1 and try to open the project

Thank you


Tested on Windows 8, NB 7.4 RC2
Comment 6 burza 2013-10-02 11:25:20 UTC
As you wrote I changed the paths. Next I opened NetBeans 7.4 rc 1. It asked me for importing settings from 7.3.1. I did not agree to it. I opened the same project and everything were ok at this moment.

I think that old settings could be the problem.
Comment 7 David Konecny 2013-10-02 18:52:33 UTC
Marek, do you have any idea why parser coudl be missing? Could this be similar to issue 232703? Or which settings could stop parser from getting initialized?
Comment 8 Tomas Mysik 2013-11-27 10:13:03 UTC
*** Bug 237582 has been marked as a duplicate of this bug. ***
Comment 9 Ondrej Brejla 2013-12-06 10:51:20 UTC
Not sure if it's the same issue as issue #232703. HTML parser is not registered directly in layer, it's returned by GsfLanguage.getParser() where HtmlLanguage is registered by annotation csl.spi.@LanguageRegistration. Maybe it's CSL related? Svato, what do you think?
Comment 10 Tomas Mysik 2014-01-16 10:47:52 UTC
Guys on CC, I don't really have no idea how I could fix this issue (I know nothing about the editor) - could anyone of you please take this issue over?

Thanks in advance.
Comment 11 Tomas Mysik 2014-01-20 06:22:58 UTC
After discussion with Ondra, reassigning to Sváťa - could you please have a look at it? Thanks a lot!
Comment 12 Exceptions Reporter 2014-01-24 14:04:04 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=203922
Comment 13 Petr Jiricka 2014-07-15 12:45:33 UTC
18 duplicates now.
Comment 14 Svata Dedic 2014-11-28 18:51:11 UTC
Folks, I cannot reproduce the defect either, trying to migrate from 7.3.1 directly to 8.0.

Please provide me with exact steps how to reproduce the defect. Some screwed up or wrongly migrated configuration must be involved....