Tridion UI - 预览不更新

时间:2012-07-05 20:01:07

标签: tridion tridion-2011 tridion-content-delivery

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

我看到有另外一篇与此相关的帖子(Tridion New UI Preview Site is not reflecting with the changes unless pulished),但我没有使用任何虚拟目录。

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

  

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]

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

由于

菲尔

3 个答案:

答案 0 :(得分:6)

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

答案 1 :(得分:4)

该问题在发布属性中被证明是错误的“发布路径”和“发布网址”值。恢复到默认值后,它现在可以正常工作 - 非常感谢Tridion PS。

答案 2 :(得分:3)

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

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