[Bug 1308794] [NEW] Checkstyle unusable on Trusty

Launchpad Bug Tracker 1308794 at bugs.launchpad.net
Tue Apr 22 12:08:42 UTC 2014


You have been subscribed to a public bug by Saikrishna Arcot (saiarcot895):

[Impact]
On Trusty, the commons-beanutils source package was updated to 1.9.1. The org.apache.commons.collections class was (appropriately) moved to the libcommons-collections3-java source package. Because the startup script doesn't include the new jar file in the runtime, checkstyle crashes, saying it's unable to load the org.apache.commons.collections.FastHashMap class.

[Test Case]
Run checkstyle, specifying the required checkstyle XML file and one or more Java files. The following stacktrace will be printed:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap
        at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:959)
        at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:388)
        at com.puppycrawl.tools.checkstyle.api.AutomaticBean.contextualize(AutomaticBean.java:206)
        at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:156)
        at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:184)
        at com.puppycrawl.tools.checkstyle.Main.createChecker(Main.java:143)
        at com.puppycrawl.tools.checkstyle.Main.main(Main.java:120)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.FastHashMap
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 7 more

[Regression Potential]

Limited. One java runtime library and a dependency was added, so there
should be no regression. In addition, the commons-beanutils library
might no longer be needed, but it has been left in (to avoid any
potential regression).

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: checkstyle 5.6-2build1
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Apr 16 19:54:17 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-10-19 (544 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
PackageArchitecture: all
SourcePackage: checkstyle
UpgradeStatus: Upgraded to trusty on 2014-04-15 (1 days ago)

** Affects: checkstyle (Ubuntu)
     Importance: Undecided
     Assignee: Saikrishna Arcot (saiarcot895)
         Status: In Progress

** Affects: checkstyle (Ubuntu Trusty)
     Importance: Undecided
     Assignee: Saikrishna Arcot (saiarcot895)
         Status: In Progress


** Tags: amd64 apport-bug trusty
-- 
Checkstyle unusable on Trusty
https://bugs.launchpad.net/bugs/1308794
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list