Results 1 to 1 of 1
  1. #1
    jiggaworld is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Default Problems running subreports with JasperReport. java.lang.ThreadDeath

    Hi all,

    I'm having some issues running subreports embedded in a masterreport.
    I'm using populated net.sf.jasperreports.engine.data.JRBeanCollectionD ataSource instances as my datasource objects for both the master report and the subreports.


    Initially in the configuration file for jasper which is default.jasperreports.properties file, the initially configured value for the property : net.sf.jasperreports.subreport.runner.factory was net.sf.jasperreports.engine.fill.JRThreadSubreport RunnerFactory.

    On trying to run the report then, my application freezes and I always get this exception :

    StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
    javax.faces.FacesException: #{combinedPolicyReportBean.doGenerateProposalDocum entReport}: java.lang.ThreadDeath

    Caused by: java.lang.ThreadDeath
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1333)
    at javax.xml.parsers.FactoryFinder.getProviderClass(F actoryFinder.java:111)
    at javax.xml.parsers.FactoryFinder.newInstance(Factor yFinder.java:146)
    at javax.xml.parsers.FactoryFinder.find(FactoryFinder .java:187)
    at javax.xml.parsers.DocumentBuilderFactory.newInstan ce(DocumentBuilderFactory.java:123)
    at net.sf.jasperreports.engine.util.JRStyledTextParse r.<init>(JRStyledTextParser.java:112)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.<ini t>(JRBaseFiller.java:176)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:77)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.i nitSubreportFiller(JRFillSubreport.java:380)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.r ewind(JRFillSubreport.java:699)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.p repare(JRFillSubreport.java:573)
    at net.sf.jasperreports.engine.fill.JRFillElementCont ainer.prepareElements(JRFillElementContainer.java: 343)
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(J RFillBand.java:323)
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(J RFillBand.java:282)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillColumnBand(JRVerticalFiller.java:1398)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillDetail(JRVerticalFiller.java:692)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReportStart(JRVerticalFiller.java:255)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReport(JRVerticalFiller.java:113)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:791)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:714)
    at net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:89)
    at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:601)
    at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:582)
    at net.sf.jasperreports.engine.JasperRunManager.runRe portToPdfStream(JasperRunManager.java:368)
    at com.leadway.web.risk.combinedpolicy.reports.Combin edPolicyReportBean.doGenerateProposalDocumentRepor t(CombinedPolicyReportBean.java:178)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:18 7)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpre ssionImpl.java:297)
    at javax.faces.component.MethodBindingMethodExpressio nAdapter.invoke(MethodBindingMethodExpressionAdapt er.java:77)


    However, on changing the value for the configured property : net.sf.jasperreports.subreport.runner.factory to net.sf.jasperreports.engine.fill.JRContinuationSub reportRunnerFactory,

    the application equally freezes and I equally get this exception :

    javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap space

    Caused by: java.lang.OutOfMemoryError: Java heap space
    at net.sf.jasperreports.engine.fill.JRFillElement.<in it>(JRFillElement.java:96)
    at net.sf.jasperreports.engine.fill.JRFillTextElement .<init>(JRFillTextElement.java:92)
    at net.sf.jasperreports.engine.fill.JRFillTextField.< init>(JRFillTextField.java:85)
    at net.sf.jasperreports.engine.fill.JRFillObjectFacto ry.getTextField(JRFillObjectFactory.java:678)
    at net.sf.jasperreports.engine.base.JRBaseTextField.g etCopy(JRBaseTextField.java:264)
    at net.sf.jasperreports.engine.fill.JRFillElementGrou p.<init>(JRFillElementGroup.java:88)
    at net.sf.jasperreports.engine.fill.JRFillElementCont ainer.<init>(JRFillElementContainer.java:90)
    at net.sf.jasperreports.engine.fill.JRFillBand.<init> (JRFillBand.java:83)
    at net.sf.jasperreports.engine.fill.JRFillObjectFacto ry.getBand(JRFillObjectFactory.java:518)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.<ini t>(JRBaseFiller.java:456)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:77)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.i nitSubreportFiller(JRFillSubreport.java:380)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.r ewind(JRFillSubreport.java:699)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.p repare(JRFillSubreport.java:573)
    at net.sf.jasperreports.engine.fill.JRFillElementCont ainer.prepareElements(JRFillElementContainer.java: 343)
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(J RFillBand.java:323)
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(J RFillBand.java:282)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillColumnBand(JRVerticalFiller.java:1398)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillDetail(JRVerticalFiller.java:692)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReportStart(JRVerticalFiller.java:255)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReport(JRVerticalFiller.java:113)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:791)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:714)
    at net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:89)
    at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:601)
    at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:582)
    at net.sf.jasperreports.engine.JasperRunManager.runRe portToPdfStream(JasperRunManager.java:368)
    at com.leadway.web.risk.combinedpolicy.reports.Combin edPolicyReportBean.doGenerateProposalDocumentRepor t(CombinedPolicyReportBean.java:181)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    I've really been on this tight corner for days now.
    Any help in resolving this issue for me will be highly appreciated.
    Last edited by jiggaworld; 10-15-2008 at 10:47 AM. Reason: Post topic not descriptive enough

Similar Threads

  1. problems in running d command prompt commands
    By postaholic066 in forum Advanced Java
    Replies: 1
    Last Post: 09-10-2008, 03:47 PM
  2. Equinox problems running on Eclipse 3.4
    By jguerra in forum Eclipse
    Replies: 0
    Last Post: 09-05-2008, 02:34 PM
  3. slow JasperReport
    By bbq in forum Advanced Java
    Replies: 3
    Last Post: 02-11-2008, 08:34 AM
  4. problems with jasperreport
    By Ed in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 05:49 AM
  5. Problems in running client class
    By ai_2007 in forum Advanced Java
    Replies: 0
    Last Post: 06-30-2007, 02:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •