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
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.
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
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:
Related
Bugs (Deprecated - use Github):
#370Please reopen if you still have issues with this