Skip to content
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

DefaultManagerConnection.registerUserEventClass fails with NoClassDefFoundError #381

Closed
lauberch opened this issue Feb 7, 2022 · 2 comments

Comments

@lauberch
Copy link
Contributor

lauberch commented Feb 7, 2022

registerUserEventClass() fails with the following exception:

Exception in thread "tims-asterisk-service-196" java.lang.NoClassDefFoundError: Could not initialize class org.asteriskjava.manager.internal.EventBuilderImpl
at org.asteriskjava.manager.internal.ManagerReaderImpl.(ManagerReaderImpl.java:112)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.createReader(ManagerConnectionImpl.java:272)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.registerUserEventClass(ManagerConnectionImpl.java:459)
at org.asteriskjava.manager.DefaultManagerConnection.registerUserEventClass(DefaultManagerConnection.java:294)

This seems caused by an issue in org.regflections

Caused by: org.reflections.ReflectionsException: Scanner SubTypesScanner was not configured
at org.reflections.Store.get(Store.java:39)
at org.reflections.Store.get(Store.java:61)
at org.reflections.Store.get(Store.java:46)
at org.reflections.Store.getAll(Store.java:93)
at org.reflections.Reflections.getSubTypesOf(Reflections.java:404)
at org.asteriskjava.manager.internal.EventBuilderImpl.(EventBuilderImpl.java:56)
... 10 more

As it turns out this is a known issue in org.reflections 0.9.12. See ronmamo/reflections#273
So I tested with org.reflections 0.10.2 and the issues does not happen then.
Could you please update the dependency accordingly?
Thanks!

0001-Update-org.reflection-dependency-to-0.10.2.patch.txt

@rlsutton1
Copy link
Contributor

I've updated the dependency, a release will follow shortly.

@lauberch
Copy link
Contributor Author

Cool, thanks! New version seems to be in maven repos already.

@piotrooo piotrooo closed this as completed Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants