Skip to content

Conversation

@rbygrave
Copy link
Member

@rbygrave rbygrave commented Jan 16, 2025

Drop to log at WARN level when we catch FilerException such that Quarkus dev mode / hot reload works

The effective change here is to catch FilerException and log at WARN rather than ERROR:

} catch (FilerException e) {
  processingContext.logWarn(null, "FilerException trying to write EntityClassRegister: " + e);
}

…ter with Quarkus dev mode / hot reload #3541

Drop to log at WARN level when we catch FilerException such that Quarkus dev mode / hot reload works
@rbygrave rbygrave added the bug label Jan 16, 2025
@rbygrave rbygrave added this to the 14.8.2 milestone Jan 16, 2025
@rbygrave rbygrave merged commit f83da15 into master Jan 16, 2025
1 check passed
@rbygrave rbygrave deleted the feature/3542-quarkus branch January 16, 2025 03:46
@spinachomes
Copy link
Contributor

spinachomes commented Feb 10, 2025

same error #3539,first build(command+ F9) build normal,but second build will throw FilerException,after upgrade to 15.8.2, FilerException is still exist with jdk 17,FilerException is resoveld but get new error:java: java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null with jdk 21,

@rbygrave
Copy link
Member Author

Sorry, can you be a lot more explicit about what is going on so that it's really really obvious to me. You mention 2 JDKs, and 2 exceptions. Also include the exact compiler output, also state explicitly if you are using Quarkus dev mode.

but second build will throw FilerException

Include the output / error.

after upgrade to 15.8.2, FilerException is still exist with jdk 17,

Include the output / error. We are looking to see if this is now a WARNING and not an ERROR [which is what this change was].

get new error:java: java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null with jdk 21,

Include all the output and be explicit as to whether this is related to Quarkus dev mode or not.

Thanks.

@spinachomes
Copy link
Contributor

spinachomes commented Feb 10, 2025

I resolved this problem, the generated source root dir is wrong after upgrade latest idea,i delete one of the duplicated generate source roots resoled the problem
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[querybean-generator] FilerException trying to write EntityClassRegister with Quarkus dev mode / hot reload

3 participants