can not attach documents to a page
Asked by Pedro Catacora:

When adding and attachement from a page Add \> Attachment we get an /500page.jsp error

--------------------------

JVM Stats

--------------------------

allocatedHeap = 518979584

availablePermGen = 89743872

usedMemory = 286767272

totalMemory = 518979584

freeMemory = 232212312

maxPermGen = 268435456

usedPermGen = 178691584

freeMemoryInMegabytes = 221

freeAllocatedHeap = 232212312

availableHeap = 232212312

usedMemoryInMegabytes = 273

maxHeap = 518979584

usedHeap = 286767272

totalMemoryInMegabytes = 494

--------------------------

Request Information

--------------------------

URL: <http://wiki.cloud.hhs.gov/500page.jsp>

Scheme: http

Server: wiki.cloud.hhs.gov

Port: 80

URI: /500page.jsp

Context Path:

Servlet Path: /500page.jsp

Path Info: null

Query String: pageId=589835

--------------------------

Attributes

--------------------------

javax.servlet.forward.request_uri: /pages/viewpageattachments.action

javax.servlet.forward.context_path:

javax.servlet.forward.servlet_path: /pages/viewpageattachments.action

javax.servlet.forward.path_info: /500page.jsp

javax.servlet.forward.query_string: pageId=589835

os_securityfilter_already_filtered: true

atlassian.core.seraph.original.url: /pages/viewpageattachments.action?pageId=589835

javax.servlet.error.servlet_name: action

com.opensymphony.sitemesh.USINGSTREAM: false

com.atlassian.gzipfilter.GzipFilter_already_filtered: true

loginfilter.already.filtered: true

Confluence-Request-Time: 1350414611469

gzipMimeTypes: text/.\*,application/x-javascript,application/javascript,application/xml,application/xhtml +xml

javax.servlet.error.message:

javamelody.request: /pages/viewpageattachments.action?pageId=589835 GET

__cleanup_recursion_counter: 0

webwork.valueStack: com.opensymphony.xwork.util.OgnlValueStack@298fe136

com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true

javax.servlet.error.request_uri: /pages/viewpageattachments.action

javax.servlet.jsp.jspException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'template/lockpoint/showactionmessages.vm'

com.atlassian.seraph.auth.LoginReason: OK

com.atlassian.confluence.security.websudo.MessagesDecoratorFilter__already_filtered__: true

confluence.themecontext: com.atlassian.confluence.themes.ThemeContext@250ab58b

javax.servlet.error.status_code: 500

com.atlassian.labs.botkiller.BotKillerFilter: true

com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true

com.opensymphony.sitemesh.APPLIED_ONCE: true

com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true

com.atlassian.gzipfilter.org.tuckey.web.filters.urlrewrite.RuleMatched: true

javax.servlet.error.exception: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'template/lockpoint/showactionmessages.vm'

--------------------------

Parameters

--------------------------

pageId : 589835

caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'template/lockpoint/showactionmessages.vm'

at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:401)

<br />


Answers:
author: Scott Dudley [Inactive]
body: Pedro,

From the stack trace, it looks like you may be using (or may have been using) the Arsenale Lockpoint plugin. The symptoms suggest that Lockpoint might not have initialized correctly, or it may have been uninstalled in a way that did not give it a chance to shut down properly.

Is Lockpoint still installed on your system? If so, does it help if you disable and reenable it?

If Lockpoint is not longer installed on your system and you are still seeing this problem, I might also suggest that you temporarily install Lockpoint and then immediately uninstall it, which would force it to clear any relevant files (such as Velocity caches) that might have gotten stuck.

comments: author: Scott Dudley [Inactive]
body: Should anyone else run into this problem, there is a [FAQ entry](https://www.cenotelabs.com/docs/lockpoint/faq#FAQ-decoratorsIamseeingtheerror:Unabletofindresource'template/lockpoint/showactionmessages.vm') that discusses an alternate resolution mechanism.


author: Bruna Griebeler
body: Hi Pedro!  

What happened is that your instance could not find a Velocity Page (vm).   
Unable to find resource 'template/lockpoint/showactionmessages.vm  
It might be caused by some error on the installation, or some permission issue.  

I suggest you to check if this file is actually available on your Confluence. If you are using Linux you may use the \*find\* command to check if it really exists.  
Also, you may disable your third-party plugins to check if some plugins is causing this.  
To do that go to Browse \> Confluence Admin \> Plugins \> Enable Safe Mode.  
Then restart you Confluence and check if the behavior persists.  

Hope it helps!