java.lang.NoSuchMethodError: org.apache.poi.util.IOUtils.copy(Ljava/io/InputStream;Ljava/io/OutputStream;)
I am trying to read the xmlsx file using poi API, when开发者_开发问答 i execute the code in my local system its executes fine but in server it throws exception
NoSuchMethodError: org.apache.poi.util.IOUtils.copy(Ljava/io/InputStream;Ljava/io/OutputStream;)
i am currently using the latest POI api.
Looks like there also is an earlier version of POI on the classpath in which that method did not exist yet. See this question in the POI FAQ.
It might be a problem with transitive dependencies or a conflict with existing libraries in the servlet container your deploying in.
精彩评论