Failed during c heckstyle configuration: cannot initialize module TreeWalker

266 views
Skip to first unread message

shivakumar pullepu

unread,
Dec 17, 2020, 8:17:39 AM12/17/20
to checkstyle
need some urgent help. 

I tried using checkstyle version 8.29. Compile works fine when I tried mvn checkstyle:checkstyle at the TestProject level, I am seeing an instantiation error. I tried all options per https://checkstyle.org/config.html#Packages but could not get working.
I am assuming it should be a quick thing for you to spot the issue and straighten me. 

If this can be fixed today would be great. https://github.com/spullepu/checkstyle-v8.29-demo


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:checkstyle (default-cli) on project TestProject: An error has occurred in Checkstyle report generation.: Failed during c
heckstyle configuration: cannot initialize module TreeWalker - cannot initialize module com.blundell.checks.AntiHungarian - Unable to instantiate 'com.blundell.checks.AntiHungarian' class, it is also not po
ssible to instantiate it as null. Please recheck that class name is specified as canonical name or read how to configure short name usage https://checkstyle.org/config.html#Packages. Please also recheck tha
t provided ClassLoader to Checker is configured correctly. -> [Help 1]  
Reply all
Reply to author
Forward
0 new messages