Free Support Forum - aspose.com

MalformedInputException in workbook.open method

I am trying to read a csv file.

workbook.open(InputStream,FileFormatType) method gives the following exception.

Caused by: sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(Inlined Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled Code))
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled Code))
at java.io.InputStreamReader.read(InputStreamReader.java(Compiled Code))
at java.io.BufferedReader.fill(BufferedReader.java(Compiled Code))
at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
at com.aspose.cells.dF.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.nissan.dealerportal.businessaggregator.batch.MailMergeBusinessAggregator.validateMergeAndCsvTemplates(MailMergeBusinessAggregator.java:362)
at com.nissan.dealerportal.businessaggregator.batch.MailMergeBusinessAggregator.performMailMerge(MailMergeBusinessAggregator.java:351)
at com.nissan.dealerportal.businessdelegator.batch.MailMergeBusinessDelegator.performMailMerge(MailMergeBusinessDelegator.java:55)
at com.nissan.dealerportal.webapp.wa.MailMergeWebAggregator.performMailMerge(MailMergeWebAggregator.java:53)
at com.nissan.dealerportal.webapp.action.MailMergeAction.performMailMerge(MailMergeAction.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
at com.ibm.portal.struts.portlet.WpRequestProcessor.processActionPerform(WpRequestProcessor.java:378)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at com.ibm.portal.struts.portlet.StrutsPortlet.processActionPerformed(StrutsPortlet.java:1781)
at com.ibm.portal.struts.portlet.StrutsPortlet.processAction(StrutsPortlet.java:1499)

Hi,

Thanks for considering Aspose.

Could you post your template csv file here. We will check it soon.

Thank you.