[GLASSFISH-18862] NPE in logging annotation processor when not doing clean build Created: 03/Jul/12 Updated: 18/Jan/13 Resolved: 18/Jan/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Running the following command on a module which was already built but only one file needed recompilation
resulted in build error decsribed at , but if I do clean install, then it succeeds. So, this is definitely a bug in the annotation processor.
[INFO] Compiling 1 source file to /space/ss141213/WS/gf/trunk/appserver/common/glassfish-naming/target/classes
An annotation processor threw an uncaught exception.
|Comment by naman_mehta [ 03/Jul/12 ]|
Assigning to Sandeep to look into this...
|Comment by michael.cico [ 07/Sep/12 ]|
I've run into what seems like a different manifestation of this. At times I will get errors like the following when running a "mvn install", which can usually be worked around by running a "mvn clean install":
The annotations are defined properly, and as mentioned this goes away with a "clean install".
|Comment by rajendra_inamdar [ 07/Sep/12 ]|
This am able to reproduce this by touching a source file and running mvn install, which resulted in the following (with a change to annotation processor to print stacktrace):
|Comment by sandeep.shrivastava [ 31/Oct/12 ]|
Committed revision 56815 for the logging-annotation-processor which emits a warning message instead of an error when either the LogMessages resource bundle name or set of LogMessageInfo annotations is empty. This should be available when the GlassFish build is revved to 1.3 version of this module.
|Comment by Romain Grécourt [ 03/Dec/12 ]|
Seems like the preprocessor limits the glassfish build.
Since the plugin will likely run against all modules, it could be convenient to provide a way to skip the execution.
A module that wants to skip the execution of the logging plugin could do the following:
|Comment by sandeep.shrivastava [ 18/Jan/13 ]|
Committed revision 58655. Revved the logging-annotation-processor module to version 1.3 which includes the fix to support incremental build. The build output contains a META-INF/logmessages/LogMessagesMetadata.properties file which includes the name of the package for the LogMessages.properties resource for the module that is used when not building from scratch.