java.lang.RuntimeException:Error: The path '/usr/lib/jvm-oracle/jdk1.8.0_172/jre/lib/sunrsasign.jar' does not exist.

Create issue
Issue #309 invalid
Former user created an issue

Hello I use Soot 3.3 that compatible with java8. when I use (Scene.v()).loadClassAndSupport(className); I give a follow error

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: Error: The path '/usr/lib/jvm-oracle/jdk1.8.0_172/jre/lib/sunrsasign.jar' does not exist.

and when give sunrsasign.jar of JDK4, give me error:

Exception in thread "main" java.lang.Error: Error: Failed to load java.lang.reflect.AnnotatedElement.
     [java]     at soot.JastAddJ.PathPart.getCompilationUnit(PathPart.java:109)
     [java]     at soot.JastAddJ.Program.getCompilationUnit(Program.java:844)
     [java]     at soot.JastAddJ.Program.getLibCompilationUnit_compute(Program.java:1517)
     [java]     at soot.JastAddJ.Program.getLibCompilationUnit(Program.java:1500)
     [java]     at soot.JastAddJ.Program.lookupLibType_compute(Program.java:1465)
     [java]     at soot.JastAddJ.Program.lookupLibType(Program.java:1433)
     [java]     at soot.JastAddJ.Program.lookupType_compute(Program.java:1412)
     [java]     at soot.JastAddJ.Program.lookupType(Program.java:1393)
     [java]     at soot.JastAddJ.Program.Define_TypeDecl_lookupType(Program.java:1981)
     [java]     at soot.JastAddJ.ASTNode.Define_TypeDecl_lookupType(ASTNode.java:1657)
     [java]     at soot.JastAddJ.ASTNode.Define_TypeDecl_lookupType(ASTNode.java:1657)
     [java]     at soot.JastAddJ.ASTNode.Define_TypeDecl_lookupType(ASTNode.java:1657)
     [java]     at soot.JastAddJ.ASTNode.Define_TypeDecl_lookupType(ASTNode.java:1657)
     [java]     at soot.JastAddJ.ASTNode.Define_TypeDecl_lookupType(ASTNode.java:1657)
     [java]     at soot.JastAddJ.Expr.lookupType(Expr.java:1186)
     [java]     at soot.JastAddJ.TypeAccess.decls_compute(TypeAccess.java:425)
     [java]     at soot.JastAddJ.TypeAccess.decls(TypeAccess.java:414)
     [java]     at soot.JastAddJ.TypeAccess.refined_TypeScopePropagation_TypeAccess_decl(TypeAccess.java:387)
     [java]     at soot.JastAddJ.TypeAccess.decl_compute(TypeAccess.java:460)
     [java]     at soot.JastAddJ.TypeAccess.decl(TypeAccess.java:452)
     [java]     at soot.JastAddJ.TypeAccess.type_compute(TypeAccess.java:590)
     [java]     at soot.JastAddJ.TypeAccess.type(TypeAccess.java:583)
     [java]     at soot.JastAddJ.InterfaceDecl.isCircular_compute(InterfaceDecl.java:1191)
     [java]     at soot.JastAddJ.InterfaceDecl.isCircular(InterfaceDecl.java:1176)
     [java]     at soot.JastAddJ.ClassDecl.isCircular_compute(ClassDecl.java:1696)
     [java]     at soot.JastAddJ.ClassDecl.isCircular(ClassDecl.java:1646)
     [java]     at soot.JastAddJ.ClassDecl$2.computeNextCurrent(ClassDecl.java:265)
     [java]     at soot.JastAddJ.ClassDecl$2.hasNext(ClassDecl.java:252)
     [java]     at soot.JastAddJ.ClassDecl.memberTypes_compute(ClassDecl.java:1212)
     [java]     at soot.JastAddJ.ClassDecl.memberTypes(ClassDecl.java:1202)
     [java]     at soot.JastAddJ.GenericClassDecl.Define_SimpleSet_lookupType(GenericClassDecl.java:1283)
     [java]     at soot.JastAddJ.ASTNode.Define_SimpleSet_lookupType(ASTNode.java:1663)
     [java]     at soot.JastAddJ.ASTNode.Define_SimpleSet_lookupType(ASTNode.java:1663)
     [java]     at soot.JastAddJ.ASTNode.Define_SimpleSet_lookupType(ASTNode.java:1663)
     [java]     at soot.JastAddJ.ASTNode.Define_SimpleSet_lookupType(ASTNode.java:1663)
     [java]     at soot.JastAddJ.Expr.lookupType(Expr.java:1197)
     [java]     at soot.JastAddJ.ParTypeAccess.Define_SimpleSet_lookupType(ParTypeAccess.java:447)
     [java]     at soot.JastAddJ.ASTNode.Define_SimpleSet_lookupType(ASTNode.java:1663)
     [java]     at soot.JastAddJ.Expr.lookupType(Expr.java:1197)
     [java]     at soot.JastAddJ.ParTypeAccess.Define_SimpleSet_lookupType(ParTypeAccess.java:447)
     [java]     at soot.JastAddJ.ASTNode.Define_SimpleSet_lookupType(ASTNode.java:1663)
     [java]     at soot.JastAddJ.Expr.lookupType(Expr.java:1197)
     [java]     at soot.JastAddJ.TypeAccess.decls_compute(TypeAccess.java:423)
     [java]     at soot.JastAddJ.TypeAccess.decls(TypeAccess.java:414)
     [java]     at soot.JastAddJ.TypeAccess.refined_TypeScopePropagation_TypeAccess_decl(TypeAccess.java:387)
     [java]     at soot.JastAddJ.TypeAccess.decl_compute(TypeAccess.java:460)
     [java]     at soot.JastAddJ.TypeAccess.decl(TypeAccess.java:452)
     [java]     at soot.JastAddJ.TypeAccess.type_compute(TypeAccess.java:590)
     [java]     at soot.JastAddJ.TypeAccess.type(TypeAccess.java:583)
     [java]     at soot.JastAddJ.ParTypeAccess.type_compute(ParTypeAccess.java:390)
     [java]     at soot.JastAddJ.ParTypeAccess.type(ParTypeAccess.java:374)
     [java]     at soot.JastAddJ.ParTypeAccess.type_compute(ParTypeAccess.java:390)
     [java]     at soot.JastAddJ.ParTypeAccess.type(ParTypeAccess.java:374)
     [java]     at soot.JastAddJ.ParameterDeclaration.type_compute(ParameterDeclaration.java:479)
     [java]     at soot.JastAddJ.ParameterDeclaration.type(ParameterDeclaration.java:472)
     [java]     at soot.JastAddJ.MethodDecl.signature_compute(MethodDecl.java:1503)
     [java]     at soot.JastAddJ.MethodDecl.signature(MethodDecl.java:1488)
     [java]     at soot.JastAddJ.TypeDecl.localMethodsSignatureMap_compute(TypeDecl.java:2683)
     [java]     at soot.JastAddJ.TypeDecl.localMethodsSignatureMap(TypeDecl.java:2669)
     [java]     at soot.JastAddJ.TypeDecl$1.<init>(TypeDecl.java:486)
     [java]     at soot.JastAddJ.TypeDecl.localMethodsIterator(TypeDecl.java:485)
     [java]     at soot.JastAddJ.ParClassDecl.localMethodsSignatureMap_compute(ParClassDecl.java:1784)
     [java]     at soot.JastAddJ.ParClassDecl.localMethodsSignatureMap(ParClassDecl.java:1775)
     [java]     at soot.JastAddJ.ClassDecl.methodsSignatureMap_compute(ClassDecl.java:1102)
     [java]     at soot.JastAddJ.ClassDecl.methodsSignatureMap(ClassDecl.java:1094)
     [java]     at soot.JastAddJ.TypeDecl$2.<init>(TypeDecl.java:513)
     [java]     at soot.JastAddJ.TypeDecl.methodsIterator(TypeDecl.java:512)
     [java]     at soot.JastAddJ.TypeDecl.methodsNameMap_compute(TypeDecl.java:2619)
     [java]     at soot.JastAddJ.TypeDecl.methodsNameMap(TypeDecl.java:2608)
     [java]     at soot.JastAddJ.TypeDecl.memberMethods(TypeDecl.java:2578)
     [java]     at soot.JastAddJ.AbstractDot.Define_Collection_lookupMethod(AbstractDot.java:766)
     [java]     at soot.JastAddJ.Expr.lookupMethod(Expr.java:1032)
     [java]     at soot.JastAddJ.MethodAccess.decls_compute(MethodAccess.java:1094)
     [java]     at soot.JastAddJ.MethodAccess.decls(MethodAccess.java:1086)
     [java]     at soot.JastAddJ.MethodAccess.decl_compute(MethodAccess.java:1128)
     [java]     at soot.JastAddJ.MethodAccess.decl(MethodAccess.java:1120)
     [java]     at soot.JastAddJ.MethodAccess.transformation(MethodAccess.java:772)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.TypeDecl.createAssertionsDisabled(TypeDecl.java:1061)
     [java]     at soot.JastAddJ.AssertStmt.transformation(AssertStmt.java:125)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.MethodDecl.transformation(MethodDecl.java:545)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.ASTNode.transformation(ASTNode.java:530)
     [java]     at soot.JastAddJ.TypeDecl.transformation(TypeDecl.java:1158)
     [java]     at soot.JastAddJ.CompilationUnit.transformation(CompilationUnit.java:240)
     [java]     at soot.JastAddInitialResolver.formAst(JastAddInitialResolver.java:76)
     [java]     at soot.JavaClassSource.resolve(JavaClassSource.java:66)
     [java]     at soot.SootResolver.bringToHierarchyUnchecked(SootResolver.java:240)
     [java]     at soot.SootResolver.bringToHierarchy(SootResolver.java:214)
     [java]     at soot.SootResolver.bringToSignatures(SootResolver.java:279)
     [java]     at soot.SootResolver.bringToBodies(SootResolver.java:319)
     [java]     at soot.SootResolver.processResolveWorklist(SootResolver.java:164)
     [java]     at soot.SootResolver.resolveClass(SootResolver.java:134)
     [java]     at soot.Scene.loadClass(Scene.java:954)
     [java]     at soot.Scene.loadClassAndSupport(Scene.java:939)
     [java]     at edu.ksu.cis.envgen.Configuration.loadUnit(Configuration.java:212)
     [java]     at edu.ksu.cis.envgen.Configuration.initialize(Configuration.java:109)
     [java]     at edu.ksu.cis.envgen.Configuration.<init>(Configuration.java:51)
     [java]     at edu.ksu.cis.envgen.EnvGenerator.main(EnvGenerator.java:49)
     [java] Caused by: java.lang.ArrayIndexOutOfBoundsException: 1612
     [java]     at soot.JastAddJ.BytecodeParser.parseThisClass(BytecodeParser.java:437)
     [java]     at soot.JastAddJ.BytecodeParser.parseTypeDecl(BytecodeParser.java:404)
     [java]     at soot.JastAddJ.BytecodeParser.parse(BytecodeParser.java:331)
     [java]     at soot.JastAddJ.BytecodeParser.read(BytecodeParser.java:27)
     [java]     at soot.JastAddJ.PathPart.getCompilationUnit(PathPart.java:87)
     [java]     ... 106 more
     [java] Java Result: 1

can you guide me to correct it?

Comments (1)

  1. Log in to comment