Skip to Content
0
Jul 01 at 12:38 PM

Null Pointer Exception on page break

100 Views Last edit Jul 06 at 01:14 PM 2 rev

I made a report which has one subreport. The reports shows well in the Crystal Reports Designer (Version 2016 Service Pack 9)

If I load that report from my Java Application I get a Null Pointer exception but only if the Subreport breaks across the first page. Has anyone experienced the same problem or even a solution?

The log is:

7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.datasource  - Can Keep record: true The print time record number is 48
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - moveFromPageHeader (currentPageBreak = null) : section = SectionCode:<kind=pageAreaPair><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 47, pageN = 2
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - Next Section : section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 47, pageN = 2
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - Next VALID Section : section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 47, pageN = 2
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - # Target DataPosition: section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 46, pageN = 1
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - # Achieved DataPosition: section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 47, pageN = 2
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.datasource  - Getting recurring record for record number: 49
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.datasource  - Evaluating group selection
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.datasource  - Can Keep record: true The print time record number is 49
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - Next Section : section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 48, pageN = 2
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - ### Added PrintState to cache for section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 48, pageN = 2
7650 [TSLVReader #1] DEBUG com.crystaldecisions.reports.dataengine.dataprocessor  - Next VALID Section : section = SectionCode:<kind=detailArea><groupN=0><isHeader=true><sectionN=0>, printRecordNumber = 48, pageN = 2
7650 [TSLVReader #1] ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter  -  detected an exception: java.lang.NullPointerException
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.d.a(SourceFile:154)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:332)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:250)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.a(SourceFile:922)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.e(SourceFile:784)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.for(SourceFile:242)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.WideSectionFormatter.a(SourceFile:40)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:243)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.a(SourceFile:210)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:185)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.v.a(SourceFile:230)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.a(SourceFile:41)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:511)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:452)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.a(SourceFile:369)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ah.a(SourceFile:72)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ReportColumnFormatter.a(SourceFile:86)
    at com.crystaldecisions.reports.formatter.formatter.paginator.SinglePageFormatter.a(SourceFile:332)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:359)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ai.for(SourceFile:133)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.for(SourceFile:120)
    at com.crystaldecisions.reports.formatter.formatter.paginator.SinglePageFormatter.for(SourceFile:177)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ColumnFormatter.a(SourceFile:41)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.do(SourceFile:737)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.Y(SourceFile:399)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.do(SourceFile:677)
    at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.formatPage(SourceFile:236)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.byte(SourceFile:220)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1908)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:525)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    at com.crystaldecisions.sdk.occa.report.application.dt.a(SourceFile:186)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(SourceFile:767)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(SourceFile:324)
    at com.businessobjects.crystalreports.viewer.core.rs.RSRecordSource.openInputStream(Unknown Source)
    at com.businessobjects.crystalreports.viewer.core.TSLVReader.a(Unknown Source)
    at com.businessobjects.crystalreports.viewer.core.TSLVReader.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:748)