Skip to Content
1
Feb 20, 2020 at 03:37 AM

Null Pointer Exception on Next Page

203 Views

I'm using crystal in a Java Swing application. I can load the report, but when selecting next page I get a null pointer exception on the first click. Selecting next page a second time loads the next page. It does this on every report. Here's the error:

17546 [TSLVReader #3] 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.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.base/java.lang.Thread.run(Thread.java:835) 17546 [TSLVReader #3] INFO com.businessobjects.reports.sdk.JRCCommunicationAdapter.JRCLicenseThrottler - releasing engine request 17546 [TSLVReader #3] DEBUG com.crystaldecisions.reports.common.commandmanager - command SETUP: NotUndoableCommand 17546 [TSLVReader #3] DEBUG com.crystaldecisions.reports.common.commandmanager - command PERFORM: NotUndoableCommand 17546 [TSLVReader #3] DEBUG com.crystaldecisions.reports.common.commandmanager - -- command is NOT UNDOABLE -> purge undo stack java.lang.NullPointerException