Upgrade From 5.7.3 to 6.4.0 Error ServletContext

Hau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2018

Hi Everyone!

Now I'm upgrading from version 5.7.3 to 6.4.0. When I running program is have Error as below:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jp.co.kodnet.confluence.plugins.findattachment.actions.MyAction': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'servletContext' threw exception; nested exception is java.lang.IllegalStateException: Context attribute is not of type WebApplicationContext: Root WebApplicationContext: startup date [Thu Feb 22 08:36:28 ICT 2018]

 

MyAction is implements ServletContextAware, ServletRequestAware and override void setServletContext(ServletContext servletContext).

In void setServletContext have use setApplicationContext(WebApplicationContextUtils.getWebApplicationContext(servletContext));

And error occurrent at WebApplicationContextUtils.getWebApplicationContext(servletContext).

I don't know handle this error. Hope everyone help me. Thanks All!

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2018

Hi Hau,

Do you have an add-on installed from kodnet.co.jp related to attachments? I'm not able to find this add-on in the Marketplace but it seems to be causing the issue here.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events