*
The moose likes Other Open Source Projects and the fly likes java.io.IOException: Cannot remove block[ 7314 ]; out of range Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "java.io.IOException: Cannot remove block[ 7314 ]; out of range" Watch "java.io.IOException: Cannot remove block[ 7314 ]; out of range" New topic
Author

java.io.IOException: Cannot remove block[ 7314 ]; out of range

Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Hi all,

I am facing few problem while calculating the word count and accessing the msword file. And I am unable to find the acyual reason to resolve it. When i am trying to accesing the file It is giving me the error given below.


java.io.IOException: Cannot remove block[ 7314 ]; out of range
16:08:02,515 INFO [STDOUT] at org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:104)
16:08:02,515 INFO [STDOUT] at org.apache.poi.poifs.storage.BlockAllocationTableReader.<init>(BlockAllocationTableReader.java:92)
16:08:02,515 INFO [STDOUT] at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:91)
16:08:02,515 INFO [STDOUT] at com.pearson.pims.presentation.production.PLMTServlet.currentWordCount(PLMTServlet.java:278)
16:08:02,515 INFO [STDOUT] at com.pearson.pims.presentation.production.PLMTServlet.doGet(PLMTServlet.java:96)
16:08:02,515 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
16:08:02,515 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
16:08:02,515 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
16:08:02,515 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
16:08:02,515 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
16:08:02,515 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:365)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
16:08:02,515 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
16:08:02,515 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
16:08:02,531 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
16:08:02,531 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
16:08:02,531 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
16:08:02,531 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

I am using the following code to access the word file.

[ November 19, 2008: Message edited by: Martijn Verburg ]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Which version are you using? A bug similar to this (might be same one) was fixed in the 3.1 series


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
Consider Paul's rocket mass heater.
 
subject: java.io.IOException: Cannot remove block[ 7314 ]; out of range