poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avik Sengupta <a...@apache.org>
Subject RE: Concurrency Issue
Date Wed, 14 May 2003 09:11:58 GMT
I do not believe there are static stuff which precludes reading many
files at a go, but i could be wrong. 

I would actually guess that one particular file of yours is throwing up
some pre-existing bug in poi. Have you checked that all the files you
want to open can be opened sequentially in poi?

On Tue, 2003-05-13 at 22:38, Vilay.Wadhwa@ubsw.com wrote:
> Hi Avik,
> 
> Thanks a lot for the response.
> I am creating diff. HSSFWorkBook for diff. uploaded files via diff. threads.
> But for some reason one of the WorkBook constructor fails.
> 
> Can you please let me know if we have any limit on reading the files concurrently
> or any other part of the code( static stuff ) that may be causing this issue.
> 
> By the way, can I have your contact # or do you prefer to have my contact # and 
> we can have a quick chat.
> 
> Cheers
> Vilay
> 
> 
> -----Original Message-----
> From: Avik Sengupta [mailto:avik@apache.org]
> Sent: Tuesday, May 13, 2003 5:53 AM
> To: POI Users List
> Subject: Re: Concurrency Issue
> 
> 
> you cannot use a single HSSFWorkbook object from more than one thread.
> you will need to synchronise access to that object. Of course, you can
> use different HSSFWorkbook objects in different threads concurrently. 
> 
> 
> 
> On Tue, 2003-05-13 at 02:00, Vilay.Wadhwa@ubsw.com wrote:
> > Hi Guys,
> > 
> > I am having problem reading more than one file Excel files concurrently.
> > Reading individual files seem to be fine.
> > 
> > The exception I get is as follows:
> > 
> > java.lang.reflect.InvocationTargetException: java.lang.ArrayIndexOutOfBoundsException
> > 	at org.apache.poi.util.LittleEndian.getNumber(LittleEndian.java:557)
> > 	at org.apache.poi.util.LittleEndian.getInt(LittleEndian.java:177)
> > 	at org.apache.poi.hssf.record.DimensionsRecord.fillFields(DimensionsRecord.java:121)
> > 	at org.apache.poi.hssf.record.Record.fillFields(Record.java:143)
> > 	at org.apache.poi.hssf.record.Record.<init>(Record.java:105)
> > 	at org.apache.poi.hssf.record.DimensionsRecord.<init>(DimensionsRecord.java:94)
> > 	at java.lang.reflect.Constructor.newInstance(Native Method)
> > 	at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:254)
> > 	at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:192)
> > 	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
> > 	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:158)
> > 	
> > 
> > 
> > Your help is highly appreciated.
> > 
> > Best Regards,
> > Vilay
> > 
> > Visit our website at http://www.ubswarburg.com
> > 
> > This message contains confidential information and is intended only 
> > for the individual named.  If you are not the named addressee you 
> > should not disseminate, distribute or copy this e-mail.  Please 
> > notify the sender immediately by e-mail if you have received this 
> > e-mail by mistake and delete this e-mail from your system.
> > 
> > E-mail transmission cannot be guaranteed to be secure or error-free 
> > as information could be intercepted, corrupted, lost, destroyed, 
> > arrive late or incomplete, or contain viruses.  The sender therefore 
> > does not accept liability for any errors or omissions in the contents 
> > of this message which arise as a result of e-mail transmission.  If 
> > verification is required please request a hard-copy version.  This 
> > message is provided for informational purposes and should not be 
> > construed as a solicitation or offer to buy or sell any securities or 
> > related financial instruments.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> > 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
> 
> 
> Visit our website at http://www.ubswarburg.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free 
> as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses.  The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
> 




Mime
View raw message