Home » Eclipse Projects » Eclipse 4 » Contacts based app, use of IObservable(Assertion failed exception on getting from IObservable)
| | | | | | | |
Re: Contacts based app, use of IObservable [message #530026 is a reply to message #529974] |
Wed, 28 April 2010 08:32 |
David Wynter Messages: 4624 Registered: July 2009 |
Senior Member |
|
|
I know what the error is, I just cannot see why my call to TestCaseView.doSave is different in the thread it is run in compared to the Contacts demo equivalennt. Here is the comparison between the stack traces at the point of saving.
Contacts example
Thread [ModalContext] (Suspended (breakpoint at line 74 in DetailsView))
DetailsView.doSave(IProgressMonitor) line: 74
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
InjectionMethod.callMethod(Object[]) line: 102
InjectionMethod.invoke(boolean, boolean) line: 63
InjectorImpl.invokeUsingClass(Object, Class, String, Object, IObjectProvider) line: 270
InjectorImpl.invoke(Object, String, Object, IObjectProvider) line: 255
ContextInjectionFactory.invoke(Object, String, IEclipseContext, Object) line: 140
SaveHandler$1.run(IProgressMonitor) line: 57
ModalContext$ModalContextThread.run() line: 121
Here is my application
Thread [ModalContext] (Suspended (breakpoint at line 60 in TestCaseView))
TestCaseView.doSave(IProgressMonitor) line: 60
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
InjectionMethod.callMethod(Object[]) line: 102
InjectionMethod.invoke(boolean, boolean) line: 63
InjectorImpl.invokeUsingClass(Object, Class, String, Object, IObjectProvider) line: 270
InjectorImpl.invoke(Object, String, Object, IObjectProvider) line: 255
ContextInjectionFactory.invoke(Object, String, IEclipseContext, Object) line: 140
SaveHandler$1.run(IProgressMonitor) line: 42
ModalContext$ModalContextThread.run() line: 121
I cannot see the difference here, the former works the latter fails.
What am I missing here?
Thx.
David
|
|
| | | | | | | |
Re: Contacts based app, use of IObservable [message #575270 is a reply to message #529974] |
Wed, 28 April 2010 08:32 |
David Wynter Messages: 4624 Registered: July 2009 |
Senior Member |
|
|
I know what the error is, I just cannot see why my call to TestCaseView.doSave is different in the thread it is run in compared to the Contacts demo equivalennt. Here is the comparison between the stack traces at the point of saving.
Contacts example
Thread [ModalContext] (Suspended (breakpoint at line 74 in DetailsView))
DetailsView.doSave(IProgressMonitor) line: 74
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
InjectionMethod.callMethod(Object[]) line: 102
InjectionMethod.invoke(boolean, boolean) line: 63
InjectorImpl.invokeUsingClass(Object, Class, String, Object, IObjectProvider) line: 270
InjectorImpl.invoke(Object, String, Object, IObjectProvider) line: 255
ContextInjectionFactory.invoke(Object, String, IEclipseContext, Object) line: 140
SaveHandler$1.run(IProgressMonitor) line: 57
ModalContext$ModalContextThread.run() line: 121
Here is my application
Thread [ModalContext] (Suspended (breakpoint at line 60 in TestCaseView))
TestCaseView.doSave(IProgressMonitor) line: 60
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
InjectionMethod.callMethod(Object[]) line: 102
InjectionMethod.invoke(boolean, boolean) line: 63
InjectorImpl.invokeUsingClass(Object, Class, String, Object, IObjectProvider) line: 270
InjectorImpl.invoke(Object, String, Object, IObjectProvider) line: 255
ContextInjectionFactory.invoke(Object, String, IEclipseContext, Object) line: 140
SaveHandler$1.run(IProgressMonitor) line: 42
ModalContext$ModalContextThread.run() line: 121
I cannot see the difference here, the former works the latter fails.
What am I missing here?
Thx.
David
|
|
| |
Goto Forum:
Current Time: Wed Sep 25 15:51:56 GMT 2024
Powered by FUDForum. Page generated in 0.07416 seconds
|