Hi, we had a similar issue at work, what version of checkstyle (checkstyle & eclipse plugin) are you using? v5.0.0 was released recenlty, and some checks are not backwards compatible, i.e.: TabCharacter is replaced by FileTabCharacter.
regards, juan pablo On Tue, Dec 15, 2009 at 9:03 PM, Harry Metske <[email protected]>wrote: > Since a couple of months (I think after updating Eclipse's checkstyle > plugin), I'm getting the following error when performing a checkstyle with > the jspwiki-checkstyle.xml : > (checkstyle with the default sun_checks.xml works fine) > > net.sf.eclipsecs.core.util.CheckstylePluginException: cannot initialize > module TreeWalker - Unable to instantiate TabCharacter > at > > net.sf.eclipsecs.core.util.CheckstylePluginException.rethrow(CheckstylePluginException.java:66) > at > > net.sf.eclipsecs.core.util.CheckstylePluginException.rethrow(CheckstylePluginException.java:77) > at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:164) > at > > net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:286) > at > > net.sf.eclipsecs.core.jobs.RunCheckstyleOnFilesJob.runInWorkspace(RunCheckstyleOnFilesJob.java:96) > at > > org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot > initialize module TreeWalker - Unable to instantiate TabCharacter > at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:177) > at > > com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:207) > at > > net.sf.eclipsecs.core.builder.CheckerFactory.createCheckerInternal(CheckerFactory.java:309) > at > > net.sf.eclipsecs.core.builder.CheckerFactory.createChecker(CheckerFactory.java:143) > at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:140) > ... 4 more > Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable > to instantiate TabCharacter > at > > com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:156) > at > com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:159) > at > > com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:207) > at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:156) > ... 8 more > Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable > to instantiate TabCharacterCheck > at > > com.puppycrawl.tools.checkstyle.PackageObjectFactory.doMakeObject(PackageObjectFactory.java:99) > at > > com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:153) > ... 11 more > > Are there any checkstyle experts on the list that have an elegant solution > for this ? > > thanks, > Harry >
