views:

43

answers:

2

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.

A: 

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.

Henning
A: 

It might be a problem with transitive dependencies or a conflict with existing libraries in the servlet container your deploying in.

Jeroen Rosenberg