Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update document through CMIS is not working #11

Open
tiurlumbangaol opened this issue Dec 20, 2014 · 0 comments
Open

Update document through CMIS is not working #11

tiurlumbangaol opened this issue Dec 20, 2014 · 0 comments

Comments

@tiurlumbangaol
Copy link

when i update existing document through CMIS, it is throwing error with log :

Started POST "/projects/30/3/cmis/update_attachment" for 202.62.17.79 at 2014-12-20 15:26:31 +0700
Processing by CmisController#update_attachment as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RqYBdELI/cPe7NVTkNYWAFjwSFJEI8cN1U65BEzbcD8=", "attachments"=>{"1"=>{"file"=>#<ActionDispatch::Http::UploadedFile:0x00000005aa4bf0 @original_filename="Semi-Blank-PDF.docx", @content_type="application/vnd.openxmlformats-officedocument.wordprocessingml.document", @headers="Content-Disposition: form-data; name="attachments[1][file]"; filename="Semi-Blank-PDF.docx"\r\nContent-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document\r\n", @tempfile=#File:/tmp/RackMultipart20141220-5382-1ookmpl>, "description"=>""}}, "commit"=>"Update", "project_id"=>"30", "id"=>"3"}
Current user: tiur (id=3)
Completed 500 Internal Server Error in 595ms

RuntimeError (

<title>Web Script Status 500 - Internal Error</title>
Alfresco Web Script Status 500 - Internal Error

The Web Script /alfresco/service/cmis/checkedout has responded with a status of 500 - Internal Error.

500 Description: An error inside the HTTP server which prevented it from fulfilling the request.
 
Message:11201042288 Cannot locate template processor for template org/alfresco/cmis/checkedout.post.atomentry
 
Exception:org.springframework.extensions.webscripts.WebScriptException - 11201042288 Cannot locate template processor for template org/alfresco/cmis/checkedout.post.atomentry
 
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:808)
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:400)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:316)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)
 
Server:Community v4.0.0 (4003) schema 5,025
Time:Dec 20, 2014 3:13:35 PM
 
Diagnostics:Inspect Web Script (org/alfresco/cmis/checkedout.post)

):
active_cmis (0.3.5) lib/active_cmis/document.rb:186:in checkout' plugins/redmine_cmis/lib/cmis_module.rb:71:inupdate_document_relative'
plugins/redmine_cmis/lib/cmis_module.rb:65:in update_document' plugins/redmine_cmis/app/models/cmis_attachment.rb:75:inupdate_cmis_att'
activesupport (3.2.12) lib/active_support/callbacks.rb:407:in _run__4589430067101109309__update__1351901105144026711__callbacks' activesupport (3.2.12) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.12) lib/active_support/callbacks.rb:385:in _run_update_callbacks' activesupport (3.2.12) lib/active_support/callbacks.rb:81:inrun_callbacks'
activerecord (3.2.12) lib/active_record/callbacks.rb:272:in update' activerecord (3.2.12) lib/active_record/persistence.rb:348:increate_or_update'
activerecord (3.2.12) lib/active_record/callbacks.rb:264:in block in create_or_update' activesupport (3.2.12) lib/active_support/callbacks.rb:425:in_run__4589430067101109309__save__1351901105144026711__callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.12) lib/active_support/callbacks.rb:385:in_run_save_callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in run_callbacks' activerecord (3.2.12) lib/active_record/callbacks.rb:264:increate_or_update'
activerecord (3.2.12) lib/active_record/persistence.rb:84:in save' activerecord (3.2.12) lib/active_record/validations.rb:50:insave'
activerecord (3.2.12) lib/active_record/attribute_methods/dirty.rb:22:in save' activerecord (3.2.12) lib/active_record/transactions.rb:259:inblock (2 levels) in save'
activerecord (3.2.12) lib/active_record/transactions.rb:313:in block in with_transaction_returning_status' activerecord (3.2.12) lib/active_record/connection_adapters/abstract/database_statements.rb:192:intransaction'
activerecord (3.2.12) lib/active_record/transactions.rb:208:in transaction' activerecord (3.2.12) lib/active_record/transactions.rb:311:inwith_transaction_returning_status'
activerecord (3.2.12) lib/active_record/transactions.rb:259:in block in save' activerecord (3.2.12) lib/active_record/transactions.rb:270:inrollback_active_record_state!'
activerecord (3.2.12) lib/active_record/transactions.rb:258:in save' plugins/redmine_cmis/app/models/cmis_attachment.rb:237:inblock in update_file'
plugins/redmine_cmis/app/models/cmis_attachment.rb:227:in each_value' plugins/redmine_cmis/app/models/cmis_attachment.rb:227:inupdate_file'
plugins/redmine_cmis/app/controllers/cmis_controller.rb:178:in update_attachment' actionpack (3.2.12) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (3.2.12) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.12) lib/action_controller/metal/rendering.rb:10:inprocess_action'
actionpack (3.2.12) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.12) lib/active_support/callbacks.rb:469:in_run__831146657537024486__process_action__2378217023413686954__callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.12) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.12) lib/abstract_controller/callbacks.rb:17:inprocess_action'
actionpack (3.2.12) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
activesupport (3.2.12) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.12) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
actionpack (3.2.12) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.12) lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
actionpack (3.2.12) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.12) lib/abstract_controller/rendering.rb:45:inprocess'
actionpack (3.2.12) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.12) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.2.12) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:73:incall'
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:36:incall'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:601:incall'
rack-openid (1.4.0) lib/rack/openid.rb:98:in call' actionpack (3.2.12) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.5) lib/rack/etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:35:incall'
actionpack (3.2.12) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.12) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.12) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.12) lib/action_dispatch/middleware/cookies.rb:341:incall'
activerecord (3.2.12) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.12) lib/active_support/callbacks.rb:405:in_run__2258203405781541866__call__1351901105144026711__callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.12) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.12) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.12) lib/rails/rack/logger.rb:32:incall_app'
railties (3.2.12) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:intagged'
railties (3.2.12) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.12) lib/action_dispatch/middleware/request_id.rb:22:incall'
rack (1.4.5) lib/rack/methodoverride.rb:21:in call' rack (1.4.5) lib/rack/runtime.rb:17:incall'
activesupport (3.2.12) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.5) lib/rack/lock.rb:15:incall'
actionpack (3.2.12) lib/action_dispatch/middleware/static.rb:62:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
rack-cache (1.2) lib/rack/cache/context.rb:143:in pass' rack-cache (1.2) lib/rack/cache/context.rb:155:ininvalidate'
rack-cache (1.2) lib/rack/cache/context.rb:71:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
railties (3.2.12) lib/rails/engine.rb:479:in call' railties (3.2.12) lib/rails/application.rb:223:incall'
railties (3.2.12) lib/rails/railtie/configurable.rb:30:in method_missing' passenger (4.0.20) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
passenger (4.0.20) lib/phusion_passenger/request_handler/thread_handler.rb:140:in accept_and_process_next_request' passenger (4.0.20) lib/phusion_passenger/request_handler/thread_handler.rb:108:inmain_loop'
passenger (4.0.20) lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant