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

Error in Subreport


czavalaclaudia

Recommended Posts

Hi 

I need help... I'm making a report with ireport and netbeans calling it from a java program... all good when compiling and executing... the problem occurs when I insert a subreport... the compilation passes but when executing it gives me this mistake...

Exception in thread "main" java.lang.NullPointerException    at net.sf.jasperreports.engine.fill.JRPrintBand.addOffsetElements(JRPrintBand.java:101)    at net.sf.jasperreports.engine.fill.JRFillElementContainer.addSubElements(JRFillElementContainer.java:623)    at net.sf.jasperreports.engine.fill.JRFillElementContainer.fillElements(JRFillElementContainer.java:600)    at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:406)    at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:352)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBackground(JRVerticalFiller.java:1804)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:255)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836)    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:765)    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84)    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)    at PruebaRep.Main.main(Main.java:291) 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

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...