Page Type Template changes not persisted

Topics: General, Troubleshooting
Sep 26, 2011 at 2:11 PM

Hi

Working on 960gs (fluid and fixed) and PageSpeed packages for C1 and right now wanted to make showcase with
pages based on Page Types which are based on Layout Templates.

 

We run into several issues, but in separate posts:

  • PageType changes not saved
    • create new PageType 
    • go to layout tab and change default layout to some 960gs template
    • save
    • close
    • edit PageType
    • in layout tab default layout is None

20110926�15:05:32.7827�7�13�Verbose�ConsoleFacade��Starting scavenger run
20110926�15:05:32.7877�7�13�Verbose�WorkflowFacade��Workflow instance status changed to idle. Id = 13f88b40-9f6e-4c09-81aa-43bce351a829
20110926�15:07:06.1477�7�13�Verbose�WorkflowFacade��Workflow instance status changed to running. Id = 2a6b4108-4ebc-4582-8430-faba9828e2c9
20110926�15:07:06.2137�7�13�Verbose�WorkflowFacade��Workflow persisted, Id = {0}2a6b4108-4ebc-4582-8430-faba9828e2c9
20110926�15:07:06.2147�7�13�Verbose�WorkflowFacade��Workflow instance status changed to terminated. Id = 2a6b4108-4ebc-4582-8430-faba9828e2c9
20110926�15:07:06.2147�7�13�Verbose�FileWorkFlowPersisetenceService��Workflow persisted state deleted. Id = 2a6b4108-4ebc-4582-8430-faba9828e2c9
20110926�15:07:08.0137�7�13�Verbose�WorkflowFacade��Workflow instance status changed to running. Id = 74bc2de8-3ffa-4f5b-b472-2dc179bb88ba
20110926�15:07:08.0837�7�13�Verbose�WorkflowFacade��Workflow persisted, Id = {0}74bc2de8-3ffa-4f5b-b472-2dc179bb88ba
20110926�15:07:08.0887�7�13�Verbose�WorkflowFacade��Workflow instance status changed to terminated. Id = 74bc2de8-3ffa-4f5b-b472-2dc179bb88ba
20110926�15:07:08.0897�7�13�Verbose�FileWorkFlowPersisetenceService��Workflow persisted state deleted. Id = 74bc2de8-3ffa-4f5b-b472-2dc179bb88ba
20110926�15:07:08.7927�7�10�Verbose�WorkflowFacade��Workflow instance status changed to running. Id = 77ddc1af-8385-425c-ac55-e12f53be3bff
20110926�15:07:08.8367�7�10�Verbose�WorkflowFacade��Workflow persisted, Id = {0}77ddc1af-8385-425c-ac55-e12f53be3bff
20110926�15:07:08.8377�7�10�Verbose�WorkflowFacade��Workflow instance status changed to terminated. Id = 77ddc1af-8385-425c-ac55-e12f53be3bff
20110926�15:07:08.8387�7�10�Verbose�FileWorkFlowPersisetenceService��Workflow persisted state deleted. Id = 77ddc1af-8385-425c-ac55-e12f53be3bff
20110926�15:07:13.2477�7�15�Verbose�TreeServicesFacade.ExecuteElementAction��Starting Method
20110926�15:07:13.2607�7�15�Verbose�WorkflowFacade��Workflow created, Activity = e1f05b23-de20-426c-9c3b-c7a99c64fa07, Id = Composite.Plugins.Elements.ElementProviders.PageTypeElementProvider.EditPageTypeWorkflow
20110926�15:07:13.2607�7�15�Verbose�WorkflowFacade��Workflow instance status changed to idle. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:13.2617�7�15�Verbose�WorkflowFacade��Workflow instance status changed to running. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:13.3447�7�15�Verbose�WorkflowFacade��Workflow instance status changed to idle. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:13.3637�7�15�Verbose�WorkflowFacade��Workflow loaded, Activity = Composite.Plugins.Elements.ElementProviders.PageTypeElementProvider.EditPageTypeWorkflow, Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:13.3637�7�15�Verbose�WorkflowFacade��Workflow instance status changed to idle. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:13.3697�7�15�Verbose�WorkflowFacade��Workflow persisted, Activity = Composite.Plugins.Elements.ElementProviders.PageTypeElementProvider.EditPageTypeWorkflow, Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:13.4567�7�15�Verbose�TreeServicesFacade.ExecuteElementAction��Finished Method (203 ms)
20110926�15:07:13.5987�7�13�Verbose�TemplatedUiContainerFactory��Finished getting compiled '~/Composite/controls/FormsControls/FormUiContainerTemplates/DocumentExecutionContainer.ascx' (0 ms)
20110926�15:07:13.8887�7�13�Verbose�FlowUi.aspx��Time spent serving request: 328 ms
20110926�15:07:14.0297�7�21�Verbose�DataElementTreeNode��Expression = value(Composite.Data.Foundation.DataFacadeQueryable`1[Composite.Data.Types.IPageType]).OrderBy(data => data.Name)
20110926�15:07:14.0307�7�13�Critical�AdministrativeOutputTransformationHttpModule��System.Xml.XmlException: '', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
   at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
   at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
   at System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules)
   at System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results)
   at Composite.Core.WebClient.Presentation.OutputTransformationManager.XslTransformationStream.Transform(MemoryStream buffer, String mode, String browser, String platform) in D:\SRC\CMS\composite-c1\compositec1-9083-2.1.3-960gs-fluid\CompositeC1\Composite\Core\WebClient\Presentation\OutputTransformationManager.cs:line 200
   at Composite.Core.WebClient.Presentation.OutputTransformationManager.XslTransformationStream.Close() in D:\SRC\CMS\composite-c1\compositec1-9083-2.1.3-960gs-fluid\CompositeC1\Composite\Core\WebClient\Presentation\OutputTransformationManager.cs:line 262

20110926�15:07:14.3427�7�13�Verbose�TemplatedUiContainerFactory��Finished getting compiled '~/Composite/controls/FormsControls/FormUiContainerTemplates/DocumentExecutionContainer.ascx' (0 ms)
20110926�15:07:14.4787�7�13�Verbose�FlowUi.aspx��Time spent serving request: 187 ms
20110926�15:07:14.5727�7�13�Critical�AdministrativeOutputTransformationHttpModule��System.Xml.XmlException: '', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
   at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
   at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
   at System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules)
   at System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results)
   at Composite.Core.WebClient.Presentation.OutputTransformationManager.XslTransformationStream.Transform(MemoryStream buffer, String mode, String browser, String platform) in D:\SRC\CMS\composite-c1\compositec1-9083-2.1.3-960gs-fluid\CompositeC1\Composite\Core\WebClient\Presentation\OutputTransformationManager.cs:line 200
   at Composite.Core.WebClient.Presentation.OutputTransformationManager.XslTransformationStream.Close() in D:\SRC\CMS\composite-c1\compositec1-9083-2.1.3-960gs-fluid\CompositeC1\Composite\Core\WebClient\Presentation\OutputTransformationManager.cs:line 262

20110926�15:07:44.0387�7�10�Verbose�TemplatedUiContainerFactory��Finished getting compiled '~/Composite/controls/FormsControls/FormUiContainerTemplates/DocumentExecutionContainer.ascx' (0 ms)
20110926�15:07:44.1617�7�10�Verbose�WorkflowFacade��Workflow instance status changed to running. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:44.2007�7�10�Verbose�WorkflowFacade��Workflow instance status changed to idle. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:44.2177�7�10�Verbose�WorkflowFacade��Workflow loaded, Activity = Composite.Plugins.Elements.ElementProviders.PageTypeElementProvider.EditPageTypeWorkflow, Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:44.2187�7�10�Verbose�WorkflowFacade��Workflow instance status changed to idle. Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:44.2237�7�10�Verbose�WorkflowFacade��Workflow persisted, Activity = Composite.Plugins.Elements.ElementProviders.PageTypeElementProvider.EditPageTypeWorkflow, Id = e1f05b23-de20-426c-9c3b-c7a99c64fa07
20110926�15:07:44.2867�7�10�Verbose�FlowUi.aspx��Time spent serving request: 281 ms
20110926�15:07:44.3717�7�10�Critical�AdministrativeOutputTransformationHttpModule��System.Xml.XmlException: '', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
   at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
   at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
   at System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules)
   at System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results)
   at Composite.Core.WebClient.Presentation.OutputTransformationManager.XslTransformationStream.Transform(MemoryStream buffer, String mode, String browser, String platform) in D:\SRC\CMS\composite-c1\compositec1-9083-2.1.3-960gs-fluid\CompositeC1\Composite\Core\WebClient\Presentation\OutputTransformationManager.cs:line 200
   at Composite.Core.WebClient.Presentation.OutputTransformationManag

 

thanks + greetings

mel

Sep 29, 2011 at 9:47 AM

Hi again

We came a little bit further.

In the

  • file D:\compositec1-9083-2.1.3-960gs-fluid\CompositeC1\Composite\Core\WebClient\Presentation\OutputTransformationManager.cs
  • method: 
     public static MemoryStream Transform(MemoryStream buffer, String mode, String browser, String platform)
  • line: 200
  • code changed:
                    //transformer.Transform(XmlReader.Create(inputStream, readerSettings), argList, XmlWriter.Create(outputStream, xmlWriterSettings));
 
					string s_i = System.Text.UTF8Encoding.UTF8.GetString(inputStream.ToArray());
					string s_o = System.Text.UTF8Encoding.UTF8.GetString(outputStream.ToArray());
					XmlReader xml_r = XmlReader.Create(inputStream, readerSettings);
					XmlWriter xml_w = XmlWriter.Create(outputStream, xmlWriterSettings);
					transformer.Transform(xml_r, argList, xml_w);

During working with Page Templates/ DataTypes inputStream sometimes is a garbage. 
In UI changes are not persisted or UI control fails to render sometimes.
Tried:
  • searching for xml BOMs and encodings: Nada
  • detecting which files are offending: no results (yet)

thanks + greetings

 

mel