Skip to content

Error message in initial running #1

Open
@ChunghaSung

Description

@ChunghaSung

Hi,

I tried to run ./instrument.sh , it gives me this error.

Could you let me know how I should fix it?
(I updated jre bath)

Thank you !

if you closed adb logcat press enter

'com.example.motex'
Note: Instrumenter.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
pkg: com.example.motex
Soot started on Sun Jul 28 16:52:36 PDT 2019
Using '/home/chungha/Android/Sdk/platforms//android-28/android.jar' as android.jar
java.lang.NullPointerException
at soot.JastAddJ.Program.initPaths(Program.java:350)
at soot.SootResolver.(SootResolver.java:88)
at soot.Singletons.soot_SootResolver(Singletons.java:1456)
at soot.SootResolver.v(SootResolver.java:93)
at soot.Scene.tryLoadClass(Scene.java:713)
at soot.Scene.loadBasicClasses(Scene.java:1374)
at soot.Scene.loadNecessaryClasses(Scene.java:1453)
at soot.Main.run(Main.java:243)
at soot.Main.main(Main.java:147)
at Instrumenter.main(Instrumenter.java:405)

Ouuups... something went wrong! Sorry about that.
Follow these steps to fix the problem:
1.) Are you sure you used the right command line?
Click here to double-check:
https://ssebuild.cased.de/nightly/soot/doc/soot_options.htm

2.) Not sure whether it's a bug? Feel free to discuss
the issue on the Soot mailing list:
https://github.com/Sable/soot/wiki/Getting-help

3.) Sure it's a bug? Click this link to report it.
https://github.com/Sable/soot/issues/new?title=java.lang.NullPointerException+when+...&body=Steps+to+reproduce%3A%0A1.%29+...%0A%0AFiles+used+to+reproduce%3A+%0A...%0A%0ASoot+version%3A+%3Cpre%3Etrunk%3C%2Fpre%3E%0A%0ACommand+line%3A%0A%3Cpre%3E-w+-allow-phantom-refs+-process-multiple-dex+-android-jars+%2Fhome%2Fchungha%2FAndroid%2FSdk%2Fplatforms%2F+-src-prec+apk+-output-format+dex+-process-dir+ex1-1.apk%3C%2Fpre%3E%0A%0AMax+Memory%3A%0A%3Cpre%3E5120MB%3C%2Fpre%3E%0A%0AStack+trace%3A%0A%3Cpre%3Ejava.lang.NullPointerException%0A%09at+soot.JastAddJ.Program.initPaths%28Program.java%3A350%29%0A%09at+soot.SootResolver.%26%2360%3Binit%26%2362%3B%28SootResolver.java%3A88%29%0A%09at+soot.Singletons.soot_SootResolver%28Singletons.java%3A1456%29%0A%09at+soot.SootResolver.v%28SootResolver.java%3A93%29%0A%09at+soot.Scene.tryLoadClass%28Scene.java%3A713%29%0A%09at+soot.Scene.loadBasicClasses%28Scene.java%3A1374%29%0A%09at+soot.Scene.loadNecessaryClasses%28Scene.java%3A1453%29%0A%09at+soot.Main.run%28Main.java%3A243%29%0A%09at+soot.Main.main%28Main.java%3A147%29%0A%09at+Instrumenter.main%28Instrumenter.java%3A405%29%0A%3C%2Fpre%3E
Please be as precise as possible when giving us
information on how to reproduce the problem. Thanks!
chmod: cannot access 'sootOutput/ex1-1.apk': No such file or directory
signing sootOutput/ex1-1.apk to sootOutput/ex1-1.apk_signed.apk
java.nio.file.NoSuchFileException: sootOutput/ex1-1.apk
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1225)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:727)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844)
at java.base/java.util.zip.ZipFile.(ZipFile.java:247)
at java.base/java.util.zip.ZipFile.(ZipFile.java:177)
at java.base/java.util.jar.JarFile.(JarFile.java:346)
at java.base/java.util.jar.JarFile.(JarFile.java:317)
at java.base/java.util.jar.JarFile.(JarFile.java:297)
at com.android.signapk.SignApk.main(SignApk.java:320)
chmod: cannot access 'ex1-1.apk_signed.apk': No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions