-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in some case #461
Comments
Hi @wallaroo - thanks for raising the issue. Do you know in which situations this can be null? Trying to understand the root cause. |
Hi @berndruecker, as mentioned by @wallaroo, the fix in #462 doesn't actually address why L71 returns a null array. We have now had two support tickets for this issue. Is it possible that it is not thread safe to use |
Hi @daniel-ewing, maybe one of the support tickets is from us. We are now experiencing the same problem in the cluster. Locally there is no problem, in the AWS EKS cluster we get an incident with the following error message every time a worker is started:
We are currently using SpringBoot 3.1.4, locally OpenJDK 20, in the cluster probably Correto, Camunda 8.2.13 and Spring-Zeebe 8.2.4. |
@1nb0und can you have a look? I know you mentioned digging into SpringBoot version compatibility today. |
Hi, we also encountered this issue while trying to upgrade from Spring Boot 3.1.5 to 3.2.0 and therefore from spring-boot-starter-camunda from 8.3.1 to 8.3.4. We can reproduce this issue in our process tests and it is currently preventing us from updating to Spring Boot 3.2.0. |
@sam0r040 Can you put some stacktrace that you were getting? |
Sure:
|
The error is happening because Simple workaround is to use compileArgs tasks.named('compileJava').configure {
options.compilerArgs = ['-parameters']
} |
@backslash47 is correct. The issue can be solved by specifying of javac option "-parameters". In IntelliJ it can be done by by Settings > Build, Execution, Deployment > Compiler > Java Compiler > Additional command line parameters (as mentioned in https://stackoverflow.com/questions/39217830/how-to-use-parameters-javac-option-in-intellij). |
It appears we encountered this issue when Spring Boot in this project was baselined to 3.2 and here are the PRs associated with it and the corresponding docs for the new flag has been added Thank you @backslash47 and @janmas |
I can confirm that enabling method parameters metadata via the |
where do we specify this in eclipse? anyone? Thanks |
@MMusaTR |
I'm using gradle, I've specified following in build.gradle but still getting the NPE - |
@MMusaTR did you try following? tasks.withType(JavaCompile) { options.compilerArgs.add("-parameters") } |
I've also seen that NPE thrown in my Java client (spring-client-root v 8.4.0). It would be helpfull to detect faulty java class code ahead before it comes to NPE. That way some meanigfull error message could be thrown instead of NPE. |
Fix provided in docs (add -parameters as compiler option) + error happens during init now |
io.camunda.zeebe.spring.client.bean.MethodInfo#getParameters and io.camunda.zeebe.spring.client.bean.MethodInfo#getParametersFilteredByAnnotation methods can throw a NullPointerException when org.springframework.core.LocalVariableTableParameterNameDiscoverer#getParameterNames(java.lang.reflect.Method) returns null
The text was updated successfully, but these errors were encountered: