Menu

#370 org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

5.8.0
closed
nobody
None
1
2015-03-04
2014-11-11
No

Hi,

after activating Checkstyle on an project I get the following exceptions. Checking Code is not longer possible. When I delete my Eclipse workspace an create a new one everything is fine until I restart Eclispe.

!ENTRY org.eclipse.core.resources 4 2 2014-11-11 12:29:38.150
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
at net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:307)
at net.sf.eclipsecs.core.builder.CheckstyleBuilder.build(CheckstyleBuilder.java:171)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

See full Stack in "checkstyle_err.txt". Hope I choose the correct milestone. I am using the latest version of CheckstylePlugIn for Eclipse. (Eclipse Checkstyle Plugin 5.9.0.201410282234)

Thx

1 Attachments

Related

Bugs (Deprecated - use Github): #370

Discussion

  • Christian Schmidt

    Tested some other idea. After deleting the folders
    "net.sf.eclipsecs.core" and "net.sf.eclipsecs.ui" in my workspace folder ".metadata.plugins" and restarting eclipse it seems to be working correctly now.

     
  • Lars Koedderitzsch

    Thanks for the update.
    The error itself seems to come from a weird classloading issue ("org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory"), though I have no idea what could cause this and why it would go away with a new workspace or when you deleted the metadata.

    Sometimes after a plugin upgrade when strange things happen within eclipse using the -clean command line option when starting eclipse also works.

    Kind regards,
    Lars

     
    • Christian Schmidt

      Thanks Lars for your answer.
      Think I will test the -clean option when I start eclipse the next time.
      If I could find out some more information I will contact you.

      Kind regards.
      Christian

      2014-11-11 15:17 GMT+01:00 Lars Koedderitzsch lkoe@users.sf.net:

      Thanks for the update.
      The error itself seems to come from a weird classloading issue
      ("org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory"),
      though I have no idea what could cause this and why it would go away with a
      new workspace or when you deleted the metadata.

      Sometimes after a plugin upgrade when strange things happen within eclipse
      using the -clean command line option when starting eclipse also works.

      Kind regards,
      Lars


      Status: open
      Group: 5.8.0
      Created: Tue Nov 11, 2014 11:37 AM UTC by Christian Schmidt
      Last Updated: Tue Nov 11, 2014 11:51 AM UTC
      Owner: nobody

      Hi,

      after activating Checkstyle on an project I get the following exceptions.
      Checking Code is not longer possible. When I delete my Eclipse workspace an
      create a new one everything is fine until I restart Eclispe.

      !ENTRY org.eclipse.core.resources 4 2 2014-11-11 12:29:38.150
      !MESSAGE Problems occurred when invoking code from plug-in:
      "org.eclipse.core.resources".
      !STACK 1
      org.eclipse.core.runtime.CoreException: org.dom4j.DocumentFactory cannot
      be cast to org.dom4j.DocumentFactory Nested exception:
      org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
      at
      net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:307)
      at
      net.sf.eclipsecs.core.builder.CheckstyleBuilder.build(CheckstyleBuilder.java:171)
      at
      org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at
      org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      at
      org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      at
      org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

      See full Stack in "checkstyle_err.txt". Hope I choose the correct
      milestone. I am using the latest version of CheckstylePlugIn for Eclipse.
      (Eclipse Checkstyle Plugin 5.9.0.201410282234)

      Thx

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/eclipse-cs/bugs/370/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs (Deprecated - use Github): #370

  • Lars Koedderitzsch

    Please reopen if you still have issues with this

     
  • Lars Koedderitzsch

    • status: open --> closed
     

Log in to post a comment.