9 Replies Latest reply on Dec 10, 2012 2:25 AM by Jesper Skov

    CDI fails when adding a new folder

    Jesper Skov Newbie

      We have a project where the CDI builder tanks when creating a new empty folder.

       

      I haven't looked in earnest at the project to see if it is setup in some weird and wonderful way that actively encourages that NPE. But if so, it could probably be presented nicer

       

      !MESSAGE Errors running builder 'CDI (Context and Dependency Injection) Builder' on project 'jb.it.jquery.ext.web'.
      !STACK 0
      java.lang.NullPointerException
           at org.jboss.tools.common.java.impl.AnnotationDeclaration.validateNamedValue(AnnotationDeclaration.java:136)
           at org.jboss.tools.common.java.impl.AnnotationDeclaration.validateNamedValue(AnnotationDeclaration.java:129)
           at org.jboss.tools.common.java.impl.AnnotationDeclaration.resolveMemberValue(AnnotationDeclaration.java:119)
           at org.jboss.tools.common.java.impl.AnnotationDeclaration.setDeclaration(AnnotationDeclaration.java:50)
           at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.addAnnotation(AbstractMemberDefinition.java:112)
           at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.init(AbstractMemberDefinition.java:104)
           at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.init(MethodDefinition.java:61)
           at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
           at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.setMethod(MethodDefinition.java:48)
           at org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition.init(TypeDefinition.java:70)
           at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
           at org.jboss.tools.cdi.internal.core.impl.definition.AbstractTypeDefinition.setType(AbstractTypeDefinition.java:69)
           at org.jboss.tools.cdi.internal.core.scanner.CDIBuilderDelegate.build(CDIBuilderDelegate.java:79)
           at org.jboss.tools.cdi.internal.core.scanner.CDIBuilderDelegate.build(CDIBuilderDelegate.java:48)
           at org.jboss.tools.cdi.core.CDICoreBuilder.invokeBuilderDelegates(CDICoreBuilder.java:326)
           at org.jboss.tools.cdi.core.CDICoreBuilder.fullBuild(CDICoreBuilder.java:261)
           at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:221)
           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:53)