You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Amar Sheth <sh...@gmail.com> on 2013/07/01 13:36:55 UTC

HSSFCell MissingCell Policy Issue

 am trying to read excel both(.xls and .xlsx) using java. I was able to
read xlsx properly. But when I am reading xls file with the following code

final HSSFCell cell = row.getCell(i, Row.RETURN_BLANK_AS_NULL);

I am getting error
java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFRow.getCell(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/hssf/usermodel/


Please help. I am using poi-3.9-20121203.jar


Regards,
Amar Sheth

Re: HSSFCell MissingCell Policy Issue

Posted by Nick Burch <ap...@gagravarr.org>.
On Mon, 1 Jul 2013, Amar Sheth wrote:
> final HSSFCell cell = row.getCell(i, Row.RETURN_BLANK_AS_NULL);
>
> I am getting error
> java.lang.NoSuchMethodError:
> org.apache.poi.hssf.usermodel.HSSFRow.getCell(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/hssf/usermodel/

See the FAQ - http://poi.apache.org/faq.html#faq-N10006 - you would seem 
to have an older copy of POI lurking somewhere on your classpath

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org