• upload process won't finish

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #28861  by taihung
 
After upgrading to 6.3.0, uploading single file with notification will failed.
The upload process is 100%, but just stop and won't finish the process. (see picture)
Although the file was uploaded, other uploading files keep remaining in queue.

OS: windows server 2003
db: MySQL

Some error messages in catalina.log
Code: Select all
2014-06-04 14:42:58,413 [http-bio-0.0.0.0-8080-exec-25] ERROR com.openkm.servlet.frontend.FileUploadServlet - TemplateException: Expression documentName is undefined on line 1, column 27 in NotificationMessageSubject.
java.io.IOException: TemplateException: Expression documentName is undefined on line 1, column 27 in NotificationMessageSubject.
	at com.openkm.module.db.DbNotificationModule.notify(DbNotificationModule.java:209)
	at com.openkm.module.db.DbNotificationModule.notify(DbNotificationModule.java:152)
	at com.openkm.api.OKMNotification.notify(OKMNotification.java:88)
	at com.openkm.servlet.frontend.FileUploadServlet.doPost(FileUploadServlet.java:357)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.openkm.servlet.frontend.UploadThrottleFilter.doFilter(UploadThrottleFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: freemarker.core.InvalidReferenceException: Expression documentName is undefined on line 1, column 27 in NotificationMessageSubject.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.Expression.getStringValue(Expression.java:118)
	at freemarker.core.Expression.getStringValue(Expression.java:93)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	at freemarker.core.Environment.visit(Environment.java:210)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:210)
	at freemarker.core.Environment.process(Environment.java:190)
	at freemarker.template.Template.process(Template.java:237)
	at com.openkm.module.common.CommonNotificationModule.sendNotification(CommonNotificationModule.java:110)
	at com.openkm.module.db.DbNotificationModule.notify(DbNotificationModule.java:204)
	... 47 more
freemarker's problem? I just try to upload a word file.

Thanks.
Attachments
The upload process is 100%, but just stop and won't finish the process.
The upload process is 100%, but just stop and won't finish the process.
okm1.jpg (35.38 KiB) Viewed 7469 times
 #28879  by jllort
 
I think it's something we forgot in upgrade guide. Try it:
- Go to administration -> configuration
- Remove property called notification.message.body and also proposed.subscription.message.body
- Restart openkm
 #28884  by taihung
 
Thanks jllort.
When I click that little delete button on configuration page, it will be redirected to a edit page.
And only "cancel" and "edit" buttons.
How can I delete these two properties from configuration page?

BTW, there is no "proposed.subscription.message.body" property in configuration.
But I can find "subscription.message.body" and "notification.message.body" properties.

Thanks again.

OpenKM 6.3.0 (build 19594)
 #28893  by jllort
 
remove both properties "subscription.message.body" and "notification.message.body" properties.

And then try with restarting tomcat service
 #28897  by taihung
 
How can I remove these two properties?
I've changed their value to empty values, but the problem still exists.
Thanks.
 #28914  by jllort
 
You got a red icon -> it allow you to remove
 #28922  by taihung
 
When I click that red icon, the webpage will link to edit page.
There are only edit and cancel button. see attached file.
How can i remove these properties.
I've tried empty these property's value, but it will be restored after restart tomcat.
 #28934  by jllort
 
I refer about this red one.
Attachments
configuration_001.png
configuration_001.png (21.98 KiB) Viewed 7425 times
 #28938  by taihung
 
I DO click this icon. But it will link to edit page.
Please see the attached screenshot.
Thanks.
Attachments
delete screen
delete screen
dele.jpg (60.12 KiB) Viewed 7423 times
 #29089  by pavila
 
Yes, it should be called "Delete". This is already fixed in the night build.
 #29092  by taihung
 
Thanks for the reply.
I can not find OpenKM.war download link at OpenKM Integration webpage (http://integration.openkm.com/6.3/).

I've tried build 8144 that I downloaded 2 weeks ago.
In build 8144, I can remove notification.message.body and subscription.message.body.
But the problem still exits.
When I restart OpenKm, these two properties still can be found in configuration page.
 #29096  by jllort
 
Try download this night, has been some mistake in svn where was missing one file to be uploaded and project hasn't built correctly.
 #29233  by jllort
 
what is your notification.message.body value ?
 #29265  by taihung
 
I've tried installed windows version on a new windows 7.
The value of notification.message.body is the default value "<b>Message: </b>${notificationMessage}<br/><b>User: </b>${userId}<br/><#list documentList as doc><b>Document: </b><a href="${doc.url}">${doc.path}</a><br/></#list>"
The notification process won't work.

Then I set the value of notification.message.body to be blank. --> result: won't work.
Delete property notification.message.body --> it will be restored (including default value)

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.