• .raw file types

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #349  by yongzhi1983
 
Hi, I need to add documents of the extension \'.raw\'. These documents are raw image formats. Please see:

http://en.wikipedia.org/wiki/RAW_image_format

The files are usually 64MB to 250MB in size. I have done the following:

- edit \'OpenKM.cfg\' to # max.file.size=250
- edit mime.types in the ear file. Added the line \'application/raw raw\' under \'Others\'

However the document fails to upload. The error dialog shows only 1 single red bar.

Does anybody know how to resolve this problem?


Oh, in addition, I have already successfully added another custom file type \'.mk\' using the same method. The .mk\' files can be successfully uploaded.
 #354  by pavila
 
Sorry but I\'m not able to reproduce the problem. I uploaded a 127 MB file with RAW extension with no problems. Perhaps you should post the log. Which OpenKM do you use? Which operating system? Which browser?
 #356  by yongzhi1983
 
pavila wrote:Sorry but I\'m not able to reproduce the problem. I uploaded a 127 MB file with RAW extension with no problems. Perhaps you should post the log. Which OpenKM do you use? Which operating system? Which browser?
Hi pavila, please find attached my server.log.

I am using the following:

- OpenKM-2.0b_JBoss-4.2.2.GA
- Win XP Pro version 2002 service pack 2
- mozilla firefox 2.0.0.14
 #358  by pavila
 
Have you attached the log file?
 #360  by yongzhi1983
 
hi, I found out that the problem was with the java heap size. So instead i ran \'run.jar\' using the following at command line:

java -jar -Xms512m -Xmx1024m run.jar

This resolved the initial problem.

Then i tried to upload the 66MB file again. This time the following error is seen in the server log file:

etParent(/okm:root/xxx/CT_data1.raw)
2008-04-24 10:36:26,218 DEBUG [es.git.openkm.module.direct.DirectDocumentModule] getParent: /okm:root/xxx
2008-04-24 10:36:26,218 DEBUG [es.git.openkm.module.direct.DirectDocumentModule] getName(/okm:root/xxx/CT_data1.raw)
2008-04-24 10:36:26,218 DEBUG [es.git.openkm.module.direct.DirectDocumentModule] getName: CT_data1.raw
2008-04-24 10:36:26,218 DEBUG [es.git.openkm.module.direct.DirectDocumentModule] escape(CT_data1.raw)
2008-04-24 10:36:26,218 DEBUG [es.git.openkm.module.direct.DirectDocumentModule] escape: CT_data1.raw
2008-04-24 10:36:26,218 DEBUG [es.git.openkm.frontend.server.OKMFileUploadServlet] 66322432
es.git.openkm.core.FileSizeExceededException: 66322432
at es.git.openkm.module.direct.DirectDocumentModule.create(DirectDocumentModule.java:236)
at es.git.openkm.api.OKMDocument.create(OKMDocument.java:65)
at es.git.openkm.frontend.server.OKMFileUploadServlet.doPost(OKMFileUploadServlet.java:123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)

This is weird because i already changed the openkm.cfg # max.file.size to 250.
 #362  by pavila
 
Can you post your OpenKM.cfg? Be carefaul because if the line begins with # is is a comment and is not evaluated!
 #365  by yongzhi1983
 
Hi thanks for the prompt reply. I\'ll check on the .cfg file once I get to it. =)
 #367  by yongzhi1983
 
please pardon my stupidity. Indeed the upload size line in openkm.cfg was commented. :laugh: Now everything works!

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.