Javascript Validator problem in Eclipse

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….

79 thoughts on “Javascript Validator problem in Eclipse

  1. Rudiger April 13, 2011 / 9:54 pm

    Fuck Eclipse and their JavaScript Validator. It’s worse than useless.

    • Rich July 26, 2011 / 11:20 am

      Ha ha very well said!!!

    • jahbini March 27, 2012 / 7:05 am

      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.

    • jahbini March 27, 2012 / 7:07 am

      Amen. Error messages like this are worse than useless. Like a ball and chain for developers.

  2. Ray April 14, 2011 / 1:47 pm

    Thanks. This is the solution location from a Google search. About 10 entries prior to this one was returned by Google.

  3. theo September 9, 2011 / 5:33 pm

    Wow, this error was getting to me. Thanks for the help!

  4. Bhaskar September 30, 2011 / 7:11 pm

    Thanks allot. It worked 😀

  5. kyuwha October 5, 2011 / 11:10 am

    this problem is getting me, join a company at first day, thank you for the help

  6. jyson October 6, 2011 / 10:17 pm

    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.

    • Eduardo Yáñez Parareda October 7, 2011 / 9:15 am

      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.

    • chakravarthi January 19, 2012 / 2:25 pm

      wordcount_cleanregex’, /[0-9.(),;:!?%#$¿'”_+=\\\/-]*/g
      use this exp and no need to worry about these false errors….

  7. Dave November 3, 2011 / 2:12 am

    Fantastic, quick and direct.

  8. Faisal Feroz November 15, 2011 / 5:32 pm

    Thanks, this has been annoying me.

  9. Andrew Theiss November 22, 2011 / 8:14 pm

    Thanks man, that was annoying. 2 sec fix ftw!

  10. anandpatadiya November 25, 2011 / 6:08 am

    thanx man its mndblwng…..i was disturbed from two days for this error…

  11. Tzvi December 1, 2011 / 2:43 pm

    Thanks, This is what I was looking for!

  12. Jignesh December 30, 2011 / 12:48 pm

    Thanks

  13. cbhaskaravignesh January 2, 2012 / 9:41 pm

    I disabled it in the builders but now am not able to build the project at all. am stuck with this.

  14. aodto January 6, 2012 / 4:20 am

    this post got me solved. thanks

  15. Curdo January 9, 2012 / 4:20 pm

    Thanks for this. It worked!

  16. vijay January 25, 2012 / 7:18 am

    thanks alot, it was worked…………….!!!

  17. Liz February 13, 2012 / 8:28 pm

    What if you do want the validator on for js? Then what? Tx!

    • Eduardo Yáñez Parareda February 14, 2012 / 11:26 am

      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.

  18. Sandro Chierici February 27, 2012 / 11:58 am

    Thanks, very useful post. Js problems has been annoying me from a long time.
    sandro

  19. olavocno February 29, 2012 / 10:35 pm

    interesting. only happened this in big projects. But, thanks!!

  20. Pankaj March 14, 2012 / 4:52 pm

    Thanks a lot, it worked like butter.

  21. Hernan April 18, 2012 / 2:29 am

    Thanks…… a lot!!

  22. biyya April 19, 2012 / 7:48 pm

    Thanks a bunch. I don’t think even MyEclipse folks know a way around this. lol thanks again.

  23. TetraDog April 26, 2012 / 8:56 pm

    One year later and still google’s top. I nominate Blind Coder for sainthood.

  24. notyourcousintim May 5, 2012 / 5:21 am

    Thanks a lot man, that error was annoying as hell!

  25. elDuke May 9, 2012 / 4:34 pm

    Thanks! This was so annoying!

  26. Bala May 18, 2012 / 7:58 am

    Thanks a lot …. u really saved my life….

  27. awdawd May 30, 2012 / 9:32 am

    Thanks, I almost kicked the computer .. that messages is simply f****d up.

  28. edbe June 11, 2012 / 8:22 pm

    thanks. i have looking for this solution for two weeks

  29. Raghu June 20, 2012 / 12:11 pm

    Thank you very much, i wasted lot of time for the solution

  30. srini June 23, 2012 / 5:27 pm

    Thank you. It saved my time

  31. subdaimon July 8, 2012 / 3:12 am

    Thx, you just saved my laptop from being thrown out the window. The JS Validator is a real POS

  32. icastel August 4, 2012 / 6:47 am

    Sonnaffabiatch! That was it! LOL

  33. julien October 5, 2012 / 6:53 pm

    Thanks a lot.

  34. ali kemal November 12, 2012 / 5:28 pm

    thanks very much…
    It was a really annoying message…

  35. Alexander December 12, 2012 / 5:44 pm

    ეკლიპსის Javascript ვალიდატორს შევეცი

  36. Vikash Agarwal December 20, 2012 / 6:12 am

    thanks for the tip ….

  37. Ponraj Suthanthiramani January 3, 2013 / 7:22 am

    Cool, it worked for me, it was frustrating me for a week, now i am settled… thx

  38. Artur January 20, 2013 / 11:22 am

    best solution !

  39. Aitor January 30, 2013 / 10:15 am

    It works! thanks! gracias!

  40. nitish pandey March 2, 2013 / 3:33 pm

    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 🙂

  41. John O. Morales April 4, 2013 / 11:29 am

    Thanks a lot bro!

  42. gesu April 16, 2013 / 9:50 am

    its working! Thanks a lot ! validator is useless

  43. thana May 23, 2013 / 8:24 am

    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..

  44. fredfred May 29, 2013 / 6:37 pm

    Thanks a lot! That helped after messing around for over an hour with workspace re-builds and validation settings.

  45. Gaurav June 21, 2013 / 9:15 am

    Thanks! Finally got rid of the annoying error alerts!

  46. Frank Kim June 21, 2013 / 3:37 pm

    Thank you! I’ve been living with that error for too long. 🙂

  47. Praveen June 27, 2013 / 3:35 pm

    Thanks a lot …………….. you saved my night………

  48. juju September 15, 2013 / 12:42 pm

    Great ! Easy to do but so confortable after!!!

  49. Jay September 24, 2013 / 5:21 pm

    Thank you sooooo much 🙂

    • Harsh Mehta November 13, 2013 / 10:13 am

      Thanks dude for the help. I really appreciate it 🙂

  50. Steve November 26, 2013 / 1:08 pm

    If the problem still persists – good old turn in on and back off me (in builders) seemed to do the trick

    • shivani August 21, 2015 / 8:30 am

      thanks .. this helped me a lot

  51. pinar December 5, 2013 / 3:22 pm

    very helpful thanks

  52. thiruk December 11, 2013 / 10:50 am

    thanks.. this helped me out.. 🙂

  53. saranya July 18, 2014 / 2:21 pm

    Thanks buddy

  54. Sri Krishna Chaitanya September 10, 2014 / 7:26 pm

    helped me a lot Hare Krishna!

  55. Peter Drinnan September 16, 2014 / 8:19 pm

    I find that with the new frameworks such as Knockout and Angular, the Javascript validator is totally useless anyway.

  56. Jay Soni December 29, 2014 / 2:31 pm

    thanks alot it worked

  57. Peter Tutor February 27, 2015 / 2:22 pm

    Thanks man! After each auto-rebuilding comes this annoying message. I have to turn it off!
    Thanks for the solution.

  58. Gergely November 18, 2015 / 2:58 pm

    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.

  59. lova February 15, 2016 / 5:56 pm

    very good answer .. thank you

  60. Antony Nalkara April 4, 2016 / 7:19 am

    Thanks,That worked

  61. biang August 30, 2016 / 4:06 am

    there is no builders myeclipse

Leave a reply to thiruk Cancel reply