Bug 1375363 - checkstyle fails due to missing org/apache/commons/lang3/ArrayUtils
Summary: checkstyle fails due to missing org/apache/commons/lang3/ArrayUtils
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: checkstyle
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Michael Simacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-12 20:53 UTC by John Vandenberg
Modified: 2016-09-30 15:52 UTC (History)
4 users (show)

Fixed In Version: checkstyle-6.13-3.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-30 15:52:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.