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 235295 - IllegalArgumentException: No parser for mime type: text/x-java
Summary: IllegalArgumentException: No parser for mime type: text/x-java
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 09:01 UTC by satory
Modified: 2013-09-05 01:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 194953


Attachments
stacktrace (2.12 KB, text/plain)
2013-08-30 09:01 UTC, satory
Details

Note You need to log in before you can comment on or make changes to this bug.
Description satory 2013-08-30 09:01:41 UTC
This bug was originally marked as duplicate of bug 210236, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201308300001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
satory: Opening a child maven project.




Stacktrace: 
java.lang.IllegalArgumentException: No parser for mime type: text/x-java
   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.api.java.source.JavaSource.runWhenScanFinished(JavaSource.java:583)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTaskWhenScanFinished(AnnotationModelHelper.java:215)
   at org.netbeans.modules.j2ee.dd.impl.webservices.annotation.WebservicesMetadataModelImpl.runReadActionWhenReady(WebservicesMetadataModelImpl.java:105)
   at org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadActionWhenReady(MetadataModel.java:185)
Comment 1 satory 2013-08-30 09:01:43 UTC
Created attachment 139474 [details]
stacktrace
Comment 2 Jan Lahoda 2013-09-02 08:24:17 UTC
I'm afraid this means the fix for bug #232703 was not sufficient.
Comment 3 satory 2013-09-02 08:37:19 UTC
I installed netbeans 7.31 and it had the same problem, but...

When I uninstalled both ide's and restarted the laptop before installing 7.4dev again, this issue didnt show up again...  I dont know anything about this defect, but could it be a error that occurs during installation?
Comment 4 Tomas Zezula 2013-09-02 09:06:09 UTC
Yes, it can be so.
The problem is that a class registered in one module can not be found in the same module.
It's either related to the MimeLookup doing the registration or to module system providing caches for classes & resources.
Comment 5 Tomas Zezula 2013-09-03 09:38:57 UTC
I've added a code to prove that the problem is not on Java Support level.
Fixed jet-main a4e1ed5ee7fe
Comment 6 Quality Engineering 2013-09-05 01:30:47 UTC
Integrated into 'main-silver', will be available in build *201309050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a4e1ed5ee7fe
User: Tomas Zezula <tzezula@netbeans.org>
Log: #235295:IllegalArgumentException: No parser for mime type: text/x-java