java.lang.IllegalStateException: zip file closed

Java.net JIRA | lidiam | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    build: ogs-3.1-b27-11_03_2010.zip Deploy a web services application (service.ear) to DAS. Access application's General page and click on the View Endpoint link for StatelessSessionBean. In new browser window there will be two urls. Issue #1: they both refer to localhost, even though I'm accessing Admin Console remotely. Click on the first link (https) replacing localhost with the correct machine name. The following exception is printed to the screen: Exceptions details : null java.lang.NullPointerException at java.io.File.(File.java:222) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:509) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.doGet(WebServiceTesterServlet.java:169) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:104) at org.glassfish.webservices.EjbWebServiceServlet.service(EjbWebServiceServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1002) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:942) at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:404) at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:354) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:817) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:718) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1007) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) It does not happen with the second, http, link.

    Java.net JIRA | 6 years ago | lidiam
    java.lang.IllegalStateException: zip file closed

    Root Cause Analysis

    1. java.lang.IllegalStateException

      zip file closed

      at java.util.zip.ZipFile.ensureOpen()
    2. Java RT
      JarURLConnection.getManifest
      1. java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)
      2. java.util.zip.ZipFile.getEntry(ZipFile.java:148)
      3. java.util.jar.JarFile.getEntry(JarFile.java:206)
      4. sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:107)
      5. java.util.jar.JarFile.getJarEntry(JarFile.java:189)
      6. java.util.jar.JarFile.getManEntry(JarFile.java:430)
      7. java.util.jar.JarFile.getManifestFromReference(JarFile.java:154)
      8. java.util.jar.JarFile.getManifest(JarFile.java:146)
      9. sun.net.www.protocol.jar.URLJarFile.isSuperMan(URLJarFile.java:155)
      10. sun.net.www.protocol.jar.URLJarFile.getManifest(URLJarFile.java:121)
      11. java.net.JarURLConnection.getManifest(JarURLConnection.java:217)
      11 frames
    3. GWT dev
      TldScanner.scanTlds
      1. org.apache.jasper.runtime.TldScanner.addManifestClassPath(TldScanner.java:689)
      2. org.apache.jasper.runtime.TldScanner.scanJars(TldScanner.java:627)
      3. org.apache.jasper.runtime.TldScanner.scanTlds(TldScanner.java:298)
      3 frames