Bruno,
I compile the version 1,4,8 here, and give me this error when run the code
(html -> pdf):
HTTP JVM: java.lang.NoSuchMethodError: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.pdf.PdfWriter$PdfBody$PdfCrossReference.toPdf(PdfWriter.java:170)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.pdf.PdfWriter$PdfBody.writeCrossReferenceTable(PdfWriter.java:509)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1367)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.Document.close(Document.java:517)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(SAXiTextHandler.java:868)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.html.SAXmyHtmlHandler.endElement(SAXmyHtmlHandler.java:273)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:647)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
23/01/2007 17:13:43 HTTP JVM: at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
23/01/2007 17:13:43 HTTP JVM: at
javax.xml.parsers.SAXParser.parse(Unknown Source)
23/01/2007 17:13:43 HTTP JVM: at
com.lowagie.text.html.HtmlParser.go(HtmlParser.java:173)
23/01/2007 17:13:43 HTTP JVM: at
JavaAgent.NotesMain(JavaAgent.java:262)
23/01/2007 17:13:43 HTTP JVM: at
lotus.domino.AgentBase.runNotes(Unknown Source)
23/01/2007 17:13:43 HTTP JVM: at
lotus.domino.NotesThread.run(NotesThread.java:208)
After that, i copy the pdfWriter.java (only the method at line 170 where
are the problem) from the version 1,4,3 to the version 1,4,8 and it's run.
Do you know if i lost something with this?
I work with Lotus Notes, so all code must run inside "agent" from notes,
is possivel the "BufferString" are change the append method at version 5
java and my server use version prior.
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?
Thanks in advance.
Daniela
"Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
Enviado Por: [EMAIL PROTECTED]
23/01/2007 12:22
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
[EMAIL PROTECTED] wrote:
>
> Hi.
>
> I'm sorry if this message are repeat,
It's a variation on something that has been posted before.
Google is your friend:
http://www.google.com/search?q=%22The+major.minor+version+%2748.0%27+is+too+recent+for+this+tool+to+understand%22
For instance:
http://forum.java.sun.com/thread.jspa?threadID=697709&messageID=4050751
48.0 refers to JDK 1.4.
This is the JDK used to compile iText.
If you are using iText with another version of the JDK,
you should recompile iText with that version.
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/
-------------------------------------------------------------------------
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/