how are you constructing XSSFWorkbook, from stream or from path ? Make
sure you close input streams or call OPCPackage.close() after you are
done.

Yegor

On Wed, Feb 29, 2012 at 8:28 PM, jiteshks <[email protected]> wrote:
> I downloaded poi-3.8 beta 5 version.But now I am getting this error :-
>
> org.apache.poi.POIXMLException:
> org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should
> contain a content type part [M1.13]
>
> Are spring jars interfering with POI jar files?It works fine from a
> standalone set up.
>
> My app is set up like this -
> a.)GUI uploads a excel file.
> b.)Spring framework controller needs to check the column headings of the
> excel file before allowing successful upload - this is where my code is
> failing.
> c.)after successful upload,the excel file location is sent to JMS queue.
> d.)A process consumes JMS messages and gets the file location.
> e.)This process opens the file at file location(same lines of  code as
> involved in step b.) and does the processing.
>
> Process of step e. does not have any problems in opening the same file(even
> with poi3.6 and poi3.7).
> But Spring controller of step b.) is just not able to open the file.
>
> What can be the issue?
>
>
>
>
> --
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/InvalidOperationException-Can-t-open-specified-file-tp5524067p5525420.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to