[opencms-dev] Error while creating resources on the VFS of OpenCms.

DZoltan dzoltan at gmail.com
Wed Sep 24 12:06:34 CEST 2014


Hi,
we're getting an error message while trying to upload images to an image
gallery.
Some images can be uploaded but many images fail to upload.

we noticed that changing the dimensions (width/height) helps sometimes
We didn't notice a strict line about what cause images to fail.
It doesn't look related to the "weight" in KB of the images since "light"
(e.g. around 800kb) images also fails.

this happens for single image uploads, not only batch upload
Happens on firefox and chrome (IE not tested)

is this issue related:
https://github.com/alkacon/opencms-core/issues/163
it is listed as closed.

this is the error:
----------------------
Error
Error while creating resources on the VFS of OpenCms.

Details
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource
from path "/images/test.jpg".
at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:71)
at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:334)
at org.opencms.db.CmsDbContext.report(CmsDbContext.java:286)
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4900)
at org.opencms.file.CmsObject.readResource(CmsObject.java:2957)
at org.opencms.file.CmsObject.lockResource(CmsObject.java:3983)
at org.opencms.file.CmsObject.lockResource(CmsObject.java:1974)
at
org.opencms.ade.upload.CmsUploadBean.createSingleResource(CmsUploadBean.java:368)
at
org.opencms.ade.upload.CmsUploadBean.createResources(CmsUploadBean.java:282)
at org.opencms.ade.upload.CmsUploadBean.start(CmsUploadBean.java:198)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_upload.uploadAction_jsp._jspService(uploadAction_jsp.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:645)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:929)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:525)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1193)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1719)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to read
resource "/images/test.jpg".
at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:2325)
at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:7500)
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:7241)
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4898)
... 47 more



thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140924/553eefdd/attachment.htm>


More information about the opencms-dev mailing list