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 259153

Summary: Annotation Processors fail when compiling with IntelliJ Idea
Product: apisupport Reporter: j.boesl
Component: HarnessAssignee: pgebauer <pgebauer>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description j.boesl 2016-05-06 16:43:52 UTC
LayerGeneratingProcessors like ServiceTabProcessor are failing when compiling with IntelliJ Idea.
On console it says: 'Error:(81, 28) java: Cannot find resource org/netbeans/modules/db/explorer/node/Bundle.properties'. By debugging the processor I found out that the real exception is: 'Attempt to reopen a file for path /home/a/j.boesl/p/0.0/ao/modules/nb-ide/org-netbeans-modules-db/target/classes/org/netbeans/modules/db/explorer/node/Bundle.properties'. It seems the processor tries to open the file for writing while it is still in use.

At https://issues.jenkins-ci.org/browse/JENKINS-11739 the issue was encountered, too. Jesse Glick noted that the processor might need to queue its work till 'processingOver' is 'true' (https://issues.jenkins-ci.org/browse/JENKINS-11739?focusedCommentId=166119&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-166119).