This is a problem that has happened to me on some Web Dynamic projects. Every time the project is built, I get this error:
“Errors occurred during the build.
Errors running builder ‘JavaScript Validator’ on project ‘some-project’.
java.lang.NullPointerException”
At a first sight it seems that a Javascript validator is throwing a NullPointerException, so probably you will try to disable ‘Client-side Javascript’ validation from Project->Properties->Validation… but I tell you that the problem is not there, you must go to Project->Properties->Builders then disable ‘Javascript Validator’.
Problem solved. Indeed is not a real problem, but the message is a bit annoying because it happens in every build so….
Fuck Eclipse and their JavaScript Validator. It’s worse than useless.
Ha ha very well said!!!
Yup. An error message modal dialog that comes up every 30 seconds and means nothing is why Eclipse designers should be kept on a very short leash. The message give no hint as to where the problem is, and no hint of how to suppress it.
It is only through the power of crowd-sourced IQ points that I can use Eclipse at all.
Amen. Error messages like this are worse than useless. Like a ball and chain for developers.
Thanks. This is the solution location from a Google search. About 10 entries prior to this one was returned by Google.
Wow, this error was getting to me. Thanks for the help!
Thanks allot. It worked 😀
this problem is getting me, join a company at first day, thank you for the help
I got alot of following errors after change to new eclipse.
Syntax error on token “-“, ArrayLiteralHeader expected after this token
Syntax error on token “/”, delete this token
i did as what you suggested. No luck for me.
I think that has nothing to do with disabling Javascript Validator on Builders config. The solution I proposed is not for disabling Javascript errors or so, it’s only for the NullPointerException I mentioned in the article.
wordcount_cleanregex’, /[0-9.(),;:!?%#$¿'”_+=\\\/-]*/g
use this exp and no need to worry about these false errors….
Fantastic, quick and direct.
Thank you, that was the idea 🙂
Thanks, this has been annoying me.
Thanks man, that was annoying. 2 sec fix ftw!
thanx man its mndblwng…..i was disturbed from two days for this error…
Thanks, This is what I was looking for!
Thanks
I disabled it in the builders but now am not able to build the project at all. am stuck with this.
this post got me solved. thanks
Thanks for this. It worked!
thanks alot, it was worked…………….!!!
What if you do want the validator on for js? Then what? Tx!
I’m sorry, I have no idea try another tool that validates your Javascript, but although you don’t have enabled the Builder->Validation, the javascript is validated for syntax errors.
Thanks, very useful post. Js problems has been annoying me from a long time.
sandro
interesting. only happened this in big projects. But, thanks!!
Thanks a lot, it worked like butter.
Thanks…… a lot!!
Thanks a bunch. I don’t think even MyEclipse folks know a way around this. lol thanks again.
One year later and still google’s top. I nominate Blind Coder for sainthood.
Hahaha, never thought this post was going to be so succesful 🙂
Thanks a lot man, that error was annoying as hell!
Thanks! This was so annoying!
Thanks a lot …. u really saved my life….
Thanks, I almost kicked the computer .. that messages is simply f****d up.
thanks. i have looking for this solution for two weeks
Thank you very much, i wasted lot of time for the solution
Thank you. It saved my time
Thx, you just saved my laptop from being thrown out the window. The JS Validator is a real POS
Sonnaffabiatch! That was it! LOL
Thanks a lot.
thanks very much…
It was a really annoying message…
ეკლიპსის Javascript ვალიდატორს შევეცი
Next time in English, please 😉
thanks for the tip ….
Cool, it worked for me, it was frustrating me for a week, now i am settled… thx
best solution !
It works! thanks! gracias!
De nada, hombre, me alegro que te haya funcionado :).
Helped me too!
Thanks so much for this solution. It just kept bugging me and no matter how many changes i tried in all the other options related to JS validation (disable) but it just won’t go away. But now how do we validate JS in eclipse? Some other day 🙂
Thanks a lot bro!
its working! Thanks a lot ! validator is useless
Thank you for this., it helped.,
Its wired this only happened when i first sat the project to js nature, then removed the project and reimported again.,
Could not find any way to remove the js project nature., and set it againg though..
Thanks a lot! That helped after messing around for over an hour with workspace re-builds and validation settings.
obrigado. tks for help!!!
Thanks! Finally got rid of the annoying error alerts!
Thank you! I’ve been living with that error for too long. 🙂
Thanks a lot …………….. you saved my night………
Great ! Easy to do but so confortable after!!!
Thank you sooooo much 🙂
Thanks dude for the help. I really appreciate it 🙂
If the problem still persists – good old turn in on and back off me (in builders) seemed to do the trick
thanks .. this helped me a lot
very helpful thanks
thanks.. this helped me out.. 🙂
Thanks buddy
helped me a lot Hare Krishna!
I find that with the new frameworks such as Knockout and Angular, the Javascript validator is totally useless anyway.
thanks alot it worked
Thanks man! After each auto-rebuilding comes this annoying message. I have to turn it off!
Thanks for the solution.
I have been watching this godforsaken message popping up constantly for half a day. Had no idea how to deal with it. Whoever is responsible for this, I would make him watch the whole Dallas-saga with this message showing up every half a minute just to make things even worse.
very good answer .. thank you
Thanks,That worked
there is no builders myeclipse