JavaScript validator throws a NullPointerException in Eclipse

I encode some PHP files in the Eclipse IDE and I keep getting the error “Building Workspace ran into a problem” - Workspace is the name of my project area.

When I click the "details" link, I get this

Errors occurred during the build. Errors running builder 'JavaScript Validator' on project 'Ullman'. java.lang.NullPointerException 

As already mentioned, I work in PHP, so I don’t know why it is trying to configure JavaScript Validator. I can’t figure out how to stop this from happening. Somebody knows?

I have no experience, so please provide a detailed answer if you can.

+49
eclipse
Apr 12 2018-11-11T00:
source share
13 answers

Project-> Properties-> Builders then disable 'Javascript Validator

http://blindcoder.wordpress.com/2011/03/04/javascript-validator-problem-in-eclipse/

+76
Mar 09 '13 at 22:44
source share

I just ran into this problem myself, and the previous accepted answer didn't help. The problem is not the validator, this is the assembly . To fix, go to Project → Properties → Builders, then turn off the JavaScript Validator feature. Since you are working with PHP, your assembly gets confused when you try to validate a PHP file using JavaScript authentication.

The error message does not actually do anything that just annoys very quickly.

http://blindcoder.wordpress.com/2011/03/04/javascript-validator-problem-in-eclipse/

+117
Jan 06 2018-12-12T00:
source share

UPDATE: Cleanshooter's answer is better for PHP-specific projects. I leave this answer as it is useful for people who encounter an error in JavaScript files due to crashes in the JavaScript parser.

You can disable the JavaScript check part using Eclipse -> Preferences -> JavaScript -> Validator -> Errors / Warnings and unchecking Enable JavaScript semantic check

+9
Apr 12 '11 at 4:20
source share

I am using the Spring Source Tool Suit IDE IDE and I fixed this problem by following these steps:

  • select the project and select the property option.
  • Choose JavaScript> Include Path, and select the Source tab.
  • Click the "Edit" button and click the "Add" button.
  • Now enter the value for the inclusion template as * .js, then click OK and Finish.

    I solved my problem this way. Please let me know if anyone has any other way to solve this problem.

+5
Feb 27 '14 at 5:26
source share

Just go to Project -> Build Automatically and disable this option. you still don’t need PHP because you don’t need to build anything ... but this solves the NPE thrown with every save or action f5

+3
Jun 15 '12 at 7:22
source share

For those of you who are experiencing issues with “dynamic web projects,” you may find that none of the other answers work.

I tried all the options listed here and found that disabling the "Graphic Builder Validation Projects" solved the problem.

right click on the project -> Builders -> uncheck "Graphic builder of project validation"

+3
May 7 '13 at
source share

I ran into the same problem and the above suggestions did not resolve it completely until I ran into this post @ How to remove javascript validation from my eclipse project?

But even after everything was done (as indicated in another mailing URL), I had to manually delete the tabs for the "Problems" tab, such as "Errors" and "Warning", and only it completely disappeared, at least at Eclipse Juno.

Hope this helps someone.

+1
Jan 23 '13 at 9:27
source share

This is a problem that has occurred to me in some Web Dynamic projects. Every time a 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 first glance, it seems that the Javascript validator throwing a NullPointerException , so you will probably try to disable Client-side Javascript validation from Project->Properties->Validation ... but I tell you that there is no problem, you should go to

Project->Properties->Builders

then disable the Javascript validator .

The problem is resolved.

+1
Dec 12 '13 at 7:22
source share

Project-> Properties-> Builders then disable 'Javascript Validator, this fixed my problem: Errors occurred during build. Runtime error builder 'JavaScript Validator' in project 'xxx'. 29th

+1
Jan 13 '14 at 8:53
source share

This is a problem that has occurred to me in some Web Dynamic projects. Every time a project is built, I get this error:

"Errors that occurred during assembly. The validator in the project is" some project ". Java.lang.NullPointerException"

At first glance, it seems that the Javascript validator is throwing a NullPointerException, so you will probably try to disable client-side Javascript validation from Project-> Properties-> Validation ... but I tell you that there is no problem there,

you should go to Project-> Properties-> Builders and then disable Javascript Validator.

The problem is resolved. Indeed, this is not a real problem, but the message is a little annoying because it happens in every assembly

0
Feb 19 '13 at 12:30
source share

in my case, right-clicking on the project -> "Project-> Properties-> Builders, and then disable" Validation "for me.

0
Apr 25 '13 at 14:19
source share

I had the same error. This happened after adding the D3 js libraries.

My decision to get rid of it:
-I moved the libraries to the server, and the html page will deliver them from there.
-Removed libraries from the project, because they are not needed there.

The problem is resolved for me.

Recommandation:
- delete the last added libraries from your project and see if the error message disappears.
- dynamically receive libraries (in html) from the server, but do not have them in your project.

It does not solve the root of the problem, but helps to get rid of immediate disappointments.

Good luck.

0
Aug 05 '13 at 17:35
source share

Disabling Javascript Validator is not an ideal solution. It just hides the problem.

What worked for me is:

Switch to a new or different workspace from File> Switch Workspace, and then import the existing project into this new workspace.

The problem is resolved.

0
Dec 14 '13 at 10:14
source share



All Articles