I keep getting the following error in NetBeans

Asked by oshirowanen yoshigawa

I keep getting the following error in NetBeans

java.lang.IllegalStateException: Cannot find an HtmlParser implementation for HTML5

Followed by

 at org.netbeans.editor.ext.html.parser.api.SyntaxAnalyzerResult.findParser(Unknown Source)
 at org.netbeans.editor.ext.html.parser.api.SyntaxAnalyzerResult.doParseHtml(Unknown Source)
 at org.netbeans.editor.ext.html.parser.api.SyntaxAnalyzerResult.parseHtml(Unknown Source)
 at org.netbeans.modules.html.editor.api.gsf.HtmlParserResult.root(Unknown Source)
 at org.netbeans.modules.html.editor.gsf.HtmlStructureScanner.scan(Unknown Source)
 at org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(Unknown Source)
 at org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(Unknown Source)
 at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(Unknown Source)
 at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(Unknown Source)
 at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(Unknown Source)
 at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(Unknown Source)
 at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(Unknown Source)
 at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(Unknown Source)
 at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(Unknown Source)
 at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Unknown Source)
Caused: org.netbeans.modules.parsing.spi.ParseException
 at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(Unknown Source)
[catch] at org.netbeans.modules.parsing.api.ParserManager.parse(Unknown Source)
 at org.netbeans.modules.csl.navigation.ElementScanningTask.run(Unknown Source)
 at org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(Unknown Source)
 at org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(Unknown Source)
 at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(Unknown Source)
 at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(Unknown Source)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:679)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu netbeans Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tyler Burton (tylerburtonca) said :
#1

What version of Netbeans? Where did you install it from? What JDK version?

Revision history for this message
oshirowanen yoshigawa (oshirowanen-7) said :
#2

>> What version of Netbeans?

NetBeans 7.0.1.

>> Where did you install it from?

straight from the Ubuntu 12.04 repositories.

>> What JDK version?

The default JDK straight from the Ubuntu Repositories i.e.
java 1.6.0_24: java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode).

Revision history for this message
oshirowanen yoshigawa (oshirowanen-7) said :
#3

I forgot to add that when I get this error, it renders netbeans useless and I have to restart it to get it working again.

Revision history for this message
Tyler Burton (tylerburtonca) said :
#4

Hmm not sure if this really solves your problem or not but according to this bug report (https://netbeans.org/bugzilla/show_bug.cgi?id=212328) it has since been fixed in a more recent version of Netbeans. Personally whenever I do development in Netbeans I always grab the installer right from http://www.netbeans.com/downloads/index.html. Just remember to run the installer as sudo if you want it installed for all users.

Can you help with this problem?

Provide an answer of your own, or ask oshirowanen yoshigawa for more information if necessary.

To post a message you must log in.