【问题标题】:Tridion UI - Preview Not UpdatingTridion UI - 预览不更新
【发布时间】:2012-07-06 07:02:04
【问题描述】:

今天我根据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]

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

谢谢

菲尔

【问题讨论】:

  • 错误消息非常清楚地表明您没有正确安装 Ambient Data Framework - 显然既不是在登台上也不是在 cd_upload 站点上。
  • 检查 web.config (.NET) 或 web.xml (Java) 以确保正确配置环境框架过滤器。之后,仔细检查 cd_ambient_conf.xml - 另外,您是否注意到 UI 安装程序附带了一个示例 web 应用程序?您可以使用它与您的配置进行比较。

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


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

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

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

      【讨论】:

      • 感谢所有回复 - 我尝试了 Nuno 的提示,即比较部署器和暂存站点的已交付示例应用程序,甚至从这些示例中设置了一个新的部署器和暂存站点,并且只更改了最低限度的设置。尽管日志中有相同的 AmbientDataContext 警告,但仍然存在相同的问题。会话预览数据库正在更新,因此它看起来至少部分工作。谁能告诉我是否应该尝试修复 AmbientDataContext 警告,或者此警告是否也出现在工作设置的日志中?
      • 正如 Emma 所建议的,问题可能在部署时出现。您的会话预览数据库正在正确更新,但是(ASPX/JSP)文件是否也会在您请求它们时最终出现在 Web 服务器的磁盘上?
      猜你喜欢
      • 2012-06-03
      • 1970-01-01
      • 2012-10-31
      • 2012-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-06
      • 1970-01-01
      相关资源
      最近更新 更多