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.
Build: NetBeans IDE Dev (Build 201203271056) VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05 OS: Windows 7 User Comments: GUEST: While executing a JavaFX code using a REST API (which failed leaving some java.exe process running). Then on restarting Netbeans(and killing the java.exe process), it fails to start completely with the above error. GUEST: java com erro no netbens GUEST: starting ide stefan79: Started NetBeans after new Installation GUEST: starting netbeans ide 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.parse(ParserManager.java:330) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:416) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:408) at org.netbeans.api.java.source.ScanUtils.postJavaTask(ScanUtils.java:359) at org.netbeans.api.java.source.ScanUtils.postUserActionTask(ScanUtils.java:121)
Created attachment 117370 [details] stacktrace
Created attachment 117381 [details] stacktrace starting netbeans, importing from previous version (the exception appeared two more times while I was writing this)
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148306
The JavaParserFactory is registered by java.source module. The java.j2seproject depends on it and it's enabled as seen from stack trace (JavaSource.runUserActionTask) but the JavaParserFactory is not found in the mime lookup. Probably all resources cache is broken.
Created attachment 117450 [details] stacktrace nb start
Created attachment 117460 [details] stacktrace Just opened a project from clean start. Project default from refactoring test specification: http://wiki.netbeans.org/wiki/images/2/2d/Default_TS_60_Refactoring.zip
Created attachment 117563 [details] stacktrace
Created attachment 117600 [details] stacktrace Opening JavaSE project
Created attachment 117627 [details] stacktrace
Created attachment 117713 [details] stacktrace starting nb
Created attachment 117736 [details] stacktrace Only open a project (project default from refactoring test specification) from clean start of IDE and this error shows up.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148306
Created attachment 118157 [details] stacktrace opening a project with reference problems
Created attachment 118240 [details] stacktrace 1.Start IDE full distro - fresh install, clean user dir 2.Create J2SE project
*** Bug 210744 has been marked as a duplicate of this bug. ***
*** Bug 208690 has been marked as a duplicate of this bug. ***
Created attachment 118417 [details] stacktrace for some reason, ergonomics tried to activate javaME during opening java file in j2se project. Do not know why.
I will try to have a look.
Created attachment 118576 [details] patch1
Tomasi, can you please review the patch? I know you didn't want to fix it like this but I was not able to come up with anything better. Mime lookup can be slow to update and you are asking too soon ...
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148306
As per Tomas: the fix should be refined and mime lookup should return a future when it is rebuilding itself (instead of blindly waiting in parsing API).
Yes. Thanks Davide.
The fix is different from the original patch. I am trying to make the mime lookup rebuild synchronous: http://hg.netbeans.org/jet-main/rev/37ecf414494a Let's see whether the problems will be gone after this, I plan still to integrate a test ....
*** Bug 216591 has been marked as a duplicate of this bug. ***
*** Bug 246236 has been marked as a duplicate of this bug. ***
The bug seems to be there again - in version 8.0. See the issue 246236. Is there anything different that should be done when calling JavaSource.runUserActionTask ?
Well, the report from issue 246236 is from Aug 2013, i.e. quite old. And could this be a duplicate of bug 246233?
*** Bug 246233 has been marked as a duplicate of this bug. ***
*** Bug 250151 has been marked as a duplicate of this bug. ***
Reporters: did the error happen "shortly" after IDE start ? Do you have ergonomics enabled ?
*** Bug 240326 has been marked as a duplicate of this bug. ***
I get this as soon as I try to open a project that someone else created
This bug already has 400 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148306
*** Bug 252942 has been marked as a duplicate of this bug. ***
*** Bug 247046 has been marked as a duplicate of this bug. ***
*** Bug 246238 has been marked as a duplicate of this bug. ***
Closing this bug, since there is no report from dev build. It will be reopen once we get report from something newer than 8.0.2 (141118) build. It is probably fixed in dev build.