Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.nio.file.NoSuchFileException when no lines have been modified #109

Open
barbosamaatheus opened this issue May 20, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@barbosamaatheus
Copy link
Collaborator

when run the mining framework using the command: ./gradlew run --args="--access-key <API_KEY> ./projects.csv SOOT Analysis Output

the following error occurred:

Running soot scenario jsoup;org.jsoup.helper.HttpConnection;data(String);7ba0ee75547878ddccc5ab50777b67c712aa73e4
Running left right NonCommutativeConflictDetectionAlgorithm{name = dataflow}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running right left NonCommutativeConflictDetectionAlgorithm{name = dataflow}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot-reverse.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running left right NonCommutativeConflictDetectionAlgorithm{name = tainted}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running right left NonCommutativeConflictDetectionAlgorithm{name = tainted}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot-reverse.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running left right NonCommutativeConflictDetectionAlgorithm{name = svfa}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running right left NonCommutativeConflictDetectionAlgorithm{name = svfa}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot-reverse.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running ConflictDetectionAlgorithm{name='confluence'}
Using jar at /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/build/jsoup-1.10.3-SNAPSHOT.jar
java.nio.file.NoSuchFileException: /home/barbosa/Documents/development/UFPE/spgroup/miningframework/SOOTAnalysisOutput/files/jsoup/7ba0ee75547878ddccc5ab50777b67c712aa73e4/soot.csv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at java.nio.file.Files.newBufferedReader(Files.java:2784)
        at java.nio.file.Files.readAllLines(Files.java:3202)
        at java.nio.file.Files.readAllLines(Files.java:3242)
        at br.unb.cic.analysis.io.DefaultReader.read(DefaultReader.java:37)
        at br.unb.cic.analysis.Main.loadDefinition(Main.java:240)
        at br.unb.cic.analysis.Main.main(Main.java:55)
Running soot scenario jFSTMerge;test.java.br.ufpe.cin.performance.CryptoPerformanceTest;computeMeanTimeOfMergeProcedure(int);62faf1bf32e1a07a971e56c8a3de8ae33988839e
test.java.br.ufpe.cin.performance.CryptoPerformanceTest class not found in any of the downloaded jars
test.java.br.ufpe.cin.performance.CryptoPerformanceTest class not found in any of the downloaded jars
test.java.br.ufpe.cin.performance.CryptoPerformanceTest class not found in any of the downloaded jars
Running ConflictDetectionAlgorithm{name='confluence'}
test.java.br.ufpe.cin.performance.CryptoPerformanceTest class not found in any of the downloaded jars
#### MINING FINISHED ####

BUILD SUCCESSFUL in 32m 50s
2 actionable tasks: 1 executed, 1 up-to-date

According to @rafaelmotaalves, the problem occurs because of the problem in diffj, which causes it not to detect the modified lines correctly.

However, I believe that a more user friendly and explanatory message should be generated in this case.

@rafaelmotaalves rafaelmotaalves added the enhancement New feature or request label May 21, 2020
@barbosamaatheus barbosamaatheus self-assigned this Jun 25, 2020
@barbosamaatheus barbosamaatheus removed their assignment Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants