poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jiteshks <jites...@yahoo.com>
Subject InvalidOperationException:Can't open specified file
Date Wed, 29 Feb 2012 05:35:24 GMT
Hi Guyz,

I have been getting this error for last few hours.I have tried using both
3.6 and 3.7 versions of POI but it is just not making any difference.
Here is the full stack trace :-

org.apache.poi.openxml4j.exceptions.InvalidOperationException: Can't open
the specified file:
'C:\Users\jisinha\AppData\Local\Temp\poifiles\poi-ooxml--101615038.tmp'
	at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:102)
	at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:199)
	at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:178)
	at org.apache.poi.util.PackageHelper.open(PackageHelper.java:53)
	at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:176)
	at
com.xxxx.zbl.service.ZblServiceImpl.checkFormatOfCsv(ZblServiceImpl.java:426)
	at
com.xxxxx.zbl.controller.ZblBulkRedirectController.saveBulkRedirectSpreadsheet(ZblBulkRedirectController.java:81)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
	at
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
	at
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
	at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
	at com.xxxx.zbl.filter.UserFilter.doFilter(UserFilter.java:63)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
	at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
	at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
	at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
	at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
	at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
	at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
	at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
	at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
	at java.lang.Thread.run(Thread.java:662)


It seems POI is able to write file to that folder but unable to read it.That
is quite weird.
I have tried unchecking Read Only check box that appears on right clicking
any folder in Windows - but it does not make any difference.

Any ideas how to solve it?

Thanks!



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/InvalidOperationException-Can-t-open-specified-file-tp5524067p5524067.html
Sent from the POI - User mailing list archive at Nabble.com.

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


Mime
View raw message