paprika
paprika copied to clipboard
Getting exception: type of throw argument is not a RefType!
Expected behavior and actual behavior.
I am testing on a sample application and run into the exception shown below in stack trace. I get the same exception. Kindly help out!
Steps to reproduce the problem.
Command Used:
java -Xmx2G -XX:+UseConcMarkSweep GC -jar Paprika.jar analyse app-debug.apk -db "db" -p "com.example.app" -dev my dev -cat mycat -nd 100 -d "2020-01-001 10:23:39.050315" -r 1.0 -s 1024 -u "unsafe mode" -k F:B8:DF:C8:C1:2E:30:A5:71:25:57:1C:88:71:D6:36:69:27:41:68:DE:03:7C:D8:7D:77:F5:E1:70:1E:F9:7C -n "customlint" -a "E:\Installations\Android\sdk\platforms"
Stacktrace
Collecting metrics
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type (narr range): java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
array element type: (filled narr)java.lang.String
java.lang.IllegalStateException: UnitThrowAnalysis StmtSwitch: type of throw arg
ument is not a RefType!
at soot.toolkits.exceptions.AbstractThrowAnalysis.mightThrowExplicitly(A
bstractThrowAnalysis.java:65)
at soot.toolkits.exceptions.UnitThrowAnalysis$UnitSwitch.caseThrowStmt(U
nitThrowAnalysis.java:706)
at soot.jimple.internal.JThrowStmt.apply(JThrowStmt.java:70)
at soot.toolkits.exceptions.UnitThrowAnalysis.mightThrow(UnitThrowAnalys
is.java:241)
at soot.toolkits.graph.ExceptionalUnitGraph.getExceptionDests(Exceptiona
lUnitGraph.java:818)
at soot.toolkits.graph.ExceptionalUnitGraph.buildHeadsAndTails(Exception
alUnitGraph.java:779)
at soot.toolkits.graph.ExceptionalUnitGraph.initialize(ExceptionalUnitGr
aph.java:293)
at soot.toolkits.graph.ExceptionalUnitGraph.<init>(ExceptionalUnitGraph.
java:159)
at soot.toolkits.graph.ExceptionalUnitGraph.<init>(ExceptionalUnitGraph.
java:192)
at soot.dexpler.DexNullTransformer.internalTransform(DexNullTransformer.
java:96)
at soot.BodyTransformer.transform(BodyTransformer.java:51)
at soot.BodyTransformer.transform(BodyTransformer.java:58)
at soot.BodyTransformer.transform(BodyTransformer.java:63)
at soot.dexpler.DexBody.jimplify(DexBody.java:523)
at soot.dexpler.DexMethod$1.getBody(DexMethod.java:150)
at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:91)
at soot.SootMethod.retrieveActiveBody(SootMethod.java:324)
at soot.PackManager.retrieveAllBodies(PackManager.java:1140)
at soot.PackManager.runPacksNormally(PackManager.java:458)
at soot.PackManager.runPacks(PackManager.java:391)
at paprika.analyzer.SootAnalyzer.runAnalysis(SootAnalyzer.java:119)
at paprika.Main.runAnalysis(Main.java:114)
at paprika.Main.main(Main.java:80)
###Specifications.
- Operating System: Windows 10
- JRE version: 1.7.0_80
- Paprika version: Latest