急!急!急!用java打开已发布好的报表出现问题

treacy 2004-09-02 01:30:27
当我使用java文件去打开已发布好的报表时

IReportAppFactory rptAppFactory = (IReportAppFactory)
ceSession.getService("RASReportService");
ReportClientDocument clientDoc = rptAppFactory.openDocument(report, 0, Locale.CHINESE);

报这样的错误:
com.crystaldecisions.sdk.occa.managedreports.ras.internal.a: 无法打开报表文档。 --- 无法与服务器 RPTSERVER.RAS.rptappserver 连接。 --- Stopping after fatal error: An invalid XML character (Unicode: 0xffff) was found in the element content of the document.
cause:com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: 无法与服务器 RPTSERVER.RAS.rptappserver 连接。 --- Stopping after fatal error: An invalid XML character (Unicode: 0xffff) was found in the element content of the document.---- Error code:-2147467259 Error code name:failed
detail:无法打开报表文档。 --- 无法与服务器 RPTSERVER.RAS.rptappserver 连接。 --- Stopping after fatal error: An invalid XML character (Unicode: 0xffff) was found in the element content of the document.
The exception originally thrown was com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: 无法与服务器 RPTSERVER.RAS.rptappserver 连接。 --- Stopping after fatal error: An invalid XML character (Unicode: 0xffff) was found in the element content of the document.---- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.openDocument(Unknown Source)

望各位大虾们帮忙看看 这是为什么呀?
...全文
91 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
treacy 2004-09-02
  • 打赏
  • 举报
回复
可是错误是出现在打开水晶报表的时候 水晶报表还会有xml吗?
BillyW 2004-09-02
  • 打赏
  • 举报
回复
xml文件里的非法字符。

使用一些xml编辑器打开看一看是否合法。

可以使用类似:xmlspy

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧