Page 1 of 1
.raw file types
PostPosted:Wed Apr 23, 2008 6:15 am
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.
Re:.raw file types
PostPosted:Wed Apr 23, 2008 6:21 am
by yongzhi1983
this is a screenshot of the error

Re:.raw file types
PostPosted:Wed Apr 23, 2008 8:32 am
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?
Re:.raw file types
PostPosted:Wed Apr 23, 2008 9:25 am
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
Re:.raw file types
PostPosted:Wed Apr 23, 2008 6:03 pm
by pavila
Have you attached the log file?
Re:.raw file types
PostPosted:Thu Apr 24, 2008 1:19 am
by yongzhi1983
Sorry think i left out the log file. :S [file name=server-82a4ff6d1873c4ceaa739a893c5a846b.zip size=78794]
http://www.openkm.com/images/fbfiles/fi ... 5a846b.zip[/file]
- file zipped using 7zip with ultra compression
Re:.raw file types
PostPosted:Thu Apr 24, 2008 2:47 am
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.
Re:.raw file types
PostPosted:Thu Apr 24, 2008 9:48 am
by pavila
Can you post your OpenKM.cfg? Be carefaul because if the line begins with # is is a comment and is not evaluated!
Re:.raw file types
PostPosted:Fri Apr 25, 2008 2:04 pm
by yongzhi1983
Hi thanks for the prompt reply. I\'ll check on the .cfg file once I get to it. =)
Re:.raw file types
PostPosted:Mon Apr 28, 2008 4:32 am
by yongzhi1983
please pardon my stupidity. Indeed the upload size line in openkm.cfg was commented. :laugh: Now everything works!