"HTTP Status 500-unable to instantiate Action" appears when you run an SSH project

Source: Internet
Author: User
Tags stack trace apache tomcat

Starting the integration of the SSH Frame report error:

HTTP Status 500-unable to instantiate Action, employeeaction, defined for ' Show ' in Namespace '/' Error creating bean With name ' employeeaction ' defined in file [E:\javaTools\apache-tomcat-8.0.15\webapps\ssh\WEB-INF\classes\ Bean-action.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' employeeservice ' of beans class [Cn.itcast.action.EmployeeAction]: Bean property ' EmployeeService ' was not writable or had an invalid setter method. Did you mean ' empoyeeservice '?

type Exception Report

message Unable to instantiate Action, employeeaction, defined for ' Show ' on namespace '/' Error creating bean with Name ' employ Eeaction ' defined in file [E:\javaTools\apache-tomcat-8.0.15\webapps\ssh\WEB-INF\classes\bean-action.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' employeeservice ' of beans class [Cn.itcast.action.EmployeeAction]: Bean property ' EmployeeService ' was not writable or had an invalid setter method. Did you mean ' empoyeeservice '?

Description The server encountered an internal error, prevented it from fulfilling this request.

exception

Unable to instantiate Action, employeeaction, defined for ' Show ' on namespace '/' Error creating Bean with Name ' Employeea ction ' defined in file [E:\javaTools\apache-tomcat-8.0.15\webapps\ssh\WEB-INF\classes\bean-action.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' employeeservice ' of beans class [Cn.itcast.action.EmployeeAction]: Bean property ' EmployeeService ' was not writable or had an invalid setter method. Did you mean ' Empoyeeservice '? Com.opensymphony.xwork2.DefaultActionInvocation.createAction ( defaultactioninvocation.java:319) Com.opensymphony.xwork2.DefaultActionInvocation.init ( defaultactioninvocation.java:400) Com.opensymphony.xwork2.DefaultActionProxy.prepare (Defaultactionproxy.java : 194) Org.apache.struts2.impl.StrutsActionProxy.prepare (strutsactionproxy.java:63) Org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (strutsactionproxyfactory.java:39) Com.opensymphony.xwork2.DefaultActionProxyfactory.createactionproxy (defaultactionproxyfactory.java:58) Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:501) Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:77) Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:91)

root cause

Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' employeeaction ' defined in file [E:\javaTools\apache-tomcat-8.0.15\webapps\ssh\WEB-INF\classes\bean-action.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' employeeservice ' of beans class [Cn.itcast.action.EmployeeAction]: Bean property ' EmployeeService ' was not writable or had an invalid setter method. Did you mean ' empoyeeservice '? Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1453) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( abstractautowirecapablebeanfactory.java:1158) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:519) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeaN (abstractautowirecapablebeanfactory.java:458) Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:315) Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194) Org.springframework.context.support.AbstractApplicationContext.getBean (abstractapplicationcontext.java:1117) Com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean (springobjectfactory.java:151) Com.opensymphony.xwork2.ObjectFactory.buildBean (objectfactory.java:151) Com.opensymphony.xwork2.ObjectFactory.buildAction (objectfactory.java:121) Com.opensymphony.xwork2.DefaultActionInvocation.createAction (defaultactioninvocation.java:300) Com.opensymphony.xwork2.DefaultActionInvocation.init (defaultactioninvocation.java:400) Com.opensymphony.xwork2.DefaultActionProxy.prepare (defaultactionproxy.java:194) Org.apache.struts2.impl.StrutsActionProxy.prepare (strutsactionproxy.java:63) Org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (strutsactionproxyfactory.java:39) Com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy ( defaultactionproxyfactory.java:58) org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:501) Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:77) Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:91)

root cause

Org.springframework.beans.NotWritablePropertyException:Invalid property ' EmployeeService ' of Bean class [ Cn.itcast.action.EmployeeAction]: Bean property ' EmployeeService ' was not writable or had an invalid setter method. Did you mean ' Empoyeeservice '? Org.springframework.beans.BeanWrapperImpl.setPropertyValue (Beanwrapperimpl.java : 1042) Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:902) Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:75) Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:57) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( ABSTRACTAUTOWIRECAPABLEBEANFACTORY.JAVA:1450) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( abstractautowirecapablebeanfactory.java:1158) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (abstractautowirecapablebeanfactory.java:519) Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:458) Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:315) Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194) Org.springframework.context.support.AbstractApplicationContext.getBean (abstractapplicationcontext.java:1117) Com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean (springobjectfactory.java:151) Com.opensymphony.xwork2.ObjectFactory.buildBean (objectfactory.java:151) Com.opensymphony.xwork2.ObjectFactory.buildAction (objectfactory.java:121) Com.opensymphony.xwork2.DefaultActionInvocation.createAction (defaultactioninvocation.java:300) Com.opensymphony.xwork2.DefaultActionInvocation.init (defaultactioninvocation.java:400) Com.opensymphony.xwork2.DefaultActionProxy.prepare (defaultactionproxy.java:194) Org.apache.struts2.impl.StrutsAcTionproxy.prepare (strutsactionproxy.java:63) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (strutsactionproxyfactory.java:39) Com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy ( defaultactionproxyfactory.java:58) org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:501) Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:77) Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:91)

Note The full stack trace of the root cause are available in the Apache tomcat/8.0.15 logs.

Apache tomcat/8.0.15

"HTTP Status 500-unable to instantiate Action" appears when you run an SSH project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.