[jbosstools-issues] [JBoss JIRA] (JBIDE-17530) when urls fails to download we end up with 0 size content

Denis Golovin (JIRA) issues at jboss.org
Wed Jun 4 18:14:15 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-17530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Golovin updated JBIDE-17530:
----------------------------------

              Involved: Denis Golovin, Mickael Istria, Snjezana Peco
    Steps to Reproduce: 
# EXEC: Start JBT and open JBoss Tools Central Editor
# EXEC: Locate toolbar button and editor tab as close as you can
# EXEC: Close and open JBT Central by pushing toolbar button and (x) on editor tab
# ASSERT: no reported error


Cloning this issues for 4.2.0.Beta3 because it is pretty easy to replicate in JBoss Tools Central editor (see Steps to Reproduce).

Very easy to replicate.

Not critical issue, but looks bad.



> when urls fails to download we end up with 0 size content
> ---------------------------------------------------------
>
>                 Key: JBIDE-17530
>                 URL: https://issues.jboss.org/browse/JBIDE-17530
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central, common/jst/core, project-examples
>            Reporter: Max Rydahl Andersen
>            Assignee: Rob Stryker
>             Fix For: 4.2.0.Beta3
>
>
> due to a crash files end up being 0 sized resulting in this stack trace:
> STACK 0
> 18:14 java.util.zip.ZipException: zip file is empty
> 18:14         at java.util.zip.ZipFile.open(Native Method)
> 18:14         at java.util.zip.ZipFile.<init>(ZipFile.java:215)
> 18:14         at java.util.zip.ZipFile.<init>(ZipFile.java:145)
> 18:14         at java.util.jar.JarFile.<init>(JarFile.java:153)
> 18:14         at java.util.jar.JarFile.<init>(JarFile.java:117)
> 18:14         at org.jboss.tools.project.examples.internal.discovery.xpl.DiscoveryRegistryStrategy.processBundle(DiscoveryRegistryStrategy.java:137)
> 18:14         at org.jboss.tools.project.examples.internal.discovery.xpl.DiscoveryRegistryStrategy.processBundles(DiscoveryRegistryStrategy.java:126)
> 18:14         at org.jboss.tools.project.examples.internal.discovery.xpl.DiscoveryRegistryStrategy.onStart(DiscoveryRegistryStrategy.java:78)
> 18:14         at org.eclipse.core.internal.registry.ExtensionRegistry.<init>(ExtensionRegistry.java:725)
> 18:14         at org.jboss.tools.project.examples.internal.discovery.xpl.ExternalBundleDiscoveryStrategy.performDiscovery(ExternalBundleDiscoveryStrategy.java:125)
> files shoulnd't be put into cache before completely downloaded.



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jbosstools-issues mailing list