Smart Object and Process Deployment Error

  • 28 March 2013
  • 2 replies
  • 2 views

Badge +1

Dear all,


I have a simple k2 project with a few smart objects and one process, which is deployed successfully to development server. However, I encounter the 4 following errors when deploying it to UAT server (the only different between DEV & UAT server is that the UAT server has its sql database in another server). Any advice will be appreciated. Thanks in advance.


Error 1 Notification Service: Task Error: System.Exception: System.Xml.XmlException: Root element is missing.


Server stack trace:
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at SourceCode.Categories.Client.CategoryServer.RefreshCategoryManager(CategoryManager categoryManager, Boolean getCategoryData)
   at SourceCode.Categories.Client.CategoryServer.GetCategoryManager(Int32 systemId, Boolean getCategoryData)
   at SourceCode.EventBus.EventAdmin.Admin.addEventToCategory(String eventID, String eventName, String categoryConnectionString, Int32 worklistNotificationCategoryID)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)


Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateCustomEventForNotification(CustomEvent customEvent, String userName)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers) C:ProjectRPVMSProcessVMSProcessobjDebugDeploymentVMSProcess.msbuild 109 6 VMSProcess
Error 2 The "SourceCode.DeploymentTasks.NotificationService.NotificationTask" task failed unexpectedly.
System.Exception: System.Exception: System.Xml.XmlException: Root element is missing.


Server stack trace:
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at SourceCode.Categories.Client.CategoryServer.RefreshCategoryManager(CategoryManager categoryManager, Boolean getCategoryData)
   at SourceCode.Categories.Client.CategoryServer.GetCategoryManager(Int32 systemId, Boolean getCategoryData)
   at SourceCode.EventBus.EventAdmin.Admin.addEventToCategory(String eventID, String eventName, String categoryConnectionString, Int32 worklistNotificationCategoryID)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)


Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateCustomEventForNotification(CustomEvent customEvent, String userName)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType)
   at SourceCode.EventBus.ClientAPI.Notification.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
   at SourceCode.DeploymentTasks.NotificationService.Common.Publish()
   at SourceCode.DeploymentTasks.NotificationService.NotificationTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) C:ProjectRPVMSProcessVMSProcessobjDebugDeploymentVMSProcess.msbuild 109 6 VMSProcess
Error 3 Notification Service: Task Error: System.Exception: System.Xml.XmlException: Root element is missing.


Server stack trace:
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at SourceCode.Categories.Client.CategoryServer.RefreshCategoryManager(CategoryManager categoryManager, Boolean getCategoryData)
   at SourceCode.Categories.Client.CategoryServer.GetCategoryManager(Int32 systemId, Boolean getCategoryData)
   at SourceCode.EventBus.EventAdmin.Admin.addEventToCategory(String eventID, String eventName, String categoryConnectionString, Int32 worklistNotificationCategoryID)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)


Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateCustomEventForNotification(CustomEvent customEvent, String userName)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
 C:ProjectRPVMSProcessVMSProcessobjDebugDeploymentVMSProcess.msbuild 110 6 VMSProcess
Error 4 The "SourceCode.DeploymentTasks.NotificationService.NotificationTask" task failed unexpectedly.
System.Exception: System.Exception: System.Xml.XmlException: Root element is missing.


Server stack trace:
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at SourceCode.Categories.Client.CategoryServer.RefreshCategoryManager(CategoryManager categoryManager, Boolean getCategoryData)
   at SourceCode.Categories.Client.CategoryServer.GetCategoryManager(Int32 systemId, Boolean getCategoryData)
   at SourceCode.EventBus.EventAdmin.Admin.addEventToCategory(String eventID, String eventName, String categoryConnectionString, Int32 worklistNotificationCategoryID)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)


Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String connection, CustomEvent customEvent, String user)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateCustomEventForNotification(CustomEvent customEvent, String userName)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean externalOwned)
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType)
   at SourceCode.EventBus.ClientAPI.Notification.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
   at SourceCode.DeploymentTasks.NotificationService.Common.Publish()
   at SourceCode.DeploymentTasks.NotificationService.NotificationTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
 C:ProjectRPVMSProcessVMSProcessobjDebugDeploymentVMSProcess.msbuild 110 6 VMSProcess


2 replies

Badge +8

My guess is that MSDTC isn't working as expected. The usual error is different from the one you have reported, but I have seen this error caused by MSDTC once or twice. Have a look at the following article:


http://support.microsoft.com/kb/306843


Specifically, have a look at the DTCPing.exe tool. This should give you a good indication. Also ensure that it succeeds without warnings. Cloned base images will give you the following result:


WARNING:the CID values for both test machines are the same
 while this problem won't stop DTCping test, MSDTC will fail for this


MSDTC will fail and as such, your K2 deployment. Reinstall MSDTC or change the CIDs on one of the machines.


 


Lastly, have a look at your K2 Server logs, this might give you additional insights.

Badge +1

Hi dc,


Thank you very much for the reply. Sorry for the late reply. It took a very long time to request the network team to make the change. The problem is solved. Thanks.


 

Reply