ngeorga / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Getting Stuck Thread Issue while executing ITextRenderer.layout() Method. #260

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

In My application i am getting Stuck Thread Issue while Executing 
ITextRenderer.layout() method.Facing this issue only with data copied from 
Excel to WYSIWYG fields in my appliaction.It works fine for other datawhich is 
copied from other sources other than Excel.Below is the Piece of code wherein I 
am getting Stuck Thread issue.

String inXHTML = new File(inXHTMLFile).toURI().toURL().toString();
            System.out.println("Inner HTML file is "+inXHTML);

            os = new FileOutputStream(outPDF); 

            ITextRenderer renderer = new ITextRenderer();
            renderer.setDocument(inXHTML);
            System.out.println("This is Test File ");
            renderer.layout();
            System.out.println("This is Test File 1234 ");
            renderer.createPDF(os); 

As shown above,SYSOUT after renderer.layout(); line of code will never execute 
for data which is copied from Excel.

Here I am attaching the HTML which is used to generate the PDF document using 
layout() Method. Getting this issue for any volume of data copied from WYSIWYG 
fields.

Below is the exception which i got while generate the doc.

Inner HTML file is 
file:/C:/bea/USER_P~1/domains/GCFACD~1/gcFac/templates/FacExchangeFile/SMALLIK/A
0/A06700/1550/155015/Documents/Mallik_Submission_marketcopy_2015-04-14_084513_88
3.html
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: Using CSS implementation from: org.xhtmlrenderer.context.StyleReference
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: SAX XMLReader in use (parser): weblogic.apache.xerces.parsers.SAXParser
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: SAX XMLReader in use (parser): weblogic.apache.xerces.parsers.SAXParser
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: SAX XMLReader in use (parser): weblogic.apache.xerces.parsers.SAXParser
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: SAX XMLReader in use (parser): weblogic.apache.xerces.parsers.SAXParser
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: SAX XMLReader in use (parser): weblogic.apache.xerces.parsers.SAXParser
Apr 14, 2015 8:45:18 AM org.xhtmlrenderer.util.XRLog log
INFO: SAX XMLReader in use (parser): weblogic.apache.xerces.parsers.SAXParser
Apr 14, 2015 8:45:19 AM org.xhtmlrenderer.util.XRLog log
INFO: Loaded document in ~55ms
Apr 14, 2015 8:45:19 AM org.xhtmlrenderer.util.XRLog log
INFO: TIME: parse stylesheets  266ms
Apr 14, 2015 8:45:19 AM org.xhtmlrenderer.util.XRLog log
INFO: media = print
Apr 14, 2015 8:45:19 AM org.xhtmlrenderer.util.XRLog log
INFO: Matcher created with 140 selectors
This is Test File
<Apr 14, 2015 9:01:12 AM GMT> <Error> <WebLogicServer> <BEA-000337> 
<ExecuteThread: '13' for queue: 'weblogic.kernel.Default' has been busy for 
"959" seconds working on the request "Http Request: 
/FacExchangeWeb/propertycreatesubmissions.pdf", which is more than the 
configured time (StuckThreadMaxTime) of "600" seconds.>
<Apr 14, 2015 9:11:13 AM GMT> <Error> <WebLogicServer> <BEA-000337> 
<ExecuteThread: '13' for queue: 'weblogic.kernel.Default' has been busy for 
"1,559" seconds working on the request "Http Request: 
/FacExchangeWeb/propertycreatesubmissions.pdf", which is more than the 
configured time (StuckThreadMaxTime) of "600" seconds.>

Facing This issue since severe days.
Tried to fix it. But couldnt get much lead.
Hence your help is highly required.

Thanks in advance.
Mallikarjun

Original issue reported on code.google.com by mallikar...@gmail.com on 14 Apr 2015 at 11:57

Attachments: