----- Original Message -----
Sent: Wednesday, May 17, 2006 10:29
AM
Subject: RE: [iText-questions] strange
ClassCastException on init?
That's probably fixed in CVS. You can post
the file if you want to.
Paulo
I have some code that's been running
perfectly for a few months now. Suddenly we ran into a document (I
think) that causes it to crash when I'm trying to load it into a
PdfReader! Never seen this before, and the code has been used on
thousands of documents -- 99% of which are created in the same
manner.
My java code at the specified line is
simple:
PdfReader reader = new
PdfReader(fileList[f]);
The thrown (uncaught) exception
is:
java.lang.ClassCastException
at
com.lowagie.text.pdf.PdfReader$PageRefs.iteratePages(Unknown
Source)
at
com.lowagie.text.pdf.PdfReader$PageRefs.iteratePages(Unknown
Source)
at
com.lowagie.text.pdf.PdfReader$PageRefs.readPages(Unknown
Source)
at
com.lowagie.text.pdf.PdfReader$PageRefs.<init>(Unknown
Source)
at
com.lowagie.text.pdf.PdfReader$PageRefs.<init>(Unknown
Source)
at com.lowagie.text.pdf.PdfReader.readPages(Unknown
Source)
at com.lowagie.text.pdf.PdfReader.readPdf(Unknown
Source)
at com.lowagie.text.pdf.PdfReader.<init>(Unknown
Source)
at com.lowagie.text.pdf.PdfReader.<init>(Unknown
Source)
at
com.documentum.ajw.PDF.PDFconcat.concatPDFs(PDFconcat.java:64)
This is using the 1.4 version of
iText.
Anyone have any ideas why this would
happen? I can open the PDF in Acrobat Standard 6.0 just fine...don't
see anything obviously "wrong" with the file.
Thanks in advance,
AJ
Aviso Legal:
Esta mensagem à destinada exclusivamente ao destinatÃrio.
Pode conter informaÃÃo confidencial ou legalmente protegida. A incorrecta
transmissÃo desta mensagem nÃo significa a perca de confidencialidade. Se
esta mensagem for recebida por engano, por favor envie-a de volta para o
remetente e apague-a do seu sistema de imediato. Ã proibido a qualquer
pessoa que nÃo o destinatÃrio de usar, revelar ou distribuir qualquer parte
desta mensagem.
Disclaimer:
This message is destined exclusively
to the intended receiver. It may contain confidential or legally protected
information. The incorrect transmission of this message does not mean the
loss of its confidentiality. If this message is received by mistake, please
send it back to the sender and delete it from your system immediately. It is
forbidden to any person who is not the intended receiver to use, distribute
or copy any part of this message.