Server does not work well with a different theme

Description

We build an own theme and tried to use it with iDempiere 3.0 but it dies not work. Sometimes the icons and graphics are shown and sometimes not. There is a problem to load the resources from the theme fragment. It seems that if the graphics are in the browsercache everthing works from now on but with new browsers we get problems. The server says things like:

11:29:52.424-----------> AbstractExtendlet.getResourceAsStream: Unable to read from URL: /js/zul/sel/Select.js [27] java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:634) at java.util.zip.ZipFile.access$200(ZipFile.java:56) at java.util.zip.ZipFile$1.hasMoreElements(ZipFile.java:487) at java.util.jar.JarFile$1.hasMoreElements(JarFile.java:241) at org.eclipse.jetty.util.resource.JarFileResource.exists(JarFileResource.java:191) at org.eclipse.jetty.webapp.WebAppContext.getResource(WebAppContext.java:372) at org.eclipse.jetty.webapp.WebAppContext$Context.getResource(WebAppContext.java:1459) at org.zkoss.web.util.resource.ServletContextLocator.getResource0(ServletContextLocator.java:154) at org.zkoss.web.util.resource.ServletContextLocator.getResource(ServletContextLocator.java:137) at org.zkoss.web.util.resource.ClassWebResource.getResource(ClassWebResource.java:145) at org.zkoss.web.util.resource.ClassWebResource$CWC.getResource(ClassWebResource.java:841) at org.zkoss.zk.ui.http.AbstractExtendlet.getResourceAsStream(AbstractExtendlet.java:160) at org.zkoss.zk.ui.http.AbstractExtendlet.access$000(AbstractExtendlet.java:52) at org.zkoss.zk.ui.http.AbstractExtendlet$RequestContext.getResourceAsStream(AbstractExtendlet.java:200) at org.zkoss.zk.ui.http.WpdExtendlet.writeResource(WpdExtendlet.java:414) at org.zkoss.zk.ui.http.WpdExtendlet.parse(WpdExtendlet.java:246) at org.zkoss.zk.ui.http.WpdExtendlet.access$1600(WpdExtendlet.java:83) at org.zkoss.zk.ui.http.WpdExtendlet$SourceInfo.parse(WpdExtendlet.java:643) at org.zkoss.zk.ui.http.WpdExtendlet$SourceInfo.access$1500(WpdExtendlet.java:633) at org.zkoss.zk.ui.http.WpdExtendlet$Content.parse(WpdExtendlet.java:622) at org.zkoss.zk.ui.http.WpdExtendlet$Content.access$100(WpdExtendlet.java:612)

It works in Eclipse but not on the server. The server has enough memory. We tried raising the heap space.

Environment

None

Attachments

2
  • 13 Oct 2017, 05:14 AM
  • 07 Aug 2015, 02:18 PM

Activity

Show:

Hiep Lq October 29, 2020 at 7:33 AM

FYI: https://bugs.eclipse.org/bugs/show_bug.cgi?id=364936

on this ticket said org.eclipse.jetty.util.resource.Resource = false is work-around and it's fixed (not sure version)

Carlos Ruiz October 13, 2017 at 10:36 AM

Thanks .

I mean, https://idempiere.atlassian.net/browse/IDEMPIERE-3440#icft=IDEMPIERE-3440 didn't solve this issue, we're testing now with the patch here before commit.

Hiep Lq October 13, 2017 at 5:14 AM

the patch

isn't resolved issue?

try unpack plugin/fragment when deploy, so don't relate zip anymore (i not yet try it, just idea).

Carlos Ruiz October 12, 2017 at 4:54 PM

not solved yet - today we found the same issue with https - also with http but different behavior

Carlos Ruiz October 11, 2017 at 1:48 PM

I suspect the issue found here is related to https://idempiere.atlassian.net/browse/IDEMPIERE-3440#icft=IDEMPIERE-3440

Committed a fix in IDEMPIERE-3440.

Please reopen this ticket if there are still problems with cache of theme resources.

Fixed

Details

Assignee

Reporter

Labels

Tested By

Diego Ruiz
Thomas Bayen

Priority

Created August 7, 2015 at 1:45 PM
Updated October 29, 2020 at 7:33 AM
Resolved October 13, 2017 at 11:40 AM