Re: [linuxtools-dev] TmfDataProvider exception handing

2010-11-30 Thread Francois Chouinard
Hi, You are actually pointing to a serious shortcoming in the current state of TMF. The scheme I had in mind was not to re-throw exceptions but rather to change the signature of ITmfDataRequest.fail() (and possibly cancel()) to take an IStatus parameter. In the case of an exception, the exception

Re: [linuxtools-dev] Running TMF unit tests

2010-11-30 Thread Francois Chouinard
Hi, How are you executing the test? You would get NullPointerException if you try to run it as a "JUnit Test" instead of "JUnit Plug-in Test". If you want to run the test individually: 1. Right-click on the TmfTraceTest.java in the Package Explorer 2. Select "Run As > JUnit Plug-in Test" If you

[linuxtools-dev] TmfDataProvider exception handing

2010-11-30 Thread Francis Giraldeau
Hi, I'm using TmfExperiment.sendRequest() with a class where I'm overloading handleData() for event processing. I have a problem with exceptions, because when an exception is throwned in handleData(), there is a general catch in TmfDataProvider that prevent this exception to surface. In s

[linuxtools-dev] Running TMF unit tests

2010-11-30 Thread Francis Giraldeau
Hi, I just imported the tmf projects into eclipse and I'm having trouble to run tmf unit tests. For example, when trying to run TmfTraceTest with junit within eclipse, I got java.lang.NullPointerException, throwned by the FileLocator because the bundle returned by TmfCoreTestPlugin is nul