Hi,
I need to make a validation on the word file what the user want to upload. As soon my file is not a real word file I get this failure message:
"java.lang.NoSuchMethodError: org.apache.poi.util.StringUtil.getFromUnicodeLE([BII)Ljava/lang/String;"
My code is like:
try
{
POIFSFileSystem poifs = new POIFSFileSystem(inStream);
HWPFDocument hwpf = new HWPFDocument(poifs);
}
catch (IOException ioe)
{
System.out.println("IOException: " + ioe);
}
catch (Exception e)
{
System.out.println("Exception: " + e);
}
The code gets broken as I try to read the "poifs" into as HWPFDocument...
Is there somebody who could help me?
I need to make a validation on the word file what the user want to upload. As soon my file is not a real word file I get this failure message:
"java.lang.NoSuchMethodError: org.apache.poi.util.StringUtil.getFromUnicodeLE([BII)Ljava/lang/String;"
My code is like:
try
{
POIFSFileSystem poifs = new POIFSFileSystem(inStream);
HWPFDocument hwpf = new HWPFDocument(poifs);
}
catch (IOException ioe)
{
System.out.println("IOException: " + ioe);
}
catch (Exception e)
{
System.out.println("Exception: " + e);
}
The code gets broken as I try to read the "poifs" into as HWPFDocument...
Is there somebody who could help me?