how to solve internal error

how to solve internal error

  

Hi, i  was trying to publish my mobile app after some changes and this occurred suddenly.
I tried to overcome it by reverting all changes but it  didnt help.

Kindly guide me.
Thanks.


Error msg: 



Internal Error

An error occurred in task 'Loading eSpace with key '38495ce7-9221-4903-b185-a3b5252f58b0'':

Unable to cast object of type 'PlaceholderArgument' to type 'OutSystems.HubEdition.Compiler.Interfaces.IObjectWithExtendedProperties'.

Details : System.InvalidCastException: Unable to cast object of type 'PlaceholderArgument' to type 'OutSystems.HubEdition.Compiler.Interfaces.IObjectWithExtendedProperties'.

   at OutSystems.HubEdition.Compiler.ExtendedProperty.CreateOrUpdateStyleProperty(AbstractWidget widget)

   at OutSystems.HubEdition.Compiler.AbstractWidget.AfterLoad()

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.NRWebWidgets.WebBlockInstance.LoadChildren(ESpaceReader reader)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[Type](ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.NRNodes.AbstractWebContentNode.GetChildCollection(CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.HubEdition.Compiler.Locale.EnsureResourceLoading(ESpace eSpace)

   at OutSystems.HubEdition.Compiler.ESpace.AfterLoad()

   at OutSystems.HubEdition.Compiler.ESpace..ctor(Oml oml, CompilationContext context, Boolean loadModelOnly)

   at OutSystems.HubEdition.Compiler.Compiler.LoadEspace(CompilationContext context, HEMessageArrayList& messages, Byte[] fullOml, Byte[] partialOml, Boolean allowInvalid)

   at #WTb.#PUb.InnerExecute(IESpace& eSpace)

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

Exception Details:

[1] Internal Error: An error occurred in task 'Loading eSpace with key '38495ce7-9221-4903-b185-a3b5252f58b0'':

Unable to cast object of type 'PlaceholderArgument' to type 'OutSystems.HubEdition.Compiler.Interfaces.IObjectWithExtendedProperties'.

Details : System.InvalidCastException: Unable to cast object of type 'PlaceholderArgument' to type 'OutSystems.HubEdition.Compiler.Interfaces.IObjectWithExtendedProperties'.

   at OutSystems.HubEdition.Compiler.ExtendedProperty.CreateOrUpdateStyleProperty(AbstractWidget widget)

   at OutSystems.HubEdition.Compiler.AbstractWidget.AfterLoad()

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.NRWebWidgets.WebBlockInstance.LoadChildren(ESpaceReader reader)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[Type](ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.NRNodes.AbstractWebContentNode.GetChildCollection(CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.HubEdition.Compiler.Locale.EnsureResourceLoading(ESpace eSpace)

   at OutSystems.HubEdition.Compiler.ESpace.AfterLoad()

   at OutSystems.HubEdition.Compiler.ESpace..ctor(Oml oml, CompilationContext context, Boolean loadModelOnly)

   at OutSystems.HubEdition.Compiler.Compiler.LoadEspace(CompilationContext context, HEMessageArrayList& messages, Byte[] fullOml, Byte[] partialOml, Boolean allowInvalid)

   at #WTb.#PUb.InnerExecute(IESpace& eSpace)

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.Run(InputType context, IMessageBroker messageBroker, OutputType& result)

   at OutSystems.HubEdition.ServerCommon.Tasks.TaskRunner.Run()

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

   at #9Xb.#2Yb.#uo.#N4b()

   at OutSystems.HubEdition.ServerCommon.Tasks.TaskRunner.Run()

   at #9Xb.#2Yb.InnerExecute()

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

   at OutSystems.HubEdition.DeploymentController.Compiler.<>c__DisplayClass261_0.<PublishOml>b__0()

   at OutSystems.HubEdition.DeploymentController.Compiler.PublishOml(Object publishContext)

   at #qPb.#Sub.#AQ.#3Cb(Object s)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

[2] System.InvalidCastException: Unable to cast object of type 'PlaceholderArgument' to type 'OutSystems.HubEdition.Compiler.Interfaces.IObjectWithExtendedProperties'.

   at OutSystems.HubEdition.Compiler.ExtendedProperty.CreateOrUpdateStyleProperty(AbstractWidget widget)

   at OutSystems.HubEdition.Compiler.AbstractWidget.AfterLoad()

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.NRWebWidgets.WebBlockInstance.LoadChildren(ESpaceReader reader)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)

   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[Type](ICompilerSequence`1& collection, CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.NRNodes.AbstractWebContentNode.GetChildCollection(CollectionIndex collectionIndex)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)

   at OutSystems.HubEdition.Compiler.Locale.InnerLoadTextResources(AbstractObject abstractObject, Boolean full, ObjectKey compilationUnitKey)

   at OutSystems.HubEdition.Compiler.Locale.EnsureResourceLoading(ESpace eSpace)

   at OutSystems.HubEdition.Compiler.ESpace.AfterLoad()

   at OutSystems.HubEdition.Compiler.ESpace..ctor(Oml oml, CompilationContext context, Boolean loadModelOnly)

   at OutSystems.HubEdition.Compiler.Compiler.LoadEspace(CompilationContext context, HEMessageArrayList& messages, Byte[] fullOml, Byte[] partialOml, Boolean allowInvalid)

   at #WTb.#PUb.InnerExecute(IESpace& eSpace)

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()

   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

I reverted to the previous successful publish and it got solved .

Sometimes you hit some limits and everything breaks down, can also be the problem with some espaces giving error's or (indirect) circular dependencies. Check for exclamation marks for referenced eSpaces and extensions.. 


Regards,

Wim