mokospeti's picture
Jul 06, 2013
9523 views
Reputation: 13

Program Quit on bill print or close

Hi!

I faced the following problem after updateing to V3.0.11 Beta:

If I want to close or print a ticket, it quits with the following error:

-----------------------------

[General Info]

 

Application: SambaPOS

Version:     3.0.11 BETA

Region:      hu

DB:          SQ

Machine:     HOTELSZERVER-PC

User:        HotelServer

Date:        2013.07.06.

Time:        11:52

 

User Explanation:

 

HotelServer said ""

-----------------------------

 

[Exception Info 1]

 

Top-level Exception

Type:        System.Reflection.TargetInvocationException

Message:     A meghívott objektum kivételt váltott ki.

Source:      mscorlib

Stack Trace: a következő helyen: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   a következő helyen: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   a következő helyen: System.Delegate.DynamicInvokeImpl(Object[] args)

   a következő helyen: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   a következő helyen: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   a következő helyen: System.Windows.Threading.DispatcherOperation.InvokeImpl()

   a következő helyen: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   a következő helyen: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   a következő helyen: System.Windows.Threading.DispatcherOperation.Invoke()

   a következő helyen: System.Windows.Threading.Dispatcher.ProcessQueue()

   a következő helyen: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   a következő helyen: MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   a következő helyen: MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   a következő helyen: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   a következő helyen: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   a következő helyen: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   a következő helyen: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   a következő helyen: MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   a következő helyen: System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   a következő helyen: System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   a következő helyen: System.Windows.Threading.Dispatcher.Run()

   a következő helyen: System.Windows.Application.RunDispatcher(Object ignore)

   a következő helyen: System.Windows.Application.RunInternal(Window window)

   a következő helyen: System.Windows.Application.Run(Window window)

   a következő helyen: Samba.Presentation.App.Main()

 

Inner Exception 1

Type:        System.Reflection.TargetInvocationException

Message:     A meghívott objektum kivételt váltott ki.

Source:      mscorlib

Stack Trace: a következő helyen: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   a következő helyen: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   a következő helyen: System.Delegate.DynamicInvokeImpl(Object[] args)

   a következő helyen: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   a következő helyen: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   a következő helyen: System.Windows.Threading.DispatcherOperation.InvokeImpl()

   a következő helyen: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   a következő helyen: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   a következő helyen: System.Windows.Threading.DispatcherOperation.Invoke()

   a következő helyen: System.Windows.Threading.Dispatcher.ProcessQueue()

   a következő helyen: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   a következő helyen: MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   a következő helyen: MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   a következő helyen: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   a következő helyen: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   a következő helyen: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   a következő helyen: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   a következő helyen: MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   a következő helyen: System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   a következő helyen: System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   a következő helyen: System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)

   a következő helyen: System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)

   a következő helyen: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   a következő helyen: Samba.Presentation.Services.Common.ExtensionMethods.PublishEvent[TEventsubject](TEventsubject eventArgs, String eventTopic, Boolean wait)

   a következő helyen: Samba.Presentation.Common.Services.ApplicationState.<NotifyEvent>b__7(ActionData x)

   a következő helyen: Samba.Services.Implementations.AutomationModule.NotificationService.NotifyEvent(String eventName, Object dataParameter, Int32 terminalId, Int32 departmentId, Int32 userRoleId, Action`1 dataAction)

   a következő helyen: Samba.Presentation.Common.Services.ApplicationState.NotifyEvent(String eventName, Object dataObject)

   a következő helyen: Samba.Presentation.Services.Implementations.TicketModule.TicketService.CloseTicket(Ticket ticket)

   a következő helyen: Samba.Modules.PosModule.PosViewModel.CloseTicket()

   a következő helyen: Samba.Modules.PosModule.PosViewModel.OnTicketEvent(EventParameters`1 obj)

   a következő helyen: Microsoft.Practices.Prism.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)

   a következő helyen: Microsoft.Practices.Prism.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)

   a következő helyen: Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)

   a következő helyen: Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)

   a következő helyen: Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)

 

Inner Exception 2

Type:        System.Reflection.TargetInvocationException

Message:     A meghívott objektum kivételt váltott ki.

Source:      mscorlib

Stack Trace: a következő helyen: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   a következő helyen: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   a következő helyen: System.Delegate.DynamicInvokeImpl(Object[] args)

   a következő helyen: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   a következő helyen: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   a következő helyen: System.Windows.Threading.DispatcherOperation.InvokeImpl()

   a következő helyen: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   a következő helyen: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   a következő helyen: System.Windows.Threading.DispatcherOperation.Invoke()

   a következő helyen: System.Windows.Threading.Dispatcher.ProcessQueue()

   a következő helyen: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   a következő helyen: MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   a következő helyen: MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   a következő helyen: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   a következő helyen: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   a következő helyen: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   a következő helyen: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   a következő helyen: MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   a következő helyen: System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   a következő helyen: System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   a következő helyen: System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)

   a következő helyen: System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)

   a következő helyen: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   a következő helyen: Samba.Presentation.Services.Common.ExtensionMethods.PublishEvent[TEventsubject](TEventsubject eventArgs, String eventTopic, Boolean wait)

   a következő helyen: Samba.Presentation.Common.Services.ApplicationState.<NotifyEvent>b__7(ActionData x)

   a következő helyen: Samba.Services.Implementations.AutomationModule.NotificationService.NotifyEvent(String eventName, Object dataParameter, Int32 terminalId, Int32 departmentId, Int32 userRoleId, Action`1 dataAction)

   a következő helyen: Samba.Presentation.Common.Services.ApplicationState.NotifyEvent(String eventName, Object dataObject)

   a következő helyen: Samba.Presentation.Services.Implementations.TicketModule.TicketService.UpdateTicketState(Ticket ticket, String stateName, String currentState, String state, String stateValue, Int32 quantity)

   a következő helyen: Samba.Presentation.ViewModels.GenericRuleRegistator.<HandleEvents>b__45(EventParameters`1 x)

   a következő helyen: Microsoft.Practices.Prism.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)

   a következő helyen: Microsoft.Practices.Prism.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)

   a következő helyen: Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)

   a következő helyen: Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)

   a következő helyen: Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)

 

Inner Exception 3

Type:        System.NullReferenceException

Message:     Az objektumhivatkozás nincs beállítva semmilyen objektumpéldányra.

Source:      Samba.Presentation.ViewModels

Stack Trace: a következő helyen: Samba.Presentation.ViewModels.GenericRuleRegistator.<HandleEvents>b__45(EventParameters`1 x)

   a következő helyen: Microsoft.Practices.Prism.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)

   a következő helyen: Microsoft.Practices.Prism.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)

   a következő helyen: Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)

   a következő helyen: Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)

   a következő helyen: Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)

 

-----------------------------

 

[Assembly Info]

 

PresentationCore, Version=4.0.0.0

Microsoft.Practices.Prism, Version=4.0.0.0

WindowsBase, Version=4.0.0.0

mscorlib, Version=4.0.0.0

Samba.Infrastructure.Data, Version=1.0.0.0

PresentationFramework, Version=4.0.0.0

System.Xaml, Version=4.0.0.0

Samba.Presentation.Services, Version=1.0.0.0

Samba.Infrastructure, Version=1.0.0.0

FluentValidation, Version=3.4.0.0

Samba.Domain, Version=1.0.0.0

Samba.Services, Version=1.0.0.0

System, Version=4.0.0.0

Stateless, Version=1.0.0.0

System.Core, Version=4.0.0.0

System.Drawing, Version=4.0.0.0

System.Windows.Forms, Version=4.0.0.0

Samba.Localization, Version=1.0.0.0

Microsoft.Practices.ServiceLocation, Version=1.0.0.0

Samba.Persistance, Version=1.0.0.0

Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0

System.ComponentModel.Composition, Version=4.0.0.0

PropertyTools, Version=2012.4.14.1

 

-----------------------------

 

[System Info]

 

Operating System

-Microsoft Windows 7 Professional

--CodeSet = 1250

--CSDVersion = Service Pack 1

--CurrentTimeZone = 120

--FreePhysicalMemory = 248520

--OSArchitecture = 32-bit

--OSLanguage = 1038

--ServicePackMajorVersion = 1

--ServicePackMinorVersion = 0

--Version = 6.1.7601

 

Machine

-HOTELSZERVER-PC

--Manufacturer = To Be Filled By O.E.M.

--Model = To Be Filled By O.E.M.

--TotalPhysicalMemory = 1599266816

--UserName = HotelSzerver-PC\HotelServer

4 answers

emreeren's picture
emreeren
Jul 06, 2013
Reputation: 595

It looks like I've accidentally opened some rule parameters for translation. Please check "Update Ticket Status" rule and correct if any parameter should be named as "Status" is translated.

Yes, you were right. Several 'Status' were translated to 'Állapot' at Automation/Actions. Hovewer I have not found any transaltion at Rules. I have corrected them, but does not helped. :(

I also tried to change language to english, but nothing changed. Any solutins? Should I change translaion in transiflex? 

emreeren's picture
emreeren
Jul 06, 2013
Reputation: 595

Can you e-mail me your database backup to emre@sambapos.org?

Yes, I've sent.

emreeren's picture
emreeren
Jul 06, 2013
Reputation: 595

My bad, I couldn't receive it because of a server problem. Can you redirect it to emreeren@gmail.com?

I forwarded. Hope you will receive it. If not, I'll try to send it from an other mail.

emreeren's picture
emreeren
Jul 06, 2013
Reputation: 595

Thank you very much for the database backup. That error is something different. You can change "Status" back to your local language on "Update Ticket Status" event. This is how it displays on ticket and safe to localize.

The problem will be fixed on 3.0.12 setup. I'll release it shortly.

We have already answers to
1029 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634