#211 Initialization error

release_3.3
closed
Oliver Burn
Other (70)
5
2012-10-10
2004-02-18
Petr Kuzel
No

I used checkstyle-all-3.3.jar

It probably does not run on JDK 1.4 and requires
1.3 only:

org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
Class org.apache.commons.lgging.impl.Jdk14Logger
does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at
org.apache.commons.beanutils.ConvertUtils.<clinit>(ConvertUtils.java:318)
at
com.puppycrawl.tools.checkstyle.api.AutomaticBean.initConverters(AutomaticBean.java:84)
at
com.puppycrawl.tools.checkstyle.api.AutomaticBean.<clinit>(AutomaticBean.java:60)
at
org.netbeans.modules.tasklist.checkstyle.ViolationProvider.callCheckstyle(ViolationProvider.java:188)
at
org.netbeans.modules.tasklist.checkstyle.ViolationProvider.scan(ViolationProvider.java:147)
at
org.netbeans.modules.tasklist.checkstyle.ViolationProvider.rescan(ViolationProvider.java:87)
at
org.netbeans.modules.tasklist.suggestions.SuggestionManagerImpl.dispatchRescan(SuggestionManagerImpl.java:709)
at
org.netbeans.modules.tasklist.suggestions.SuggestionsBroker.run(SuggestionsBroker.java:523)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)

Discussion

  • Lars Kühne
    Lars Kühne
    2004-02-19

    Logged In: YES
    user_id=401384

    Checkstyle DOES run on JDK 1.4 (I'm using it all of the
    time, don't even have 1.3 installed).

    You wrote "Class org.apache.commons.lgging.impl.Jdk14Logger
    does not implement Log"

    Is the missing 'o' in 'lgging' a copy+paste error?
    Do you have other versions of commons-logging on your
    classpath, e.g. is netbeans using some other version internally?
    Can you run checkstyle from the command line?