[Wala-wala] PDFSlice example faild

6 views
Skip to first unread message

Hanin Talal

unread,
Dec 8, 2022, 7:49:37 AM12/8/22
to Wala...@lists.sourceforge.net
Good Afternoon everyone,
I tried to run the PDFSlice example with the testdata.jar after building the wala project via gradle in intellij. the build within intellij GUI succeed but the example run give me the following result:
> Task :com.ibm.wala.core:PDFSlice.main()
Statement: NORMAL main:5 = invokestatic < Application, Lslice/Slice4, foo(I)I > 3 @1 exception:4 Node: < Application, Lslice/Slice4, main([Ljava/lang/String;)V > Context: Everywhere
SLICE:

1   NORMAL_RET_CALLER:Node: < Application, Lslice/Slice4, main([Ljava/lang/String;)V > Context: Everywhere[1]5 = invokestatic < Application, Lslice/Slice4, foo(I)I > 3 @1 exception:4
2   NORMAL main:invokestatic < Application, Lslice/Slice4, bar(I)V > 5 @6 exception:6 Node: < Application, Lslice/Slice4, main([Ljava/lang/String;)V > Context: Everywhere
3   PARAM_CALLER:Node: < Application, Lslice/Slice4, main([Ljava/lang/String;)V > Context: Everywhere[4]invokestatic < Application, Lslice/Slice4, bar(I)V > 5 @6 exception:6 v5
4   PARAM_CALLEE:Node: < Application, Lslice/Slice4, bar(I)V > Context: Everywhere v1
Exception in thread "main" java.lang.IllegalArgumentException: null gvExe
at com.ibm.wala.core.viz.PDFViewUtil.launchPDFView(PDFViewUtil.java:166)
at com.ibm.wala.examples.drivers.PDFSlice.run(PDFSlice.java:207)
at com.ibm.wala.examples.drivers.PDFSlice.run(PDFSlice.java:112)
at com.ibm.wala.examples.drivers.PDFSlice.main(PDFSlice.java:100)

> Task :com.ibm.wala.core:PDFSlice.main() FAILED

I will be so thankful for any help!
Best regards,
Hanin

Manu Sridharan

unread,
Dec 20, 2022, 9:06:13 PM12/20/22
to WALA discussion and Q&A
Hi Hanin,

It looks like everything you did succeeded, it just failed in showing the PDF file.  If you look in the specified output directory do you see the PDF file there?  Probably you can just hack the code to not try to display the PDF.  Or you can set up your wala.properties file to point to a PDF viewer executable, and it should work.

Thanks,
Manu


_______________________________________________
Wala-wala mailing list
Wala...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wala-wala
Reply all
Reply to author
Forward
0 new messages