Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#705 Unable to instantiate DoubleCheckedLocking

release_1.0
closed
nobody
None
1
2014-08-26
2013-08-22
Alex
No

I had a crash when running the latest release (on windows)

java -jar checkstyle-5.6-all.jar -c sun_checks.xml -r ..\trunk
Unable to create Checker: cannot initialize module TreeWalker - Unable to instantiate DoubleCheckedLocking
com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - Unable to instantiate Dou
bleCheckedLocking
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:178)
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: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to instantiate DoubleCheckedLocking
at com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:155)
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:161)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:184)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:157)
... 3 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to instantiate DoubleCheckedLockingCheck
at com.puppycrawl.tools.checkstyle.PackageObjectFactory.doMakeObject(PackageObjectFactory.java:98)
at com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:152)
... 6 more

Discussion

  • Antonio Ospite
    Antonio Ospite
    2013-09-17

    The custom config files still contain stray references to DoubleCheckedLocking, but the module has been removed in 5.6.

    The attached patch should fix the issue.

     
  • Roman Ivanov
    Roman Ivanov
    2013-10-03

    • status: open --> closed