** Changed in: checkstyle (Ubuntu)
       Status: New => In Progress

** Changed in: checkstyle (Ubuntu)
     Assignee: (unassigned) => Saikrishna Arcot (saiarcot895)

** Description changed:

  [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)
+         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
+         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)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1308794

Title:
  Checkstyle unusable on Trusty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/checkstyle/+bug/1308794/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to