#363 "invalid block type" on loading config.xml from classpath

5.6.2
open
nobody
None
6
2014-03-21
2014-03-21
Christoph Pickl
No

sometimes, but just "sometimes" (it goes away after retrying), it happens that loading the xml configuration file from a jar (zip) fails due to... i dont know. it could be the case that this is some checkstyle related bug, rather than the eclipse-plugin, as i guess i've seen the very same error on my jenkins server. anyway, here's the exception stacktrace:

net.sf.eclipsecs.core.util.CheckstylePluginException: invalid block type
at net.sf.eclipsecs.core.util.CheckstylePluginException.rethrow(CheckstylePluginException.java:66)
at net.sf.eclipsecs.core.util.CheckstylePluginException.rethrow(CheckstylePluginException.java:77)
at net.sf.eclipsecs.core.config.configtypes.RemoteConfigurationType.getCheckstyleConfiguration(RemoteConfigurationType.java:163)
at net.sf.eclipsecs.core.config.CheckConfiguration.getCheckstyleConfiguration(CheckConfiguration.java:202)
at net.sf.eclipsecs.core.builder.CheckerFactory.getCacheKey(CheckerFactory.java:222)
at net.sf.eclipsecs.core.builder.CheckerFactory.createChecker(CheckerFactory.java:122)
at net.sf.eclipsecs.core.builder.Auditor.runAudit(Auditor.java:142)
at net.sf.eclipsecs.core.builder.CheckstyleBuilder.handleBuildSelection(CheckstyleBuilder.java:300)
at net.sf.eclipsecs.core.builder.CheckstyleBuilder.build(CheckstyleBuilder.java:171)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.util.zip.ZipException: invalid block type
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:996)
at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:217)
at net.sf.eclipsecs.core.config.configtypes.RemoteConfigurationType.getBytesFromURLConnection(RemoteConfigurationType.java:341)
at net.sf.eclipsecs.core.config.configtypes.RemoteConfigurationType.getCheckstyleConfiguration(RemoteConfigurationType.java:115)
... 18 more

eclipse.buildId=4.3.0.I20130605-2000
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.standard.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product

kr,
christoph

Discussion