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

I am getting following errors of "file not found": How can i resolve them? #147

Open
karthikvee opened this issue May 2, 2016 · 4 comments

Comments

@karthikvee
Copy link

karthikvee commented May 2, 2016

INFO p.t.s.e.v.SummaryMessageVisitor - Adding problem message to review: There is a problem with Checkstyle: CheckstyleException: Unable to find: sun_checks.xml
INFO p.t.s.e.v.SummaryMessageVisitor - Adding problem message to review: There is a problem with JSHint: FileNotFoundException: jshint.json (No such file or directory)
INFO p.t.s.e.v.SummaryMessageVisitor - Adding problem message to review: There is a problem with Sonar: FileNotFoundException: sonar-project.properties (No such file or directory)

Here I am attaching the execution log file:
http://pastebin.com/ktZhg6cX
sput-exec-log.txt

By the way this is the file I wanted to test, Java code in file1.java@ http://pastebin.com/aZnP5eYS

@pjagielski @tomekp @rafalnowak @zygm0nt @ingwarsw @hho @alien11689 @damianszczepanik

@karthikvee
Copy link
Author

karthikvee commented May 2, 2016

Update: I have checked the checkstyle-xxx. jar in "lib" directory of sputnik, the file "sun_checks.xml" is present and so tried by extracting the same file to _"sputnik" _main directory but still received the following checkstyle execution output log .
@ http://pastebin.com/hUTukT4k

PMD is not reporting "file not found" error but it is not reporting any violations, And giving out following
WARNING:

The renderer uses a deprecated mechanism to use the properties. Please define the needed properties with this.definePropertyDescriptor(..).

By the way I've tested a new Java Code@ http://pastebin.com/20ugCmdh
Execution Log@http://pastebin.com/ktZhg6cX

It would be great help if someone points me to these files:

  1. checkstyle.xml
  2. pmd.xml
  3. findbugs.html

[email protected]

@SpOOnman
Copy link
Collaborator

I think you execute sputnik from wrong directory as it cannot access some jars. What is your working directory and your command line to run Sputnik?

@karthikvee
Copy link
Author

I've extracted sputnik-1.7.0.zip and renamed the extracted directory as sputnik under /root
I am executing sputnik from /root/sputnik/bin like: bin/sputnik --conf /opt/sputnik/gerrit.properties --changeId I0a2afb7ae4a94ab1ab473ba00e2ec7de381799a0 --revisionId 3f37692af2290e8e3fd16d2f43701c24346197f0

@SpOOnman
Copy link
Collaborator

First thing is that never use root to execute programs. That's unsafe.

What's your gerrit.properties file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants