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 218388 - Code from java.source.JavaSource runs, but the module is not enabled
Summary: Code from java.source.JavaSource runs, but the module is not enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 221109 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-14 14:59 UTC by Exceptions Reporter
Modified: 2013-07-09 11:26 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187275


Attachments
stacktrace (1.67 KB, text/plain)
2012-09-14 14:59 UTC, Exceptions Reporter
Details
stacktrace (1.67 KB, text/plain)
2012-11-15 15:28 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-09-14 14:59:49 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 7.2 (Build 201207171143)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7

User Comments:
lallafa: just started a fresh installation of 201204210400




Stacktrace: 
java.lang.IllegalArgumentException: No parser for mime type: text/x-java
   at org.netbeans.modules.parsing.api.ParserManager.findParser(ParserManager.java:394)
   at org.netbeans.modules.parsing.api.ParserManager.parseWhenScanFinished(ParserManager.java:353)
   at org.netbeans.api.java.source.JavaSource.runWhenScanFinished(JavaSource.java:578)
   at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTaskWhenScanFinished(AnnotationModelHelper.java:218)
   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 Exceptions Reporter 2012-09-14 14:59:51 UTC
Created attachment 124384 [details]
stacktrace
Comment 2 Denis Anisimov 2012-10-18 14:44:20 UTC
I have no idea why there is no mime type for "text/x-java".
This is out of webservices area.
I'm not sure about correctness of Product/Component. Please reassign the issue 
in case it they are wrong.
Comment 3 Jan Lahoda 2012-11-07 12:48:20 UTC
*** Bug 221109 has been marked as a duplicate of this bug. ***
Comment 4 Jan Lahoda 2012-11-12 08:43:58 UTC
I have duplicated all reports before bug #210236 was fixed to that bug. I filled:
http://statistics.netbeans.org/exceptions/detail.do?id=194953
for one report from 7.2 I have no explanation for.

Now, to the remaining reports: 627011, 625513, 625406, 623583 and 605080. Looking at their messages.log, all these reports have one in common: the code from java.source.JavaSource is run, but the java.source module is not listed in the "Turning on modules:" section. So it seems that the module system is running code from a module that is not enabled! I don't think that should be happening -> module system.
Comment 5 Exceptions Reporter 2012-11-15 15:28:29 UTC
Created attachment 127886 [details]
stacktrace
Comment 6 Jaroslav Tulach 2012-11-26 14:43:32 UTC
FYI: Jirka mentioned today that he knows how to simulate a case where some modules are running, but not printed in the messages.log
Comment 7 Jaroslav Tulach 2013-07-09 11:26:03 UTC
Any new signs this is still a problem?