SDL Tridion UI 2012 上的持续更新预览警报 [英] Continuously Update Preview alert on SDL Tridion UI 2012

查看:23
本文介绍了SDL Tridion UI 2012 上的持续更新预览警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在某些测试(默认)页面上建立新的 SDL Tridion UI 2012 功能.尽管我多次单击更新预览",但我仍不断收到此页面的预览不是最新的"警报.我使用的是虚拟图像,所以除了我自己之外,其他任何人都无法编辑页面.不管哪个组件发生了变化.我查看了会话预览"Web 服务端的 cd_core.log 文件,发现这些节点很有趣:

I am trying to establish new SDL Tridion UI 2012 functionality on some test (default) pages. I am continuously retrieve "The preview for this page is not up to date" alert despite the fact that I click on "Update preview" several time. I was using virtual image, so anyone else is not possible to edit page except myself. No matters which component changed. I have taken a look into cd_core.log file on "session preview" web service side and find these nodes interesting:

INFO  WritableODataClaimProcessor - No session wrapper is installed, not allowing modification operations
DEBUG HandleSessionContentUtil - There are no session wrappers into storage config file!
DEBUG HandleSessionContentUtil - There are no session wrappers into storage config file!
DEBUG WebContext - setCurrentClaimStore: com.tridion.siteedit.preview.PreviewClaimStore@dc60af, thread: Thread-59
DEBUG WritableODataClaimProcessor - Removing sessionId claim from ClaimStore!
DEBUG ClaimStore - remove: uri=taf:claim:contentdelivery:webservice:preview:sessionid
DEBUG WebContext - setCurrentClaimStore: null, thread: Thread-59

最有趣的部分是会话包装器被添加到会话预览"Web 服务端的 cd_storage_conf.xml 中.波纹管是会话预览"cd_storage_conf.xml 的一部分:

The most interesting part is that session wrappers were added to cd_storage_conf.xml on "session preview" web service side. Bellow is part of "session preview" cd_storage_conf.xml:

    <Storages>       
        <Wrappers>               
            <Wrapper Name="SessionWrapper">             
                <Timeout>120000</Timeout>                  
                <Storage Type="persistence" Id="sqlServerDb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
                    <Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
                    <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
                        <Property Name="serverName" Value="T2011" />
                        <Property Name="portNumber" Value="1433" />
                        <Property Name="databaseName" Value="Tridion_Session_Preview"/>
                        <Property Name="user" Value="TridionSessionPreview"/>
                        <Property Name="password" Value="tridion"/>
                    </DataSource>
                </Storage>                   
            </Wrapper>
        </Wrappers>            
        <StorageBindings>
            <Bundle src="preview_dao_bundle.xml"/>            
        </StorageBindings>       
        <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="staging" defaultFilesystem="false">
            <Root Path="C:\inetpub\wwwroot\software" />
        </Storage>
       <Storage Type="persistence" Id="sqlServerDb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory">
            <Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
            <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
                <Property Name="serverName" Value="T2011" />
                <Property Name="portNumber" Value="1433" />
                <Property Name="databaseName" Value="Tridion_Broker_Staging"/>
                <Property Name="user" Value="TridionBrokerUser"/>
                <Property Name="password" Value="tridion"/>
            </DataSource>
        </Storage>
    </Storages>    
</Global>

<ItemTypes defaultStorageId="sqlServerDb" cached="false">
    <Item typeMapping="Page" cached="false" storageId="staging"/>
</ItemTypes>

我检查了 cd_storage_conf.xml 有效性状态,一切正常(尝试通过 IE 打开 XML,它显示正确).

I have check cd_storage_conf.xml validity state and everything is OK (try to open XML via IE and it is showed correctly).

当我重新发布页面(完成编辑)时,重新加载页面后一切都是正确的状态,直到对任何组件进行第一次更改.这种突如其来的状态让我感到如此强烈的疼痛和头痛,更让我感到如此紧张...... :).

When I republish the page (Finish Editing) everything is correct state after reload the page until the first change on any components is made. This unexpected state gave me such a strong pain and headache, furthermore create me a so nervous... :).

推荐答案

以下是 Update Preview 的作用,确保实际页面刷新前的所有步骤都能正常工作并且配置正确,您应该做好:

Here's what Update Preview does, make sure all the steps up to the actual page refresh work and are correctly configured and you should be good to do:

  1. 在预览模式下渲染您的模板
  2. 将结果发布到内容交付网络服务
  3. CD Web 服务写入会话包装器数据库
  4. 刷新页面
  5. 环境框架过滤器(或用于 .NET 的 HTTP 模块)检查会话令牌
  6. 查询数据库以搜索具有相同会话令牌的内容
  7. 如果找到内容,则将其与页面上的内容合并.

典型问题(根据我目前的经验)与环境框架配置有关 - 您的应用程序上未安装/配置模块,或者 cd_ambient_conf.xml 包含无效的配置设置.

Typical issues (in my experience so far) are around Ambient Framework Configuration - Either the modules are not installed/configured on your application, or the cd_ambient_conf.xml contains invalid configuration settings.

跟踪第 1 步中的日志以找出失败的地方可能值得 - 知道失败的地方通常是解决方案的 80%.

Might be worth tracing the logs from step 1 to figure out where it's failing - knowing where it fails is usually 80% of the solution.

这篇关于SDL Tridion UI 2012 上的持续更新预览警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆