Bug 25256 - Exception in thread "main" java.lang.NoSuchMethodError is recieved when running POI 1.5.1 on w2k 5.x service pack 3
Summary: Exception in thread "main" java.lang.NoSuchMethodError is recieved when runni...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 1.5.1
Hardware: Other All
: P3 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 22:51 UTC by Brian Brewer
Modified: 2005-05-20 03:55 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Brewer 2003-12-05 22:51:00 UTC
Exception in thread "main" java.lang.NoSuchMethodError is recieved when 
running POI 1.5.1 to create a workbook on w2k 5.x service pack 3.  The same 
code works on all higher versions of windoze.

Complete error msg.
Exception in thread "main" java.lang.NoSuchMethodError
        at CreateParamXLS.writeWorkbook(CreateParamXLS.java:99)
        at CreateParamXLS.main(CreateParamXLS.java:30)
Comment 1 Michael Zalewski 2003-12-05 23:40:15 UTC
I run POI on Windows 2k SP 3 without any problems.

Such an error is almost certainly due to not putting 'poi.jar' on the 
classpath, then trying to use a static method. Try putting a debug statement or 
log statement in CreateParamXLS.writeWorkbook(), immediately before and 
immediately after the first access to a POI object. Like this:

   System.out.println( "About to create Workbook");
   Workbook myWorkbook = Workbook.createWorkbook();
   System.out.println( "Workbook created");

I bet this will show the first line, but not the second.
If that's your problem, it really isn't a bug.

If you are writing a servlet, remember that poi.jar has to be in the classpath 
of the servlet container. The best way to do this is to make sure that the file 
is in WEB-INF\lib of your .war file.
Comment 2 Avik Sengupta 2005-05-20 11:55:16 UTC
Not a poi bug, sorry.