【发布时间】:2012-08-21 20:17:17
【问题描述】:
我的数据库中有一个 PDF 文件作为文件资源 (test.pdf),下面的 xpage 将其显示为嵌入对象:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:panel tagName="object">
<xp:this.attrs>
<xp:attr name="data" value="test.pdf"></xp:attr>
<xp:attr name="type" value="application/pdf"></xp:attr>
<xp:attr name="width" value="600"></xp:attr>
<xp:attr name="height" value="600"></xp:attr>
</xp:this.attrs>
It appears your Web browser is not configured to display PDF files. No worries, just <a href='test.pdf'>click here to download the PDF file.</a>
</xp:panel>
</xp:view>
在网络浏览器 (Firefox) 中一切正常。当我第一次在 Notes 客户端 (XPiNC) 中打开 xpage 时,PDF 也显示为嵌入的。但是当我打开 xpage 几次时,客户端崩溃了。
我使用的是版本 8.5.3FP1。
你有什么建议吗? XPiNC中是否禁止使用object标签?
按照 Simon O'Doherty 的回答中的建议,我检查了“IBM_TECHNICAL_SUPPORT”和“workspace\logs”文件夹中的所有文件,这些文件在客户端崩溃之后/之后被修改。
nsd 文件中没有 FATAL。
错误日志1.xml:
<CommonBaseEvent creationTime="2012-08-21T22:08:27.093+02:00" globalInstanceId="ELc0a808f50001394acb55ed00000009" msg="Project facet jst.web has not been defined. It is used in plugin org.eclipse.wst.jsdt.web.core." severity="50" version="1.0.1">
<extendedDataElements name="CommonBaseEventLogRecord:level" type="noValue">
<children name="CommonBaseEventLogRecord:name" type="string">
<values>SCHWERWIEGEND</values>
</children>
</extendedDataElements>
<sourceComponentId component="Expeditor 6.2" componentIdType="ProductName" instanceId="1327306362466" location="MBS-86" locationType="Hostname" subComponent="org.eclipse.wst.common.project.facet.core" threadId="4" componentType="http://www.w3.org/2001/XMLSchema-instance"/>
<situation categoryName="ReportSituation">
<situationType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>´
console_MBS-86_2012_08_21@22_06_40.log:
[0548:0002-1230] 21.08.2012 22:27:14,34 DeskClientOpenInt> Calling CreateProgramRCP pszRCPCmdLine[/authenticate ] bDeskProvisioningRestart [0]
[0548:0002-1230] 21.08.2012 22:27:14,37 DeskClientOpenInt> Executed CreateProgramRCP
[0548:0002-1230] 21.08.2012 22:27:21,35 DeskClientOpenInt> Calling CreateProgramRCP pszRCPCmdLine[/authenticate ] bDeskProvisioningRestart [0]
[0548:0002-1230] 21.08.2012 22:27:21,38 DeskClientOpenInt> Executed CreateProgramRCP
[0548:0002-1230] 21.08.2012 22:27:27,27 DeskClientOpenInt> Calling CreateProgramRCP pszRCPCmdLine[/authenticate ] bDeskProvisioningRestart [0]
[0548:0002-1230] 21.08.2012 22:27:27,29 DeskClientOpenInt> Executed CreateProgramRCP
[0548:000E-0D34] Thread=[0548:000E-0D34]
[0548:000E-0D34] Stack base=0x05F70084, Stack size = 2560 bytes
[0548:000E-0D34] PANIC: The notes2 process (pid=2052) exited unexpectedly.
提前致谢。
【问题讨论】:
-
好吧,我能找到的唯一 SPR 已经为该版本修复了。我尝试在测试数据库中创建上面的示例,并将此页面的 PDF 打印输出作为文件资源。然后我让数据库打开和关闭了 30 多次。 PDF 每次渲染都很好,没有崩溃。是否还有其他因素导致崩溃发生?
-
感谢您的测试。由于您的结果,我在其他一些计算机上测试了该页面。带有嵌入式 PDF 的页面工作正常,并且在这些其他计算机上没有发生崩溃。具有以下配置的机器不会崩溃:Win7 64Bit & Acrobat X 10.1.4 |赢取 XP 32 位和 Acrobat X 10.1.4。使用以下配置的机器崩溃:Win XP 32Bit & Acrobat Reader 8.1.4。所以崩溃的主要因素似乎是 Adobe Reader 版本。我不知道这是否是 Adobe Reader 或 Notes 客户端的问题,但在 Firefox 中,xPage 正在使用 Adobe Reader 8.1.4。
-
XP 阅读器的最新版本是 9.5。你可以尝试升级到那个,看看它是否仍然出现?
-
我已经升级到 Acrobat X/Reader 10.1.4,自此更新以来没有发生崩溃。