简体   繁体   中英

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 .

传递依赖关系可能存在问题,或者与您部署在其中的servlet容器中的现有库存在冲突。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM