Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Java6 processor #824

Description

@andro1dDeveloper

My procect crashes with the following error:
unexpected error: please report an issue on AndroidAnnotations, with the following content: java.lang.NullPointerException.
Annotation Problem (Java6 Processor)

Activity

  1. DayS commented on Dec 23, 2013

    @DayS
    Contributor

    Could you provide us more information ? Such as :

    • a stacktrace
    • The version of AA you're using (if 3.0-SNAPSHOT, please look for an androidannotations.log file in your output folder)
    • If you're using a build tool (maven, gradle, ant, ...) or directly an IDE (Eclipse or IntelliJ) to build your project
  2. andro1dDeveloper commented on Dec 23, 2013

    @andro1dDeveloper
    Author

    thx for your answer.

    I am using 2.7.1. No build tool.

    stacktrace:

    Unexpected error. Please report an issue on AndroidAnnotations, with the following content: java.lang.NullPointerException at com.googlecode.androidannotations.helper.AnnotationHelper.extractAnnotationResIdValueParameter
    (AnnotationHelper.java:272) at com.googlecode.androidannotations.helper.IdValidatorHelper.resIdsExist(IdValidatorHelper.java:45) at com.googlecode.androidannotations.validation.OptionsMenuValidator.validate(OptionsMenuValidator.java:52)
    at com.googlecode.androidannotations.validation.ModelValidator.validate(ModelValidator.java:56) at com.googlecode.androidannotations.AndroidAnnotationProcessor.validateAnnotations(AndroidAnnotationProcessor.java:414) at
    com.googlecode.androidannotations.AndroidAnnotationProcessor.processThrowing(AndroidAnnotationProcessor.java:364) at com.googlecode.androidannotations.AndroidAnnotationProcessor.process(AndroidAnnotationProcessor.java:341) at
    org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139) at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121) at
    org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159) at
    org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134) at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:809) at
    org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:428) 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:629) at
    org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203) at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258) at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:362) at org.eclipse.core.internal.resources.Project$1.run(Project.java:545) at
    org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:524) at org.eclipse.core.internal.resources.Project.build(Project.java:115) at
    com.android.ide.eclipse.adt.internal.sdk.Sdk$3$1.run(Sdk.java:1207) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

  3. DayS commented on Dec 23, 2013

    @DayS
    Contributor

    It's a very well-known issue fixed in 3.0 which should be release very soon. You have an inconsistent state in your build generally due to an id refactoring in layout. After that, incremental compilation of your IDE has been triggered and your code was always pointing to the old id so the build failed.
    You should check your code and layout to find and fix the wrong id.

    Please see PR #617 for more information

  4. andro1dDeveloper commented on Dec 23, 2013

    @andro1dDeveloper
    Author

    thx for this comment. I will check this.

  5. andro1dDeveloper commented on Dec 23, 2013

    @andro1dDeveloper
    Author

    i tried to get a previos version (svn) but the it isnt working.
    Dont know what to now.

  6. DayS commented on Jan 3, 2014

    @DayS
    Contributor

    Did you tried with AA 3.0 ? This exception shouldn't be thrown anymore since this version.

  7. andro1dDeveloper commented on Jan 3, 2014

    @andro1dDeveloper
    Author

    yes, I did - but it didnt solve my problem.
    I comment out every annotation, clean and build and when I removed the comments it worked.
    I was / I am very disappointed with the way I have to solve this problem...

  8. DayS commented on Jan 3, 2014

    @DayS
    Contributor

    If you're now in 3.0 and this happens again, could you send us the generated androidannotations.log file to help us resolve this ?

  9. andro1dDeveloper commented on Jan 3, 2014

    @andro1dDeveloper
    Author

    sure, I will. Thx for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions