Jump to content
We've recently updated our Privacy Statement, available here ×

Cannot invoke JRFillBand.isPageBreakInhibited() because the return value of JRFillSubreport.getBand() is null


Recommended Posts

java.lang.NullPointerException: Cannot invoke "net.sf.jasperreports.engine.fill.JRFillBand.isPageBreakInhibited()" because the return value of "net.sf.jasperreports.engine.fill.JRFillSubreport.getBand()" is null

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.FillerSubreportParent.isPageBreakInhibited(FillerSubreportParent.java:117)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRFillBand.isPageBreakInhibited(JRFillBand.java:604)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRFillBreak.prepare(JRFillBreak.java:218)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:542)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:453)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:428)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2616)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:837)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:276)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:119)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:623)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:434)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:830)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:61)

at jasperreports@6.20.3/net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:833)

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

Hello,

Per error trace, it looks like isSplitTypePreventInhibited is called on null. Seems to happen when a table is located in a detail band and the cell of the table is overflowing, that is generating a page break.

Found similar error on below community portal.

https://community.jaspersoft.com/jasperreports-library/issues/10451

Hope this finds you useful !!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...