-1

我有一个基于 Spring 3.1.1 的 Web 应用程序。它在 Apache Tomcat 7.0 上运行良好。但是,当我在 IBM WebSphere Application Server V7.0 上运行它时,我收到一个错误:

00000020 HiddenInputTa E org.springframework.web.servlet.tags.RequestContextAwareTag doStartTag Failed to obtain BeanInfo for class [com.bean.CustomBean]; nested exception is java.beans.IntrospectionException: Indexed read method is not compatible with indexed write method
    org.springframework.beans.FatalBeanException: Failed to obtain BeanInfo for class [com.bean.CustomBean]; nested exception is java.beans.IntrospectionException: Indexed read method is not compatible with indexed write method
    at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:262)
    at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149)
    ...

我还检查了问题 bean 以查看是否缺少 getter 或设置,但所有属性都有其对应的 getter 和 setter。问题 bean 扩展了另一个实现 Cloneable 的自定义 bean。

可能是什么问题呢?我如何解决它?如何运行 Spring 3.1.1。基于 WebSphere 的 Web 应用程序?

4

1 回答 1

0

基于异常,我怀疑以下情况之一:

  • 缺少 getter 或 setter
  • getter 或 setter 拼写不正确,即不被视为字段的 getter/setter
  • getter 返回类型不等于 setter 参数类型
于 2013-01-02T14:20:53.967 回答