Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338844 - Errors occurred during the build.
Summary: Errors occurred during the build.
Status: CLOSED DUPLICATE of bug 319958
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.3   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 14:13 EST by David CLA
Modified: 2011-03-04 12:25 EST (History)
1 user (show)

See Also:


Attachments
requested stack trace from workspace log (76.49 KB, text/plain)
2011-03-03 20:51 EST, David CLA
no flags Details
Build Lauch Configuration (626 bytes, application/xml)
2011-03-04 12:09 EST, David CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David CLA 2011-03-03 14:13:27 EST
Errors occurred during the build.Errors running builder 'JavaScript Validator' on project java.lang.NullPointerException


-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
Comment 1 Michael Rennie CLA 2011-03-03 14:55:01 EST
(In reply to comment #0)
> Errors occurred during the build.Errors running builder 'JavaScript Validator'
> on project java.lang.NullPointerException
> 
> 
> -- Configuration Details --
> Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
> Installed Features:
>  org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L

Do you have the stack trace?
Comment 2 David CLA 2011-03-03 15:22:39 EST
(In reply to comment #1)
> (In reply to comment #0)
> > Errors occurred during the build.Errors running builder 'JavaScript Validator'
> > on project java.lang.NullPointerException
> > 
> > 
> > -- Configuration Details --
> > Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
> > Installed Features:
> >  org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
> 
> Do you have the stack trace?

 The error is not create during a debug, it occurs during any startup or rebuild.  Is there a to provide this for you ( tell me how via navigation eg.  menu->sub1->sub2 )
Comment 3 David CLA 2011-03-03 15:31:02 EST
If I go into Project->Properties->Builder (and uncheck JavaScript Validator) the problem goes away, however the default is to validate and is desired.  Advice?  Is this a bug?  I am running Win7 64 and did not have this problem on Vista 32.
Comment 4 Michael Rennie CLA 2011-03-03 16:23:14 EST
(In reply to comment #2)
>  The error is not create during a debug, it occurs during any startup or
> rebuild.  Is there a to provide this for you ( tell me how via navigation eg. 
> menu->sub1->sub2 )

Sorry I should have been more clear, can you attach (paste) the stack trace from the error log in the bug? You should be able to get the traces from the Error Log view (within Eclipse) or from the .log file itself in your workspace location (found in <path to your workspace>/.metadata/.log).
Comment 5 David CLA 2011-03-03 20:51:12 EST
Created attachment 190336 [details]
requested stack trace from workspace log

for Michael Rennie
Comment 6 Michael Rennie CLA 2011-03-04 10:13:38 EST

*** This bug has been marked as a duplicate of bug 319958 ***
Comment 7 David CLA 2011-03-04 11:58:15 EST
Michael, the following 2 snippets COMPARE the logs errors for this Bug 338844 (builder launch configuration) and Bug 319958 (Errors running builder) you say is a dupe.  I don't see the same problem (ie. duplicate bug), and don't see the FIX?  Do you know the fix for my bug to help me out a little more so I can resolve it?

The FIX for 319958 only say's ...

"I think I found the root cause of exception
cuz one of our js have bad encoding"




---------- this bug 338844 ------------- 
!ENTRY org.eclipse.core.resources 4 2 2011-02-09 14:09:14.337
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: The builder launch configuration could not be found.
java.lang.NullPointerException
----------

COMPARED TO

---------- Bug 319958 you say is a duplicate ------------
!ENTRY org.eclipse.core.resources 4 75 2010-07-15 17:02:00.363
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.wst.jsdt.core 4 75 2010-07-15 17:02:00.363
!MESSAGE Errors running builder 'JavaScript Validator' on project 'ePMM'.
!STACK 0
java.lang.NullPointerException
----------------------------------
Comment 8 David CLA 2011-03-04 12:09:06 EST
Created attachment 190414 [details]
Build Lauch Configuration

Is it possible that the build is expecting a directory D:/home/antTest/ which does not exist?  D: drive is my CD-ROM drive ..
Comment 9 David CLA 2011-03-04 12:25:30 EST
I deleted the project and re-created it.  I don't see the error now, so believe it was as the error suggested, that the issue was a configuration file.  By deleting the project from Eclipse, it deletes all config files.  Re-creating creates fresh configs, and this seems to be the FIX.  Please note, is not about BAD ENCODING and is bug you say is a dupe.  I hope I help others with my comments and fix description ...  IF YOU GET THIS ERROR, RE-CREATE YOUR PROJECT AND SHOULD FIX THE PROBLEM.