Skip to content

Can't run eclipse checkstyle check from system not connected to internet. #114

@mike-jay-k

Description

@mike-jay-k

Attempting to run checkstyle on code, from a computer that is disconnected from the internet, fails at this point in the code. I've found that if you have a web server on your localhost and import your own configuration XML with the dtd location changed to that localhost location where you've saved the dtd to, then the DTD is found and operates successfully.

Stacktrace below:

net.sf.eclipsecs.core.util.CheckstylePluginException: Remote host closed connection during handshake Nested exception: Remote host closed connection during handshake
	at net.sf.eclipsecs.core.util.CheckstylePluginException.rethrow(CheckstylePluginException.java:67)
	at net.sf.eclipsecs.core.util.CheckstylePluginException.rethrow(CheckstylePluginException.java:80)
	at net.sf.eclipsecs.core.config.ConfigurationReader.read(ConfigurationReader.java:102)
	at net.sf.eclipsecs.core.config.ConfigurationReader.getAdditionalConfigData(ConfigurationReader.java:122)
	at net.sf.eclipsecs.core.builder.CheckerFactory.getAdditionalData(CheckerFactory.java:172)
	at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:145)
	at net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:306)
	at net.sf.eclipsecs.core.jobs.RunCheckstyleOnFilesJob.runInWorkspace(RunCheckstyleOnFilesJob.java:119)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
Caused by: org.dom4j.DocumentException: Remote host closed connection during handshake Nested exception: Remote host closed connection during handshake
	at org.dom4j.io.SAXReader.read(SAXReader.java:484)
	at net.sf.eclipsecs.core.config.ConfigurationReader.read(ConfigurationReader.java:98)
	... 7 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions