TouK / sputnik

Static code review for your Gerrit patchsets. Runs Checkstyle, PMD, FindBugs, Scalastyle, CodeNarc, JSLint for you!
Apache License 2.0
201 stars 117 forks source link

Non-empty changes causes "Analysis error File not found" for a Maven project #86

Open dmikurube opened 9 years ago

dmikurube commented 9 years ago

I always see "Analysis error File not found" errors for a Maven project.

https://github.com/TouK/sputnik/issues/69 looks like a similar issue, but the project is not empty. It includes .java files, but FindBugs doesn't find the files.

Have you ever seen similar issues?

(Some names are replaced with common names in the following error example.)

18:06:27.590 [main] INFO  p.t.s.c.ConfigurationHolder - Initializing configuration properties from file /home/bamboo/opt/sputnik-1.4.0/sputnik.conf
29-Apr-2015 18:06:28    18:06:28.403 [main] INFO  p.t.s.connector.http.HttpConnector - Request  1: GET to https://somewhere.localhost:443/a/changes/194/revisions/foo/files/?
29-Apr-2015 18:06:28    18:06:28.763 [main] ERROR o.a.http.impl.auth.HttpAuthenticator - DIGEST [complete=false, nonce=null, nc=0] authentication error: missing realm in challenge
29-Apr-2015 18:06:28    18:06:28.823 [main] INFO  p.t.s.connector.http.HttpConnector - Response 1: HTTP/1.1 200 OK
29-Apr-2015 18:06:28    18:06:28.831 [main] INFO  p.t.s.connector.http.HttpConnector - Entity 1: )]}'
29-Apr-2015 18:06:28    {
29-Apr-2015 18:06:28      "/COMMIT_MSG": {
29-Apr-2015 18:06:28        "status": "A",
29-Apr-2015 18:06:28        "lines_inserted": 9
29-Apr-2015 18:06:28      },
29-Apr-2015 18:06:28      "subdir/pom.xml": {
29-Apr-2015 18:06:28        "lines_inserted": 15,
29-Apr-2015 18:06:28        "lines_deleted": 1
29-Apr-2015 18:06:28      },
29-Apr-2015 18:06:28      "subdir/src/main/java/com/company/api/posts/ThingBody.java": {
29-Apr-2015 18:06:28        "lines_inserted": 69
29-Apr-2015 18:06:28      },
29-Apr-2015 18:06:28      "subdir/src/main/java/com/company/api/posts/interfaces/ThingBodyInterface.java": {
29-Apr-2015 18:06:28        "lines_inserted": 26,
29-Apr-2015 18:06:28        "lines_deleted": 1
29-Apr-2015 18:06:28      },
29-Apr-2015 18:06:28      "subdir/src/test/java/com/company/api/posts/ThingBodyTest.java": {
29-Apr-2015 18:06:28        "lines_inserted": 33,
29-Apr-2015 18:06:28        "lines_deleted": 6
29-Apr-2015 18:06:28      }
29-Apr-2015 18:06:28    }
29-Apr-2015 18:06:28    
29-Apr-2015 18:06:28    18:06:28.926 [main] INFO  pl.touk.sputnik.engine.ReviewRunner - Review started for processor FindBugs
29-Apr-2015 18:06:31    18:06:31.511 [main] INFO  p.t.s.r.filter.FileExtensionFilter - Filtering out review files with allowed extensions [java]
29-Apr-2015 18:06:31    18:06:31.512 [main] INFO  p.t.s.r.filter.FileExtensionFilter - File subdir/pom.xml was filtered out due to not allowed extension xml
29-Apr-2015 18:06:31    18:06:31.513 [main] INFO  p.t.s.r.filter.FileExtensionFilter - Total 3 of 4 files had allowed extensions [java]
29-Apr-2015 18:06:31    18:06:31.514 [main] INFO  p.t.s.p.findbugs.FindBugsProcessor - Using FindBugs include filter file 
29-Apr-2015 18:06:31    18:06:31.515 [main] INFO  p.t.s.p.findbugs.FindBugsProcessor - Using FindBugs exclude filter file 
29-Apr-2015 18:06:31    18:06:31.918 [main] WARN  p.t.s.p.f.CollectorBugReporter - Analysis error File not found: filesystem:/home/bamboo/bamboo/xml-data/build-dir/API-GERRIT-JOB1/subdir/target/test-classes
29-Apr-2015 18:06:31    18:06:31.919 [main] WARN  p.t.s.p.f.CollectorBugReporter - Analysis error File not found: filesystem:/home/bamboo/bamboo/xml-data/build-dir/API-GERRIT-JOB1/subdir/target/classes
29-Apr-2015 18:06:31    18:06:31.919 [main] WARN  p.t.s.p.f.CollectorBugReporter - Analysis error File not found: filesystem:/home/bamboo/bamboo/xml-data/build-dir/API-GERRIT-JOB1/subdir/pom.xmljava
29-Apr-2015 18:06:31    18:06:31.924 [main] ERROR p.t.s.p.findbugs.FindBugsProcessor - FindBugs processing error
29-Apr-2015 18:06:31    java.io.IOException: No files to analyze could be opened
dmikurube commented 9 years ago

Updated the issue with quoting syntax.

SpOOnman commented 8 years ago

Does this file exist on your system?:

Analysis error File not found: filesystem:/home/bamboo/bamboo/xml-data/build-dir/API-GERRIT-JOB1/subdir/target/test-classes

Maybe you need an asterisk at the end? I am not sure about filesystem: prefix either, is it your configuration or FindBugs'?