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
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
java.lang.IllegalArgumentException: No parser for mime type: text/x-java
Created attachment 117370 [details]
Created attachment 117381 [details]
starting netbeans, importing from previous version (the exception appeared two more times while I was writing this)
This bug already has 10 duplicates
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]
Created attachment 117460 [details]
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]
Created attachment 117600 [details]
Opening JavaSE project
Created attachment 117627 [details]
Created attachment 117713 [details]
Created attachment 117736 [details]
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
Created attachment 118157 [details]
opening a project with reference problems
Created attachment 118240 [details]
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]
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]
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
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).
The fix is different from the original patch. I am trying to make the mime lookup rebuild synchronous:
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. ***