Bug 4831 - error when running systemtap within eclipse
Summary: error when running systemtap within eclipse
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M2
Assignee: Ioana Grigoropol
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-09 09:00 UTC by Alexandru Georgescu
Modified: 2015-08-07 12:59 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2013-07-09 09:00:13 UTC
HOST USED: Fedora 18 64bit
eclipse-poky:e35dfd79e3970f88a8273125890a54f75f108b97
poky:eaa5df34af42b6a37f6506847d0f3ef6ba0d298a


STEPS TO REPRODUCE
1. Perfom a headless build.
2. install the eclipse plugin.
3. Prepare a core-image-sato-sdk qemux86 image with tools-profile as EXTRA_IMAGE_FEATURES.
4. After step 3 is done, launch the qemux86 within console
5. launch the systemtap tool and fill in all the details. as a systemtap script, use the following one: 

[yocto@localhost 703-3]$ cat trac.stp 
probe syscall.open
{
        printf ("%s(%d) open (%s)\n", execname(), pid(), argstr)
}

probe timer.ms(4000) # after 4 seconds
{
        exit ()
}
[yocto@localhost 703-3]


6. Press ok 

EXPECTED RESULTS
6. the systemtap tool connects to the qemu image and provides an output in eclipse

ACTUAL RESULT
6. A popup window appears without text in it. 
IN the eclipse console I have the followin error: 

java.lang.reflect.InvocationTargetException
        at org.yocto.sdk.remotetools.actions.SystemtapModel.process(Unknown Source)
        at org.yocto.sdk.remotetools.actions.BaseModel.run(Unknown Source)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:251)
        ... 3 more
Comment 1 Ioana Grigoropol 2013-07-09 09:04:20 UTC
Patch sent on the mailing list: "Fix retrieval of System tap parameters" .
Comment 2 Ioana Grigoropol 2013-07-25 11:40:11 UTC
git commit id: 76df60597ae7cce069a5f1fd45089ea04c7394cd
Comment 3 Alexandru Georgescu 2013-09-30 12:43:28 UTC
works now