Bug 1375363

Summary: checkstyle fails due to missing org/apache/commons/lang3/ArrayUtils
Product: [Fedora] Fedora Reporter: John Vandenberg <jayvdb>
Component: checkstyleAssignee: Michael Simacek <msimacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: dbhole, java-sig-commits, mizdebsk, msimacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: checkstyle-6.13-3.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-30 15:52:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Vandenberg 2016-09-12 20:53:37 UTC
Description of problem:

checkstyle does not execute.

Version-Release number of selected component (if applicable): 6.13-2.fc24 

How reproducible:
Very

Steps to Reproduce:
1. Create a sample settings XML (sample at http://www.javaworld.com/article/2077945/open-source-tools/automated-code-reviews-with-checkstyle--part-1.html)
2. Run tool on some java code: checkstyle -c settings.xml src

Actual results:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/ArrayUtils
	at com.puppycrawl.tools.checkstyle.Checker.<init>(Checker.java:98)
	at com.puppycrawl.tools.checkstyle.Main.runCheckstyle(Main.java:266)
	at com.puppycrawl.tools.checkstyle.Main.main(Main.java:119)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.ArrayUtils
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 3 more

Expected results:

The checker runs

Additional info:

The only seemingly relevant package apache-commons-lang3 is already installed.

$ dnf search lang3
Last metadata expiration check: 2 days, 1:34:28 ago on Sun Sep 11 02:15:33 2016.
================================================================= N/S Matched: lang3 =================================================================
apache-commons-lang3-javadoc.noarch : API documentation for apache-commons-lang3
apache-commons-lang3.noarch : Provides a host of helper utilities for the java.lang API

$ sudo dnf install apache-commons-lang3
Last metadata expiration check: 2:13:07 ago on Tue Sep 13 01:37:09 2016.
Package apache-commons-lang3-3.4-4.fc24.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

Comment 1 Michael Simacek 2016-09-19 14:57:08 UTC
Rawhide and f25 unaffected. Fixing in f24 only.

Comment 2 Fedora Update System 2016-09-19 15:05:04 UTC
checkstyle-6.13-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9712a04a3d

Comment 3 Fedora Update System 2016-09-22 01:26:18 UTC
checkstyle-6.13-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9712a04a3d

Comment 4 Fedora Update System 2016-09-30 15:52:40 UTC
checkstyle-6.13-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.