-
Notifications
You must be signed in to change notification settings - Fork 71
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
ucar.nc2.filter.UnknownFilterException: Unknown filter - v5.6.0 #1382
Comments
|
NetCDF-java's FilterProviders. Here is the full trace: |
Thanks for sending that. I am not aware of any changes between version 5.5.3 and 5.6.0 that may have caused this issue. And I am not yet able to reproduce this behavior. Just to be sure I am testing the same situation:
|
|
Thanks for checking that. I don't know how it's possible that your |
the pom.xml:
Expanding the jar I see the services in the META-INF of the cdm-core jar. It seems like the SPI is not working when bundled. As mentioned previously this works when ran in IDE with all jars on class path but when we create our jar it gets these issues where it cannot find the Filters. We do not want to shade our jar to navigate around this. |
Bump on this. |
Following up on this? Is there anything else we can do help get around this issue? |
Hi @jacobwentzib, sorry for the delay getting back to this. I have looked at the cdm-core-5.5.3.jar and cdm-core-5.6.0.jar and see no differences with respect to the filter providers or class path. I have also tried using a jar execution of cdm-core-5.6.0.jar and am unable to reproduce your issue, the filters do get loaded. Can you confirm there are no other environmental differences between your testing of 5.5.3 and 5.6.0? Can you also test with our 5.6.1-SNAPSHOT version? |
Not ideal, but maybe as a workaround, you can try copying this into your own |
Versions impacted by the bug
5.6.0 - Latest
Environment:
UCAR Library Version: cdm-core 5.6.0
Java Version: 21
What went wrong?
Recently upgraded to 5.6.0 and see the following exception being thrown where the ServiceLoader is unable to load Filters properly.
netcdf-java/cdm/core/src/main/java/ucar/nc2/filter/Filters.java
Line 80 in 42186c7
Once we downgrade back to 5.5.3 everything works properly.
Has there been any changes to classpath or anything else that could be causes this issue? We are seeing this isolated to jar executions but IDE development with target classes runs properly.
We have created a custom ServiceLoader within our application and can see the resources being found.
Relevant stack trace
Being invoked from:
Variable.class:
Error throw from above link:
java.io.IOException: ucar.nc2.filter.UnknownFilterException: Unknown filter: no filter found with id 2
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct
The text was updated successfully, but these errors were encountered: