5

今天我根据http://sdllivecontent.sdl.com/上的文档安装了 Tridion UI 。除了“更新预览”功能外,一切似乎都在工作。对组件进行更改后,页面正确显示预览已过期,但单击“更新预览”按钮会重新加载页面,除了显示相同的警告“此页面的预览不是最新的” ”。

我看到有另一篇与此相关的帖子(Tridion New UI Preview Site 没有反映更改,除非发布)但我没有使用任何虚拟目录。

我已经解决了我在日志中发现的警告和错误,只留下一个警告(在部署程序和登台站点上):

2012-07-05 19:44:25,085 WARN AmbientDataContext - 没有当前环境数据上下文 - 环境数据框架未正确初始化

启用调试日志记录后,我看到 AmbientDataContext 只是默认为 com.tridion.ambientdata.web.WebContext 我认为这是正确的吗?

有时,会显示会话清理错误 - 但不确定这是否与问题有关:

$ 2012-07-05 19:52:55,300 ERROR SessionManagerImpl - Could not clean session storage after session expired! com.tridion.broker.StorageException: Exception while cleaning-up session data: Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity at com.tridion.storage.persistence.session.SessionWrapperFactory.cleanupSessionData(SessionWrapperFactory.java:154) ~[cd_session.jar:na] at com.tridion.storage.session.SessionManagerImpl.expireSession(SessionManagerImpl.java:415) [cd_session.jar:na] at com.tridion.storage.session.SessionManagerImpl.performCleanup(SessionManagerImpl.java:231) [cd_session.jar:na] at com.tridion.storage.persistence.session.SessionsCleanerMonitor.run(SessionsCleanerMonitor.java:54) [cd_session.jar:na] at java.lang.Thread.run(Unknown Source) [na:1.6.0_26] 2012-07-05 19:52:55,300 ERROR SessionsCleanerMonitor - Could not perform sessions clean-up. Will retry in 120000 milliseconds. com.tridion.storage.persistence.session.SessionHandlingException: Could not clean session storage after session expired: Exception while cleaning-up session data: Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Exception while cleaning-up session data: Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Exception while cleaning-up session data: Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity, Rollback took place, didn't removed., attempt to create delete event with null entity, attempt to create delete event with null entity at com.tridion.storage.session.SessionManagerImpl.expireSession(SessionManagerImpl.java:444) ~[cd_session.jar:na] at com.tridion.storage.session.SessionManagerImpl.performCleanup(SessionManagerImpl.java:231) ~[cd_session.jar:na] at com.tridion.storage.persistence.session.SessionsCleanerMonitor.run(SessionsCleanerMonitor.java:54) ~[cd_session.jar:na] at java.lang.Thread.run(Unknown Source) [na:1.6.0_26]

任何帮助将不胜感激?不知道还有什么可以尝试的。

谢谢

菲尔

4

3 回答 3

6

发生该错误是因为 UI 每次在页面或内容发生更改或按下“更新预览”按钮时创建的临时文件未创建,因此当它尝试删除它们时会向您显示该错误。所以,这个错误更像是其他错误的征兆,而不是错误本身。您需要检查的是这些临时文件是否已创建。

于 2012-07-19T09:20:25.077 回答
4

问题原来是发布属性中的“发布路径”和“发布 URL”值不正确。恢复到默认值后,它现在可以工作了——非常感谢 Tridion PS 的这一点。

于 2012-08-21T07:46:04.267 回答
3

文档的这一部分 (http://sdllivecontent.sdl.com/LiveContent/content/en-US/UIU4SDLT2011SP1/task_89D69D4B67C340388652DEAECA6B5B79) 介绍了会话预览的设置。

您似乎错过了配置此部分的一些步骤。

于 2012-07-06T12:42:36.220 回答