Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit f83390d

Browse files
Link raised issue.
1 parent 61c704b commit f83390d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# query-bean-generator-issue
22

3-
This project illustrate an issue with the ebean query bean generator. Issue as of `ebean` version `15.8.2` can be reproduced by running `mvn compile` on this example project.
3+
This project illustrate an issue with the ebean query bean generator. Issue as of `ebean` version `15.8.2` can be reproduced by running `mvn compile` on this example project. Issue has been raised at ebean-orm/ebean#3582.
44

55
When generating querybeans along side specific other annotation processors (in this case [manifold-exceptions](https://github.com/manifold-systems/manifold/tree/master/manifold-deps-parent/manifold-exceptions)), the `querybean-generator` logs an error while trying to write `embedded.example.EbeanEntityRegister` and fails the build (error details below).
66

@@ -47,4 +47,4 @@ With `manifol-exception` added to the path processors, the querybeans generation
4747
[INFO] ------------------------------------------------------------------------
4848
```
4949

50-
The stack trace suggests that this issue happens when the underlying `JavacFiler` is trying to log the exact same `[WARNING]` observed above when running `querybean-generator` version `15.8.2` without `manifold-exceptions` during `JavacFiler.createSourceOrClassFile`. When attempting this, the logging framework found that its `DeferredDiagnosticHandler`'s `deferred` queue is `null` and threw an `NPE` which was captured and formatted into the `[ERROR]` seen above. A quick look at the code suggests that `deferred` queue is only set to `null` when `DeferredDiagnosticHandler.reportDeferredDiagnostics` is called to prevent accidental ongoing use.
50+
The stack trace suggests that this issue happens when the underlying `JavacFiler` is trying to log the exact same `[WARNING]` observed above when running `querybean-generator` version `15.8.2` without `manifold-exceptions` during `JavacFiler.createSourceOrClassFile`. When attempting this, the logging framework found that its `DeferredDiagnosticHandler`'s `deferred` queue is `null` and threw an `NPE` which was captured and formatted into the `[ERROR]` seen above. A quick look at the code suggests that `deferred` queue is only set to `null` when `DeferredDiagnosticHandler.reportDeferredDiagnostics` is called to prevent accidental ongoing use.

0 commit comments

Comments
 (0)