Bug 4831

Summary: error when running systemtap within eclipse
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: eclipse-pluginAssignee: Ioana Grigoropol <ioanax.grigoropol>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium CC: bogdanx.a.voiculescu, ioanax.grigoropol, jessica.zhang, yp.ep.watcher, yp.watcher
Version: 1.5   
Target Milestone: 1.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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