Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » NPE when performing Project > Clean(Getting NPEs when I try to clean my projects, before building even begins!)
NPE when performing Project > Clean [message #895579] Fri, 13 July 2012 16:19 Go to next message
Wei Wang is currently offline Wei Wang
Messages: 2
Registered: July 2012
Junior Member
Hi, Eclipse is complaining about a NullPointerException when running the builder named 'Validation' on all of the projects in my workspace. This is triggered whenever I do a "clean" operation.

I first noticed it one night after I did an Egit pull and tried to clean. It has been happening ever since on my machine, but not to anyone else in my office.

I was at first using Indigo, but I thought maybe if I did a clean Eclipse install the problem would go away - so I installed Juno and the same error appeared before I even began installing any addons!

Is this a bug? Here is the log:



!ENTRY org.eclipse.core.resources 4 2 2012-07-13 12:09:11.301
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
	at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 2 2012-07-13 12:09:11.324
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
	at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 2 2012-07-13 12:09:11.347
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
	at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 75 2012-07-13 12:09:11.350
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.wst.validation 4 75 2012-07-13 12:09:11.350
!MESSAGE Errors running builder 'Validation' on project 'OceanviewEAR'.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
	at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.wst.validation 4 75 2012-07-13 12:09:11.350
!MESSAGE Errors running builder 'Validation' on project 'OceanviewEJB'.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
	at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.wst.validation 4 75 2012-07-13 12:09:11.351
!MESSAGE Errors running builder 'Validation' on project 'OceanviewWEB'.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
	at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
	at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
	at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Re: NPE when performing Project > Clean [message #973542 is a reply to message #895579] Tue, 06 November 2012 12:23 Go to previous messageGo to next message
Ruben Van Wanzeele is currently offline Ruben Van Wanzeele
Messages: 1
Registered: November 2012
Junior Member
Could you find a solution?
I'm dealing with the same problem.
Re: NPE when performing Project > Clean [message #990597 is a reply to message #895579] Thu, 13 December 2012 11:37 Go to previous messageGo to next message
Enrique  eña is currently offline Enrique eña
Messages: 1
Registered: December 2012
Junior Member
Also happens to me! Event Details at log error

Message:
Errors running builder 'Validation' on project 'xxx'.

Exception Stack Trace:
eclipse.buildId=M20120914-1800
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_ES
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

Error
Thu Dec 13 12:31:52 CET 2012
Errors running builder 'Validation' on project 'gestorwebineco_core'.

java.lang.NullPointerException
at org.eclipse.wst.validation.internal.DependencyIndex.clear(DependencyIndex.java:179)
at org.eclipse.wst.validation.internal.ValManager.clean(ValManager.java:987)
at org.eclipse.wst.validation.internal.operations.ValidationBuilder.newClean(ValidationBuilder.java:300)
at org.eclipse.wst.validation.internal.operations.ValidationBuilder.clean(ValidationBuilder.java:117)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:394)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
at org.eclipse.core.internal.resources.Project.build(Project.java:114)
at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:319)
at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Session Data:
eclipse.buildId=M20120914-1800
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_ES
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

Re: NPE when performing Project > Clean [message #1240856 is a reply to message #895579] Fri, 07 February 2014 06:27 Go to previous message
yujiaao Mising name is currently offline yujiaao Mising name
Messages: 1
Registered: February 2014
Junior Member
go to your workspace folder and clean it like this:

~/workspace/.metadata/.plugins$ rm -rf org.eclipse.wst.*


I hope this will help, at least it work in my case.
Laughing
Previous Topic:BASH plug-in for eclipse on Windows 7
Next Topic:Eclipse Runtime Parameters --pluginCustomization for an RPT Preference Change
Goto Forum:
  


Current Time: Thu Oct 30 13:10:18 GMT 2014

Powered by FUDForum. Page generated in 0.05409 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software