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.
Summary: | IllegalArgumentException: No parser for mime type: text/x-java | ||
---|---|---|---|
Product: | editor | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | -- Other -- | Assignee: | Milutin Kristofic <mkristofic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aldobrucale, dkonecny, dstrupl, mkuchtiak, tzezula |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 202146 |
Attachments: | stacktrace |
Description
Exceptions Reporter
2013-07-15 11:42:48 UTC
Created attachment 137120 [details]
stacktrace
Reassigning to editor/parsing and indexing category to evaluate. Would it help if (in RestServicesMetadataModelImpl) we called: model.runReadActionWhenReady (equivalent JavaSource.runWhenScanFinished) ? rather than model.runReadAction (equivalent to JavaSource.runUserActionTask) Adding bits of offline discussion for the record: 3 exceptions logged are all from different areas: -org.netbeans.modules.maven.j2ee.web.WebAppMetadataHelper.getServlets(WebAppMetadataHelper.java:65) -org.netbeans.modules.web.jsf.api.editor.JsfFacesComponentsProvider.getLibraries(JsfFacesComponentsProvider.java:91) -org.netbeans.modules.websvc.rest.model.impl.RestServicesMetadataModelImpl.runReadAction(RestServicesMetadataModelImpl.java:77) Exception http://statistics.netbeans.org/exceptions/exception.do?id=681109 is from "NetBeans IDE 7.3 (Build 201302132200)" and long before my change 0c0246bd3359 (runReadActionWhenReady changed to runReadAction). On the other hand TomasZ year ago changed runReadAction to runReadActionWhenReady: changeset: 212137:048c99083423 parent: 212004:e8877bf19ddc user: Tomas Zezula <tzezula@netbeans.org> date: Thu Jan 26 19:28:29 2012 +0100 summary: Postpone metamodel operations to point when metadata are ready. But why 7.3 year later still calls runReadAction is a mystery to me or perhaps I overlooked something. The Parser for text/x-java is registered in the java.source module. As the stack trace contains JavaSource.runUserActionTask(...) the java.source module had to be enabled but the Parser was not returned by the mime lookup. *** Bug 234057 has been marked as a duplicate of this bug. *** It may be caused by lazy initialisation of lookup. I've changed the JavacParserFactory registration to contain the instanceof. We will see if it helps. Fixed jet-main f03be142e681 I really like to visit here this amazing post need to follow here http://mahjongfreegames.online and get the update to play here mahjong free games online forever. |