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

Threadpool for scanning gets stuck in case one of the url is incorrect #393

Open
HenningL opened this issue Apr 7, 2022 · 0 comments
Open

Comments

@HenningL
Copy link

HenningL commented Apr 7, 2022

Given a list of urls to scan with a threadpoolexecutor and one of the url is incorrect:

`Caused by: org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file: .../$%7Bmaven.dependency.classpath%7D]
either use fromURL(final URL url, final List urlTypes) or use the static setDefaultURLTypes(final List urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
at org.reflections.vfs.Vfs.fromURL (Vfs.java:109)
at org.reflections.vfs.Vfs.fromURL (Vfs.java:91)
at org.reflections.Reflections.scan (Reflections.java:240)
at org.reflections.Reflections$1.run (Reflections.java:198)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)

The threadpool seems to not get destroyed and the execution gets stuck instead of either ignoring or finishing with error.

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

1 participant