soot icon indicating copy to clipboard operation
soot copied to clipboard

encounter java.lang.NullPointerException while using soot-2.5.0 processing .java file

Open Marlv opened this issue 4 years ago • 3 comments

First time using soot, fail to processing .java files and here's my command [root@localhost soottest]# java -jar soot-2.5.0.jar -cp . -pp A B with trace Soot started on Fri Feb 26 23:43:32 PST 2021 Exception in thread "main" java.lang.NullPointerException at soot.JastAddInitialResolver.resolveFromJavaFile(JastAddInitialResolver.java:103) at soot.JavaClassSource.resolve(JavaClassSource.java:57) at soot.SootResolver.bringToHierarchy(SootResolver.java:215) at soot.SootResolver.bringToSignatures(SootResolver.java:239) at soot.SootResolver.processResolveWorklist(SootResolver.java:154) at soot.SootResolver.resolveClass(SootResolver.java:124) at soot.Scene.loadClass(Scene.java:448) at soot.Scene.loadClassAndSupport(Scene.java:433) at soot.Scene.loadNecessaryClass(Scene.java:1053) at soot.Scene.loadNecessaryClasses(Scene.java:1067) at soot.Main.run(Main.java:167) at soot.Main.main(Main.java:141) this directory has three files [root@localhost soottest]# ls A.java B.java soot-2.5.0.jar

Marlv avatar Feb 27 '21 08:02 Marlv

Hi, have you found any solutions? Seems that I meet the same trouble #1848 .

fade03 avatar Mar 23 '22 14:03 fade03

#1848 I have solved this problem on my machine.

fade03 avatar Mar 23 '22 15:03 fade03

 搞半天搞不好之后我就换成用optaplanner去了(看了眼你的地区我就用中文了...

#1848 I have solved this problem on my machine.

Marlv avatar Apr 29 '22 08:04 Marlv