NoSuchFieldError when reading Excel sheet in java
After looking around a bit. I browsed the documentation for APACHE POI, and saw that this was one of the constants (not that i know what that really means).
But eventually, I realized all the tutorials I used were pre-2014.
So I just changed my Maven POM to version 3.11 for both dependencies of apache-poi
, and poi-ooxml
.
Its working now.
I got same error with different constant:
Exception in thread "main"
java.lang.NoSuchFieldError
: RETURN_NULL_AND_BLANK
Googled lot but no answer. I was using apache poi-ooxml
version 3.11. Later I changed to version 3.17. Then it was working fine.
Hope this might helpful someone.