`
weii
  • 浏览: 101090 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Unable to instantiate Action

阅读更多

今天遇到一个报错,信息如下:

 java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy45] to required type [org.dudu.box.service.AnswerManager] for property 'answerManager': no matching editors or conversion strategy found

起初以为是动态代理接口还是类的错误。

可是没有错误啊。

 

再仔细看:

javax.servlet.ServletException: Unable to instantiate Action, askBarAction,  defined for 'indexAskBar' in namespace '/askbar'Error creating bean with name 'askBarAction' defined in class path resource [applicationContext-weiqi.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy45] to required type [org.dudu.box.service.AnswerManager] for property 'answerManager'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy45] to required type [org.dudu.box.service.AnswerManager] for property 'answerManager': no matching editors or conversion strategy found - action - file:/D:/software/apache-tomcat-6.0.18/webapps/cowboy-2.0/WEB-INF/classes/conf/struts-WEIQI.xml:72:72

 

焦点在'answerManager'上了!

可是前一阵子还能正常运行呢!

 

最后检查才发现同事也配置了一个'answerManager'!跟我的一摸一样!我晕~~

 

希望大家不要犯这种错误。

分享到:
评论
2 楼 pl445368672 2014-05-06  
感谢楼主,  一样的问题。。。。
1 楼 pl445368672 2014-05-06  
和楼主一样问题。

相关推荐

    SSH登录无实例化例子

    stdin, stdout, stderr = ssh.exec_command('command_to_execute') output = stdout.read().decode() error = stderr.read().decode() ssh.close() ``` 在这个例子中,我们创建了一个`SSHClient`实例,但只...

    解决Hive启动失败Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

    FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 通过控制台的...

    BroadcasReceivert的两种注册模式

    <action android:name="com.example.MY_ACTION" /> ``` 在这个例子中,`MyBroadcastReceiver`类需要实现BroadcastReceiver,并在onReceive()方法中处理广播事件。 两种注册方式各有优缺点:动态注册灵活性高,...

    Axis2WebService与Spring的整合

    <constructor-arg value="file:/path/to/axis2.xml"/> ``` 3. **定义Web服务**: 在Spring配置文件中,使用`ServiceDeployer` bean部署Axis2服务。这通常涉及到将服务的aar文件添加到Axis2的Repository目录,并...

    Struts2.1.6+Spring2.5.6+Hibernate3.3.1框架整合常见错误

    Unable to instantiate Action, savaUserAction, defined for 'saveUser' in namespace '/' savaUserAction ``` **原因分析**: 该错误提示表明Struts2无法找到或实例化指定的Action类`savaUserAction`。这可能是...

    ar.com.tadp.xml.rinzo

    在软件开发领域,XML(Extensible Markup Language)作为一种数据交换格式,被广泛应用于配置文件、数据存储和网络通信等领域。Eclipse作为一款强大的开源集成开发环境(IDE),提供了丰富的插件支持,以增强其功能...

    Java Mime Magic Library-开源

    Java Mime Magic Library,通常被称为 jMimeMagic,是一款在Java平台上用于识别文件或输入流MIME类型的开源库。MIME(Multipurpose Internet Mail Extensions)类型是互联网标准,用于标识不同类型的二进制或文本...

    dpoll.xyz:顶级HIVE区块链上的去中心化投票应用程序

    dpoll ... 最初创建于 安装 $ python3 -m venv dpoll-env $ tmp source dpoll-env/bin/activate ...$ cd dpoll.xyz $ pip install -r requirements.txt $ touch dpoll/base/settings.py dpoll/base/local_settings.py ...

    Unity3D教程:Prefabs与Instantiate1

    Unity3D Prefabs 与 Instantiate 教程 Unity 3D 中的 Prefabs 是一种资源类型,可以被重复使用的游戏对象。它可以被置入多个场景中,又或者能够在一个场景中被多次置入。当你在一个场景中增加一个 Prefabs,你就...

    Unity3D入门 :Prefabs(预设)与 Instantiate(实例化)

    在Unity3D游戏开发中,Prefabs(预设)和Instantiate(实例化)是两个非常重要的概念,它们是构建游戏对象和动态管理游戏世界的基石。本文将深入探讨这两个概念,帮助初学者理解并掌握它们在实际项目中的应用。 ...

    fabric网络踩坑记录

    {“success”:false,“message”:“Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid ...

    steadyrabbit

    稳定的兔子 stablerabbit是一个用于Rabbitmq的库 ... log.Fatalf("unable to instantiate publisher: %s", err) } queueName := "shahin" if err = p.Publish(context.Background(), queueName

    解决SpringDataJPA报错:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null w

    问题描述 用SpringBoot + Spring Data JPA操作数据库 项目启动的时候 报了一个错 SpringBoot的版本是2.2.6.RELEASE org.springframework.beans.factory.BeanCreationException: Error creating bean with name '...

    webservice-pushover:WebService-Pushover-Perl对Pushover API的支持

    名称 WebService :: Pushover-Pushover ...) or die( "Unable to instantiate WebService::Pushover.\n" ); my %params = ( message => 'test test test', priority => 0, ); my $status = $push->message( %params

    spring-amqp-java-8:在 Java 8 上运行的示例项目

    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.core.Queue]: Factory method 'clientQueue' threw exception; nested exception is org....

    MediaExtractor抽取视频->MediaMuxer产生视频文件

    在Android平台上,多媒体处理是应用开发中的重要组成部分。MediaExtractor和MediaMuxer是两个核心组件,用于处理和合成多媒体数据。本篇文章将深入探讨如何使用MediaExtractor从视频流中抽取数据,然后利用...

    Unity中Instantiate实例化物体卡顿问题的解决

    本文实例为大家分享了Unity中Instantiate实例化物体卡顿问题的解决方法,供大家参考,具体内容如下 一、前言 当在执行多次Instantiate实例化物体时,会卡顿严重甚至在移动端会导致程序崩溃 因为Instantiate会产生...

    org.hibernate.HibernateException: No Hibernate Session bound to thread

    然而,在使用 Hibernate 进行数据库操作时,经常会遇到 "No Hibernate Session bound to thread" 的错误信息。本文将详细介绍该错误的解决方案。 错误原因 "No Hibernate Session bound to thread" 错误信息通常是...

    JAF 1.0.2 下载

    discover the operations available on it, and to instantiate the appropriate bean to perform said operation(s). For example, if a browser obtained a JPEG image, this framework would enable the browser...

Global site tag (gtag.js) - Google Analytics