Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-109222

"IllegalStateException: zip file closed" sometimes thrown on Weblogic after upgrade

    Description

    Issue is rare and only seen on CI so far

    Steps to Reproduce:

    1. Import attached database dump into mysql
    2. Upgrade portal with upgrade tool
    3. Start portal with Weblogic app server

    Expected Result:
    Startup does not have errors on Weblogic.

    Actual Result:
    Post-upgrade startup sometimes throws:

    ERROR [Framework Event Dispatcher: Equinox Container: f670a5c9-b6ca-4e1d-b73e-2819872851e7][Framework:93] FrameworkEvent ERROR 
    java.lang.IllegalStateException: zip file closed
    	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669)
    	at java.util.zip.ZipFile.getEntry(ZipFile.java:309)
    	at java.util.jar.JarFile.getEntry(JarFile.java:240)
    	at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
    	at com.oracle.classloader.JarCodeSource.getJarEntry(JarCodeSource.java:382)
    	at com.oracle.classloader.JarCodeSource.getResource(JarCodeSource.java:190)
    	at com.oracle.classloader.search.SearchCodeSources.addResources(SearchCodeSources.java:125)
    	at com.oracle.classloader.search.SearchSequence.addResources(SearchSequence.java:117)
    	at com.oracle.classloader.PolicyClassLoader$2.run(PolicyClassLoader.java:481)
    	at com.oracle.classloader.PolicyClassLoader$2.run(PolicyClassLoader.java:474)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at com.oracle.classloader.PolicyClassLoader.getResources(PolicyClassLoader.java:474)
    	at weblogic.utils.classloaders.GenericClassLoader.getParentResources(GenericClassLoader.java:773)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:882)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:738)
    	at weblogic.utils.classloaders.GenericClassLoader.getParentResources(GenericClassLoader.java:773)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:851)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:738)
    	at weblogic.utils.classloaders.GenericClassLoader.getParentResources(GenericClassLoader.java:773)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:851)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:738)
    	at weblogic.utils.classloaders.GenericClassLoader.getParentResources(GenericClassLoader.java:773)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:851)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:738)
    	at weblogic.utils.classloaders.GenericClassLoader.getParentResources(GenericClassLoader.java:773)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:843)
    	at weblogic.utils.classloaders.GenericClassLoader.getResources(GenericClassLoader.java:738)
    	at weblogic.utils.classloaders.ChangeAwareClassLoader.getResources(ChangeAwareClassLoader.java:208)
    	at org.eclipse.osgi.internal.framework.ContextFinder.getResources(ContextFinder.java:165)
    	at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:348)
    	at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393)
    	at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474)
    	at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:293)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
    	at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
    	at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:120)
    	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:854)
    	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:820)
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator._configureLog4j(Log4jExtenderBundleActivator.java:159)
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator.access$000(Log4jExtenderBundleActivator.java:53)
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:63)
    	at com.liferay.portal.log4j.extender.internal.Log4jExtenderBundleActivator$1.addingBundle(Log4jExtenderBundleActivator.java:58)
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475)
    	at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
    	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
    	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
    	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)
    	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230)
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137)
    	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129)
    	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191)
    	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
    	at org.eclipse.osgi.container.Module.doStart(Module.java:578)
    	at org.eclipse.osgi.container.Module.start(Module.java:449)
    	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447)
    	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.lambda$_setUpInitialBundles$5(ModuleFrameworkImpl.java:1730)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor
    

    Examples from CI
    https://testray.liferay.com/home/-/testray/cases/863083879/view?p_p_state=normal&orderByCol=createDate_sortable&orderByType=desc&testrayFactorOptionName=Weblogic&errors=FrameworkEvent
    https://testray.liferay.com/home/-/testray/cases/863083866/view?p_p_state=normal&orderByCol=createDate_sortable&orderByType=desc&testrayFactorOptionName=Weblogic&errors=FrameworkEvent

      Attachments

        Activity

          People

          Assignee:
          support-lep@liferay.com SE Support
          Reporter:
          victor.ware Victor Ware
          Participants of an Issue:
          Recent user:
          Victor Ware
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Dates

            Created:
            Updated:
            Days since last comment:
            2 weeks, 4 days ago

              Packages

              Version Package