You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
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)
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)
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.
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...
Activity
DayS commentedon Dec 23, 2013
Could you provide us more information ? Such as :
andro1dDeveloper commentedon Dec 23, 2013
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)
DayS commentedon Dec 23, 2013
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
andro1dDeveloper commentedon Dec 23, 2013
thx for this comment. I will check this.
andro1dDeveloper commentedon Dec 23, 2013
i tried to get a previos version (svn) but the it isnt working.
Dont know what to now.
DayS commentedon Jan 3, 2014
Did you tried with AA 3.0 ? This exception shouldn't be thrown anymore since this version.
andro1dDeveloper commentedon Jan 3, 2014
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...
DayS commentedon Jan 3, 2014
If you're now in 3.0 and this happens again, could you send us the generated
androidannotations.logfile to help us resolve this ?andro1dDeveloper commentedon Jan 3, 2014
sure, I will. Thx for your support.