Page 1 of 2

upload process won't finish

PostPosted:Wed Jun 04, 2014 6:46 am
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.

Re: upload process won't finish

PostPosted:Thu Jun 05, 2014 7:30 am
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

Re: upload process won't finish

PostPosted:Fri Jun 06, 2014 12:36 am
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)

Re: upload process won't finish

PostPosted:Sun Jun 08, 2014 10:22 am
by jllort
remove both properties "subscription.message.body" and "notification.message.body" properties.

And then try with restarting tomcat service

Re: upload process won't finish

PostPosted:Mon Jun 09, 2014 12:49 am
by taihung
How can I remove these two properties?
I've changed their value to empty values, but the problem still exists.
Thanks.

Re: upload process won't finish

PostPosted:Wed Jun 11, 2014 6:55 am
by jllort
You got a red icon -> it allow you to remove

Re: upload process won't finish

PostPosted:Thu Jun 12, 2014 1:22 am
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.

Re: upload process won't finish

PostPosted:Fri Jun 13, 2014 4:09 pm
by jllort
I refer about this red one.

Re: upload process won't finish

PostPosted:Sat Jun 14, 2014 2:37 am
by taihung
I DO click this icon. But it will link to edit page.
Please see the attached screenshot.
Thanks.

Re: upload process won't finish

PostPosted:Sat Jun 28, 2014 5:57 pm
by pavila
Yes, it should be called "Delete". This is already fixed in the night build.

Re: upload process won't finish

PostPosted:Sun Jun 29, 2014 12:13 am
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.

Re: upload process won't finish

PostPosted:Mon Jun 30, 2014 6:46 am
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.

Re: upload process won't finish

PostPosted:Wed Jul 09, 2014 1:39 am
by taihung
I've tried build 8147, the problem still exists.

Re: upload process won't finish

PostPosted:Fri Jul 11, 2014 8:06 am
by jllort
what is your notification.message.body value ?

Re: upload process won't finish

PostPosted:Sat Jul 12, 2014 1:10 pm
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)