Win a copy of Cloud Native Transformation: Practical Patterns for InnovationE this week in the Cloud/Virtualization forum
or The Go Workshop in the Go forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

java.lang.NoSuchMethodError for org.apache.poi.hssf.usermodel.HSSFPatriarch.createComment()

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am facing problem when i am downloading excell sheet from servlet, then it is showing following error.


actually no errors are showing when i compiled in weblogic workshop10.3. i am facing this issue at runtime.
please help me if any body knows.......


Thanks in advance.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the version of POI that you are compiling with the same version as POI in the runtime? It seems that the two aren't matching...
 
Komari raj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martijn Verburg, i am using same POI31.jar file at compile time and run time. i hope there is no chance , poi versions will be different at runtime and compile time. Because i deployed war file into weblogic server.

Thanks
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An app server loads libraries from many places, not just from your web app; make sure that there isn't another version of POI somewhere in the common libraries or so.

(Also consider upgrading the POI version you're using to at least 3.2 -and even better, 3.5 or 3.6- those fix many bugs in the HSSF implementation. That's unrelated to this problem, though.)
 
Komari raj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much...........Martijn Verburg,Ulf Dittmer
i found another version of poi2.5.jar file at server side.....
it is working fine when i delete that jar file...

Thanks again...



 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome!
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!