Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Java Builder started failing(Eclipse Java Builder Failing)
Eclipse Java Builder started failing [message #912049] Wed, 12 September 2012 21:21 Go to next message
Matt Stone is currently offline Matt StoneFriend
Messages: 8
Registered: September 2012
Junior Member
I've been using this Eclipse installation for over a year now. All of the sudden the builder started failing. I haven't changed any settings. The only thing could have created this situation is Eclipse had a hard crash and then the builder started producing these NPE's...

!SESSION 2012-09-12 13:40:37.149 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.core.resources 4 2 2012-09-12 13:46:08.705
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
    at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:61)
    at org.eclipse.jdt.internal.compiler.ast.Argument.traverse(Argument.java:160)
    at org.eclipse.jdt.internal.compiler.ast.TryStatement.traverse(TryStatement.java:1080)
    at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java:112)
    at org.eclipse.jdt.internal.compiler.ast.Initializer.traverse(Initializer.java:128)
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1304)
    at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:690)
    at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl.<init>(RoundEnvImpl.java:58)
    at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:148)
    at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134)
    at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:813)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:432)
    at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:364)
    at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:178)
    at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:301)
    at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:60)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:254)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:173)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    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.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.resources 4 75 2012-09-12 13:46:09.643
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.jdt.core 4 75 2012-09-12 13:46:09.643
!MESSAGE Errors running builder 'Java Builder' on project 'cust_Windchill_src'.
!STACK 0
java.lang.NullPointerException
    at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:61)
    at org.eclipse.jdt.internal.compiler.ast.Argument.traverse(Argument.java:160)
    at org.eclipse.jdt.internal.compiler.ast.TryStatement.traverse(TryStatement.java:1080)
    at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java:112)
    at org.eclipse.jdt.internal.compiler.ast.Initializer.traverse(Initializer.java:128)
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1304)
    at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:690)
    at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl.<init>(RoundEnvImpl.java:58)
    at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:148)
    at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134)
    at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:813)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:432)
    at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:364)
    at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:178)
    at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:301)
    at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:60)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:254)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:173)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    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.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


I've downloaded and installed the latest version of Eclipse, and created a new workspace and project. I cannot figure out what's going wrong.

Note that I am using Annotations.

Can anyone help me figure out how to get the builder working again?
Re: Eclipse Java Builder started failing [message #912097 is a reply to message #912049] Wed, 12 September 2012 23:53 Go to previous messageGo to next message
Matt Stone is currently offline Matt StoneFriend
Messages: 8
Registered: September 2012
Junior Member
Figured it out after hours of banging my head.

Eclipse crashed while I was in the middle of writing code. So the code that existed when I restarted Eclipse looked something like this...

public abstract class AbstractAmbassadorQueueTask implements AmbassadorQueueTask{

    // BEGIN: This is where I was working when Eclipse crashed.
    private static SessionListenerIfc l = new SessionListenerAdapter(){
    	
    } // <<< Note the missing semicolon after the last brace.
    // END: This is where I was working when Eclipse crashed.
  
    public AbstractAmbassadorQueueTask() {
        super();
    }
}

When I restarted Eclipse I saw all the compilation NPE's and never thought to look at the code I was working on. I would have expected Eclipse to tell me about the syntax error before recompiling the project.

I discovered the syntax error when I attempted to compile my project via the command line and outside of Eclipse.

IMHO its a bug.
Re: Eclipse Java Builder started failing [message #912101 is a reply to message #912049] Thu, 13 September 2012 00:02 Go to previous messageGo to next message
Matt Stone is currently offline Matt StoneFriend
Messages: 8
Registered: September 2012
Junior Member
What a waste of a day.
Re: Eclipse Java Builder started failing [message #912102 is a reply to message #912097] Thu, 13 September 2012 00:02 Go to previous messageGo to next message
Matt Stone is currently offline Matt StoneFriend
Messages: 8
Registered: September 2012
Junior Member
Rolling Eyes

[Updated on: Thu, 13 September 2012 00:03]

Report message to a moderator

Re: Eclipse Java Builder started failing [message #912140 is a reply to message #912102] Thu, 13 September 2012 02:33 Go to previous messageGo to next message
Matt Stone is currently offline Matt StoneFriend
Messages: 8
Registered: September 2012
Junior Member
I was working on that static listener again (see code above) and had another typo when I saved the file. I saw the NPE again. This time I knew how to fix it.

Definitely a bug.
Re: Eclipse Java Builder started failing [message #912588 is a reply to message #912140] Thu, 13 September 2012 20:12 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Yes, could you please file this bug in bugzilla?
To investigate we'll probably need to know about any annotation processors that you have configured in that project.

Stephan

PS: I'm leaning towards blaming this on APT, because there a scope is being dereferenced without checking for null.
Previous Topic:Deployment assembly: filtering files (fileset)
Next Topic:FTP Synchronization of Dynamic Web Project
Goto Forum:
  


Current Time: Sat Nov 09 04:11:49 GMT 2024

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

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

Back to the top