Action Spring Injection error, consider if struts is configured with namespace (if you have multiple namespace= "/") if there is no error checking for each injection

Source: Internet
Author: User

[ERROR] 2015-01-04 09:42:35,180 (commonslogger.java:38)-Exception occurred during processing request:unable to Instanti Ate Action, com.web.home.action.IndexAction, defined for ' Index ' in namespace '/' Failed to convert property value of type [Com.web.user.bo.impl.UserBO] to required type [Com.web.xuser.bo.IUserBO] for property ' Userbo '; Nested exception is Java.lang.IllegalArgumentException:Cannot convert value of type [Com.web.user.bo.impl.UserBO] to Req uired type [Com.web.xuser.bo.IUserBO] for property ' Userbo ': no matching editors or conversion strategy found
Unable to instantiate Action, com.web.home.action.IndexAction, defined for ' Index ' in namespace '/' Failed to convert Prope Rty value of type [Com.web.user.bo.impl.UserBO] to required type [Com.web.xuser.bo.IUserBO] for property ' Userbo '; Nested exception is Java.lang.IllegalArgumentException:Cannot convert value of type [Com.web.user.bo.impl.UserBO] to Req uired type [Com.web.xuser.bo.IUserBO] for property ' Userbo ': no matching editors or conversion strategy found
At Com.opensymphony.xwork2.DefaultActionInvocation.createAction (defaultactioninvocation.java:316)
At Com.opensymphony.xwork2.DefaultActionInvocation.init (defaultactioninvocation.java:397)
At Com.opensymphony.xwork2.DefaultActionProxy.prepare (defaultactionproxy.java:194)
At Org.apache.struts2.impl.StrutsActionProxy.prepare (strutsactionproxy.java:63)
At Org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (strutsactionproxyfactory.java:39)
At Com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (defaultactionproxyfactory.java:58)
At Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:553)
At Org.apache.struts2.dispatcher.FilterDispatcher.doFilter (filterdispatcher.java:434)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:96)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
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:222)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:123)
At Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:502)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:171)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:100)
At Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:953)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:118)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:408)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1041)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:603)
At Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (jioendpoint.java:312)
At Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908)
At Java.lang.Thread.run (thread.java:619)
caused By:org.springframework.beans.TypeMismatchException:Failed to convert property value of type [ Com.web.user.bo.impl.UserBO] to required type [Com.web.xuser.bo.IUserBO] for property ' Userbo '; Nested exception is Java.lang.IllegalArgumentException:Cannot convert value of type [Com.web.user.bo.impl.UserBO] to Req uired type [Com.web.xuser.bo.IUserBO] for property ' Userbo ': no matching editors or conversion strategy found
At Org.springframework.beans.BeanWrapperImpl.convertForProperty (beanwrapperimpl.java:391)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty ( abstractautowirecapablebeanfactory.java:1289)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( ABSTRACTAUTOWIRECAPABLEBEANFACTORY.JAVA:1250)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( abstractautowirecapablebeanfactory.java:1010)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties ( abstractautowirecapablebeanfactory.java:329)
At Com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean (springobjectfactory.java:203)
At Com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean (springobjectfactory.java:183)
At Com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean (springobjectfactory.java:154)
At Com.opensymphony.xwork2.ObjectFactory.buildBean (objectfactory.java:151)
At Com.opensymphony.xwork2.ObjectFactory.buildAction (objectfactory.java:121)
At Com.opensymphony.xwork2.DefaultActionInvocation.createAction (defaultactioninvocation.java:297)
... More
caused By:java.lang.IllegalArgumentException:Cannot convert value of type [Com.web.user.bo.impl.UserBO] to required Typ e [Com.web.xuser.bo.IUserBO] for property ' Userbo ': no matching editors or conversion strategy found
At Org.springframework.beans.TypeConverterDelegate.convertIfNecessary (typeconverterdelegate.java:231)
At Org.springframework.beans.TypeConverterDelegate.convertIfNecessary (typeconverterdelegate.java:138)
At Org.springframework.beans.BeanWrapperImpl.convertForProperty (beanwrapperimpl.java:386)
... Panax Notoginseng More

The above error is an injection error, but if there is no error checking the injection configuration, consider whether struts is configured with namespace. (If you have multiple namespace= "/")

Action Spring Injection error, consider if struts is configured with namespace (if you have multiple namespace= "/") if there is no error checking for each injection.

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.