Announcement Announcement Module
No announcement yet.
Logging problems with Eclipse Profiler Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logging problems with Eclipse Profiler

    Hi there,

    sorry if this seems a bit of a random posting but...

    I've been trying to get using Eclipse for the past couple of days mainly to use the free Profiler tool it comes with.

    I was able to run an application using the default "run as Java Application" with the Spring framework with no problems.

    However, as soon as I tried to run it as a "profiler application" I started getting a java.lang.VerifyError.

    I used the JVM -noverify flag and got this:

    org.apache.commons.logging.LogConfigurationExcepti on: java.lang.NoSuchMethodException: org.apache.commons.logging.impl.Jdk14Logger.setLog Factory(org.apache.commons.logging.LogFactory) (Caused by java.lang.NoSuchMethodException: org.apache.commons.logging.impl.Jdk14Logger.setLog Factory(org.apache.commons.logging.LogFactory))
    at Instance(
    at org.apache.commons.logging.impl.LogFactoryImpl.get Instance(
    at org.apache.commons.logging.impl.LogFactoryImpl.get Instance(
    at org.apache.commons.logging.LogFactory.getLog(LogFa
    at BeanFactory.<init>(
    at AutowireCapableBeanFactory.<init>(AbstractAutowire
    at AutowireCapableBeanFactory.<init>(AbstractAutowire
    at istableBeanFactory.<init>(DefaultListableBeanFacto
    at org.springframework.beans.factory.xml.XmlBeanFacto ry.<init>(
    at org.springframework.beans.factory.xml.XmlBeanFacto ry.<init>(
    at org.thorne.lettings.Main2.accessService( :27)
    at org.thorne.lettings.Main2.main(
    Caused by: java.lang.NoSuchMethodException: org.apache.commons.logging.impl.Jdk14Logger.setLog Factory(org.apache.commons.logging.LogFactory)
    at java.lang.Class.getMethod(Unknown Source)
    at org.apache.commons.logging.impl.LogFactoryImpl.get LogConstructor(
    at Instance(
    ... 11 more
    Exception in thread "main"

    It's weird since I don't get this at all running without the profiler plugin.

    I don't know much about plugins being a Eclipse newbie but surely other people have managed to get their Spring apps running with Eclipse and the profiler. It's a shame because I was just starting to forgive Eclipse for being so different to IntelliJ...

    I'm running Eclipse 3.1.1 and Spring 1.2.5. All of my libraries are coming out of the Spring dependencies lib.

    thanks for any experiences shared...


  • #2
    It took me a long time to find this problem, but I discovered that the original VerifyError was happening because the 'Profile system classes' option was checked in the 'Profiler Adv.' tab of the launch configuration. I'd turn the -noverify option off, uncheck that box, and try again. Hope that helps.