急!急!急!用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)

望各位大虾们帮忙看看 这是为什么呀?
...全文
52 点赞 收藏 2
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
treacy 2004-09-02
可是错误是出现在打开水晶报表的时候 水晶报表还会有xml吗?
回复
BillyW 2004-09-02
xml文件里的非法字符。

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

可以使用类似:xmlspy
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2004-09-02 01:30
社区公告
暂无公告