Error Changing Folder of a CDA Application

book

Article ID: 207491

calendar_today

Updated On:

Products

CA Continuous Delivery Automation - Automation Engine

Issue/Introduction

When trying to change the FOLDER for an application, getting the following error Object reference not set to an instance of an object.

ERROR Ventum.Bond2.Web.Infrastructure.Widget.BaseWidget - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Ventum.Bond2.Services.ApplicationPackAeConnector.GuardWorkflowsAvailableForEditing(Workflow appWorkflow, Boolean isCheckComponent, String appFolder) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.AEBridge\Services\ApplicationPackAeConnector.Workflow.cs:line 806
   at Ventum.Bond2.Services.ApplicationPackAeConnector.ChangeApplicationFolderCommand.Execute() in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.AEBridge\Services\ApplicationPackAeConnector.Command.ChangeApplicationFolder.cs:line 34
   at Ventum.Bond2.Services.ApplicationPackAeConnector.Run(ConnectorCommand`1 operation) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.AEBridge\Services\ApplicationPackAeConnector.Command.cs:line 16
   at Ventum.Bond2.Services.AssignmentImpl.Accessors.ApplicationAccessor.SetFolder(Application application, Folder folder) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Services.AssignmentImpl\Accessors\ApplicationAccessor.cs:line 53
   at Ventum.Bond2.Services.AssignmentImpl.Accessors.AccessorDictionary`1.Execute[TObject,TProperty](String propertyName, TObject entity, TProperty value) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Services.AssignmentImpl\Accessors\AbstractAccessors.cs:line 208
   at Ventum.Bond2.Services.AssignmentImpl.Accessors.HibernateSessionAwareDelegatedAccessor`1.Ventum.Bond2.Services.AssignmentImpl.IAccessor.Set[TObject,TProperty](TObject entity, Expression`1 expression, TProperty value) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Services.AssignmentImpl\Accessors\AbstractAccessors.cs:line 129
   at Ventum.Bond2.Services.AssignmentImpl.AssignmentService.Set[TObject,TProperty](TObject entity, Expression`1 expression, TProperty value) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Services.AssignmentImpl\AssignmentService.cs:line 29
   at Ventum.Bond2.Web.Presenters.Impl.Details.ApplicationDetailWidgetPresenter.Update(ApplicationDetailVM applicationVM, Boolean isConfirmed) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Web.Framework\Presenters\Impl.Details\ApplicationDetailWidgetPresenter.cs:line 56
   at Castle.Proxies.Invocations.IApplicationDetailWidgetPresenter_Update.InvokeMethodOnTarget()
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Ventum.Bond2.Wiring.ExceptionLoggingInterceptor.Intercept(IInvocation invocation) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Wiring\ExceptionLoggingInterceptor.cs:line 43
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Ventum.Bond2.Security.AccessCheckInterceptor.Intercept(IInvocation invocation) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Security\AccessCheckInterceptor.cs:line 25
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Ventum.Bond2.Hibernate.SessionScopeInterceptor.Proceed(Action doInvoke, TransactionMode mode) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Hibernate\SessionScopeInterceptor.cs:line 41
   at Ventum.Bond2.Hibernate.SessionScopeInterceptor.Intercept(IInvocation invocation) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Services.Impl\Hibernate\SessionScopeInterceptor.cs:line 183
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.IHasView`1Proxy_2.Update(ApplicationDetailVM ApplicationVM, Boolean isConfirmed)
   at Ventum.Bond2.Web.Widgets.Details.ApplicationDetailWidget.ApplicationDataSource_Updating(Object sender, ObjectContainerDataSourceUpdatingEventArgs e) in E:\BuildAgent\work\bondrelease\10.0.1\Projects\Ventum.Bond2.Web\Widgets.Details\ApplicationDetailWidget.ascx.cs:line 75

 

Cause

AE and CDA becoming out of sync. 

Environment

Release : 12.3

Component : RELEASE MANAGER

Resolution

The object reference not set to an instance of an object when changing the folder within release automation can be caused by the folder structure within the automation engine. To confirm this do the following:

Check the name within the Release Automation perspective (e.x. new-folder-name).
Go to the Process Assembly perspective and check the name (e.x. old-folder-name)
If these are different (and in these cases they have been):
Rename the Release Automation perspective to the original name.
Make sure the folder structure is now in the old structure.

Redo the renaming from the Release Automation perspective.