gpt4 book ai didi

java - 使用 SP24 for Eclipse 运行 Crystal Reports 时出现 NullPointerException

转载 作者:行者123 更新时间:2023-12-05 05:03:27 25 4
gpt4 key购买 nike

我们正在尝试将 Crystal Report for Eclipse 升级到 SP24,但发现我们的一些报告在生成报告时失败并出现 NullPointerException。我在下面包含了堆栈跟踪 - 请问有人知道什么地方可能有问题或有任何解决方法吗?

Changing Main Report Table Connection Info
Changing Sub Report Table Connection Info
Setting Parameters of Main Reports
Starting Verify database
Completed Verify database
Setting Parameters of Sub Reports
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:238)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:148)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:129)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:112)
at us.nm.state.hsd.aspen.business.batch.rp.crystal.RpJRCExportReport.runReportExport(RpJRCExportReport.java:742)
at us.nm.state.hsd.aspen.business.batch.rp.crystal.RpScheduleReportRun.process(RpScheduleReportRun.java:177)
at us.nm.state.hsd.aspen.business.batch.rp.crystal.RpScheduleReportRun.drive(RpScheduleReportRun.java:263)
at us.nm.state.hsd.aspen.business.batch.rp.crystal.RpScheduleReportRun.main(RpScheduleReportRun.java:286)
Caused by: 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.f.e(SourceFile:383)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.u.for(SourceFile:242)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.aa.a(SourceFile:64)
...

最佳答案

以防其他人在这里遇到同样的问题。

问题是:较新的 JDK 版本没有附带 Crystal Report 引擎期望的 lib/fonts 文件夹。

一个有点不令人满意但可行的解决方案是:

  1. 创建字体文件夹 -> %JAVA_HOME%/lib/fonts
  2. 将字体从“Windows\Fonts”复制到 %JAVA_HOME%/lib/fonts。

问题应该解决了。

关于java - 使用 SP24 for Eclipse 运行 Crystal Reports 时出现 NullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61663452/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com