cancel
Showing results for 
Search instead for 
Did you mean: 

Transmit Step fail on Windows client

Former Member
0 Kudos

Hi,

I have added a Trasmit on an action to retrieve through oData service some information of an equipment from ECC. Nowadays, it works fine on ipad and android client, but when I try to use this action from Windows Client the application crashes and I get the following error on windows log:

Applicazione: AgentryClient.exe

Versione framework: v4.0.30319

Descrizione: il processo è stato terminato a causa di un'eccezione non gestita.

Informazioni sull'eccezione: System.NullReferenceException

   in AgentryClientDotNET.WindowWizardPage.Cancel_Click(System.Object, System.Windows.RoutedEventArgs)

   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

   in System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

   in System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)

   in System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)

   in System.Windows.Controls.Primitives.ButtonBase.OnClick()

   in System.Windows.Controls.Button.OnClick()

   in System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)

   in System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)

   in System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)

   in System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)

   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

   in System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

   in System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)

   in System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)

   in System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)

   in System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)

   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

   in System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

   in System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)

   in System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)

   in System.Windows.Input.InputManager.ProcessStagingArea()

   in System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)

   in System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)

   in System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)

   in System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)

   in System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

   in MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

   in MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)

   in System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

   in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

   in System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)

   in MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

   in MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)

   in System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)

   in System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)

   in System.Windows.Application.RunDispatcher(System.Object)

   in System.Windows.Application.RunInternal(System.Windows.Window)

   in System.Windows.Application.Run(System.Windows.Window)

   in AgentryClientDotNET.App.Main()

I also attached this log from Agentry Test Envirnoment:

2016/09/05 19:08:10.569: Opening log file

2016/09/05 19:08:10.569: + Module=PM

2016/09/05 19:08:10.569:   + Action=Z_EquipmentInputAction

2016/09/05 19:08:10.569:     + Trasmissione del client al server='Z_EquipmentInputTransmit'

2016/09/05 19:08:10.569:       + Trasmissione del client al server='Z_EquipmentInputTransmit'

2016/09/05 19:08:10.569:         (19)  Inf.: inizia esecuzione del passo.

2016/09/05 19:08:10.571:         (160) Ignora se offline: false.  Avvio automatico: true.  Completamento automatico: true.  Nascondi videata: true.  Nascondi timeout videata: 00:01:30

2016/09/05 19:08:10.571:         (22)  Inf.: esegui aggiornamenti in sospeso.

2016/09/05 19:08:10.572:         (23)  Inf.: inizia la validazione delle chiamate.

2016/09/05 19:08:10.572:         (26)  Stato: Action_Pending - Inizio della trasmissione.

2016/09/05 19:08:10.610:         + Module=PM

2016/09/05 19:08:10.610:           + Action=Transmit

and this screens of my action:

Thank you for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

mark_pe
Active Contributor
0 Kudos

Fabbian,

So from what you stated above:

~~~~~~~Start Here~~~~~~~~~

Applicazione: AgentryClient.exe

Versione framework: v4.0.30319   <-- YOUR VERSION is Version 4.0.30319 (Is this correct - I have not seen version 4 in a long time?)

Descrizione: il processo è stato terminato a causa di un'eccezione non gestita.

Informazioni sull'eccezione: System.NullReferenceException

   in AgentryClientDotNET.WindowWizardPage.Cancel_Click(System.Object, System.Windows.RoutedEventArgs)

   in System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

~~~~~~~End Here~~~~~~~~~~

Let us go line by line on your error.

  1. You have an Agentry Windows Client of Version 4.0.X?
  2. Then on the next line you get:  System.NullReferenceException when the AgentryClientDotNET.WindowWizardPage.Cancel_Click was done?

- Why was it canceled?

- This also indicated that something was null on cancel, is this good enough to crash the client?

Is this custom app supposed to cancel the transmit? There may be something missing or not being populated on the fetch properties that you are trying to get from the backend through oDATA.

But from the point of error, the NULLReferenceException is on the Cancel_Click.  Hopefully that is root cause.

Regards,

SAP Mobile Support