Thanks Bruno and Paulo.
I compile with 1.3 because Lotus Notes use that. I have the same error:
HTTP JVM: java.lang.NoSuchMethodError: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
24/01/2007 09:09:50 HTTP JVM: at
com.lowagie.text.pdf.PdfWriter$PdfBody$PdfCrossReference.toPdf(PdfWriter.java:171)
24/01/2007 09:09:50 HTTP JVM: at
com.lowagie.text.pdf.PdfWriter$PdfBody.writeCrossReferenceTable(PdfWriter.java:527)
.....
I see here:
http://forum.java.sun.com/thread.jspa?threadID=787796&messageID=4477168
this:
The following source and target is supported by javac 1.5.0
javac -source 1.2 -target 1.1 //min source min target
javac -source 1.2 -target 1.5 //min source max target
javac -source 1.3 -target 1.1 //max source with diffrent target
But 1.4 and 1.5 source requires 1.4 and 1.5 target.
So i think, if i have 1.3 and the new version are 1.4 requires 1.4
target!!
I have 2 ways, i use the old version of itext (when the server notes
upgrade to 7 i hope the jvm was upgrade too) or i use the toPdf mehotd of
PdfWriter.class of old version and all other from newone.
I ask you because you know the product very well...i use it to take html
and pass to pdf .
thanks and thanks again
Daniela
"Paulo Soares" <[EMAIL PROTECTED]>
Enviado Por: [EMAIL PROTECTED]
24/01/2007 08:39
Favor responder a Post all your questions about iText here
Para: "Post all your questions about iText here"
<[email protected]>
cc:
Assunto: Re: [iText-questions] New Version - Problems
Bruno is right. The method StringBuffer.append(StringBuffer) was
introduced in jdk 1.4. If you compile in 1.4 and run in 1.3 you'll have
the error. If you compile in 1.3 the method will be transformed by the
compiler in StringBuffer.append(StringBuffer.toString()) and all will be
well.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Bruno Lowagie (iText)
> Sent: Wednesday, January 24, 2007 9:32 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] New Version - Problems
>
> [EMAIL PROTECTED] wrote:
> > I can't upgrade the jvm of server because there are a lot
> of app running
> > there, so, with this "copy-paste" i see it run...do you
> think it be very
> > "bad" or i can use it?
>
> I wouldn't consider it to be safe.
> Please compile iText with the JDK that is on the server.
> You may think you have already done this, but the result
> tells me you are mistaken (if you don't trust me on this
> one; please trust your machine: it's right).
> Have another look. Recompile.
> br,
> Bruno
>
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
> &CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
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.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/