This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228628 - Error in editor even everything compiles OK + AnnotationProcessor
Summary: Error in editor even everything compiles OK + AnnotationProcessor
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1 x64
: P1 normal with 3 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 15:50 UTC by Jaroslav Tulach
Modified: 2017-05-04 12:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2013-04-16 15:50:57 UTC
$ hg clone http://source.apidesign.org/hg/bck2brwsr
$ cd bck2brwsr
$ hg up -C release-0.6

open in NetBeans: javaquery/demo-twitter
clean & build => OK.

Yet there are errors in the editor. First is on line 83 and says it cannot find class TwitterModel. Other errors are of the same kind.

Please help me find what is wrong (probably with my annotation processor).
Comment 1 Jan Lahoda 2013-04-16 19:08:59 UTC
For the record, this is being thrown before the TwitterModel is generated, which is then causing plethora of other problems.
INFO [com.sun.tools.javac.processing.JavacProcessingEnvironment]: Annotation processing error:
java.lang.annotation.IncompleteAnnotationException: org.apidesign.bck2brwsr.htmlpage.api.Property missing element type
        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:72)
        at $Proxy49.type(Unknown Source)
        at org.apidesign.bck2brwsr.htmlpage.PageProcessor$Prprt.typeName(PageProcessor.java:1336)
        at org.apidesign.bck2brwsr.htmlpage.PageProcessor.checkType(PageProcessor.java:1200)
        at org.apidesign.bck2brwsr.htmlpage.PageProcessor.typeName(PageProcessor.java:705)
        at org.apidesign.bck2brwsr.htmlpage.PageProcessor.generateProperties(PageProcessor.java:530)
        at org.apidesign.bck2brwsr.htmlpage.PageProcessor.processPage(PageProcessor.java:330)
        at org.apidesign.bck2brwsr.htmlpage.PageProcessor.process(PageProcessor.java:99)
[catch] at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:810)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:724)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2000(JavacProcessingEnvironment.java:97)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1098)
        at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1235)
        at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1122)
        at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:375)
        at org.netbeans.modules.java.source.indexing.SuperOnePassCompileWorker.compile(SuperOnePassCompileWorker.java:213)
        at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:236)
        at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:161)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:266)
        at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:159)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2472)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$1200(RepositoryUpdater.java:2040)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2364)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2362)
        at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:544)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2362)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:2943)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:3396)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3059)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:5476)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4600(RepositoryUpdater.java:5142)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3$1.run(RepositoryUpdater.java:5401)
        at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:96)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3.call(RepositoryUpdater.java:5397)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$3.call(RepositoryUpdater.java:5393)
        at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
        at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
        at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:5393)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
Comment 2 Jaroslav Tulach 2013-04-17 11:44:33 UTC
Thanks. I'm catching the exception now:
http://source.apidesign.org/hg/bck2brwsr/rev/748dc75f709a

It would still be better if the Nb-Javac thrown the same exception as command line Javac - or better, if both Javacs would throw useful MirroredTypeException instead.
Comment 4 Martin Balin 2016-07-07 07:16:19 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 5 FeyFre 2016-10-12 13:53:51 UTC
I confirm, it reproduces in 8.2. I use projectlombok annotation post-processor in my project(for loggers, getters/setters, constructors), and now 90% of project is red with false error messages.

Have pretty the same exception stacktrace in IDE log as posted here. 

8.0 and 8.1 worked perfectly.
Comment 6 Dusan Balek 2017-05-04 12:33:49 UTC
Unfortunately, I cannot reproduce the problem using Lombok 1.16.16 and current dev build. Setter was correctly generated for the annotated field, no error messages appeared.
Could you please create a simple test case demonstrating your problem with Lombok and attach it to the issue? Thanks.