A developer reported an issue promoting his application on Apprenda. After reviewing the SOC, the following error messages were found:
Event Log Details
Timestamp: 09/12/2014 12:25:47 PM
Application: Developer Portal Version 1 316b32db-e812-40b8-9be0-9a4292bc95cc
SessionId: 098ac2b9-9f3a-e411-b137-0050568b3f17
SessionActive: false
ProviderName: Apprenda, Inc 00000000-0000-4000-0000-000000000001
Tenant: Collaborative Development Environment 4f2c2639-8474-4ad8-8e5c-eb1d4addedd
Error event created by Apprenda.Web.Modules.GenericErrorLoggingModule from machine .
-----------------LogMessage-----------------
An unhandled exception that was not an ApprendaApplicationException either originated from the user interface, or propogated to it from a service call. The exception is included in this log entry. The requested url was:
-----------------EndLogMessage-----------------
-----------------SurfaceException (System.Web.HttpUnhandledException)-----------------
Exception of type 'System.Web.HttpUnhandledException' was thrown.
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_applications_version_controlpanel_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\developer\2159b033\96f56b3\App_Web_pzqlylz1.0.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-----------------EndSurfaceException-----------------
-----------------DeepestException (System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail])-----------------
Object reference not set to an instance of an object.
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
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 Apprenda.SaaSGrid.ProviderPortal.Service.IApplicationService.GetVersionResourceBundles(Guid id)
at Apprenda.SaaSGrid.Business.Clients.ProviderPortal.ApplicationServiceProxy.GetVersionResourceBundles(Guid id)
at Apprenda.Web.UI.Utility.ApplicationVersionArtifactAnalyzer.LoadVersionResourceBundles()
at Apprenda.ProviderPortal.Pages.ApplicationVersionControlPanelPage.<OnInit>b__3()
at System.Lazy1.CreateValue()
at System.Lazy1.LazyInitValue()
at Apprenda.ProviderPortal.Pages.ApplicationVersionControlPanelPage.get_ShowWebsiteLinks()
at Apprenda.ProviderPortal.Web.Pages.Applications.Version.ControlPanel.DefaultControlPanelPage.SetLinkVisibility()
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-----------------EndDeepestException-----------------
Event Log Details
Timestamp: 09/12/2014 12:25:46 PM
Application: Developer Portal Version 1 316b32db-e812-40b8-9be0-9a4292bc95cc
ProviderName: Apprenda, Inc 00000000-0000-4000-0000-000000000001
Error event created by Apprenda.SaaSGrid.Core.LoggingErrorHandler from machine .
-----------------LogMessage-----------------
Object reference not set to an instance of an object.
-----------------EndLogMessage-----------------
-----------------SurfaceException (System.NullReferenceException)-----------------
Object reference not set to an instance of an object.
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.<>cDisplayClass4d.<GetPatchResourceProducerRepository>b4c()
at Apprenda.Threading.MonitorCollection1.MonitorSection.Lock(LockableSection section, TimeSpan timespan)
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.GetPatchResourceProducerRepository()
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.GetResourceProducers()
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.get_NewResourceBundles()
at Apprenda.SaaSGrid.ProviderPortal.ApplicationVersion.get_ResourceBundles()
at Apprenda.SaaSGrid.ProviderPortal.Service.ProviderPortalService.GetVersionResourceBundles(IVersion version, Boolean includeLib)
at Apprenda.SaaSGrid.ProviderPortal.Service.ProviderPortalService.GetVersionResourceBundles(Func1 versionProducer, Boolean includeLib)
at SyncInvokeGetVersionResourceBundles(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Support.LogSinkInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.NestingInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Session.SessionServiceSinkInspector.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Impersonation.ContextSinkInvoker.ScopeNestedInvoker(Stack1 stack, Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Impersonation.ContextSinkInvoker.ScopeNestedInvoker(Stack1 stack, Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Impersonation.ContextSinkInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.ServiceEnhancements.InternalSession.Invoke(IOperationInvoker innerInvoker, Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.ServiceEnhancements.ContextInitializationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs, ISession session)
at Apprenda.SaaSGrid.ServiceEnhancements.ContextInitializationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
-----------------EndSurfaceException-----------------
Event Log Details
Timestamp: 09/12/2014 12:25:46 PM
Application: Developer Portal Version 1 316b32db-e812-40b8-9be0-9a4292bc95cc
ProviderName: Apprenda, Inc 00000000-0000-4000-0000-000000000001
Error event created by Apprenda.SaaSGrid.Core.LoggingErrorHandler from machine .
-----------------LogMessage-----------------
UncaughtErrorHandler(): An unhandled exception was encountered while hosting a service.
-----------------EndLogMessage-----------------
-----------------SurfaceException (System.NullReferenceException)-----------------
Object reference not set to an instance of an object.
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.<>cDisplayClass4d.<GetPatchResourceProducerRepository>b4c()
at Apprenda.Threading.MonitorCollection1.MonitorSection.Lock(LockableSection section, TimeSpan timespan)
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.GetPatchResourceProducerRepository()
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.GetResourceProducers()
at Apprenda.SaaSGrid.ProviderPortal.PatchVersionLifecycleStrategy.get_NewResourceBundles()
at Apprenda.SaaSGrid.ProviderPortal.ApplicationVersion.get_ResourceBundles()
at Apprenda.SaaSGrid.ProviderPortal.Service.ProviderPortalService.GetVersionResourceBundles(IVersion version, Boolean includeLib)
at Apprenda.SaaSGrid.ProviderPortal.Service.ProviderPortalService.GetVersionResourceBundles(Func1 versionProducer, Boolean includeLib)
at SyncInvokeGetVersionResourceBundles(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Support.LogSinkInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.NestingInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Session.SessionServiceSinkInspector.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Impersonation.ContextSinkInvoker.ScopeNestedInvoker(Stack1 stack, Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Impersonation.ContextSinkInvoker.ScopeNestedInvoker(Stack1 stack, Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.Core.Impersonation.ContextSinkInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.ServiceEnhancements.InternalSession.Invoke(IOperationInvoker innerInvoker, Object instance, Object[] inputs, Object[]& outputs)
at Apprenda.SaaSGrid.ServiceEnhancements.ContextInitializationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs, ISession session)
at Apprenda.SaaSGrid.ServiceEnhancements.ContextInitializationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
-----------------EndSurfaceException-----------------
CAUSE
The issue was caused by the files for the currently deployed application being removed/deleted from the repository where Apprenda stores them.
RESOLUTION
There are two potential solutions to the issue based on the application architecture.
- If the Application does NOT have an Apprenda deployed database, then simply deleting the application and recreating it will solve the issue.
- If the Application does have an Apprenda deployed database, you will need to retrieve the deleted files and recreate the required structure.
- If the removed files are not available contact the Apprenda Support team for other ways to recreate them.
Comments