首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

大师解决思路

2012-04-01 
大师an exception occured while executing the prefix methodjava.lang.reflect.InvocationTargetExcepti

大师
an exception occured while executing the prefix method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)




Could not find action or result
There is no Action mapped for action name >. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)

严重: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'showType.infoType': The requested list key '#session.typeMap' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
at org.apache.struts2.components.Component.fieldError(Component.java:237)
at org.apache.struts2.components.Component.findValue(Component.java:358)



[解决办法]
There is no Action mapped for action name >. 
这个名字的, 没有action与之对应。

The requested list key '#session.typeMap' could not be resolved as a collection/array/map/enumeration/iterator type 这个不能被转换成一个集合, 看你是传的对象还是集合?
[解决办法]
估计是你转发到JSP时,用的Strut2Select标签中的list为空导致的
[解决办法]
Could not find action or result没有找到对应的action或结果(检查struts2.xml)
There is no Action mapped for action name没有与action映射的名字(检查struts2.xml)

tag 'select', field 'list', name 'showType.infoType': The requested list key '#session.typeMap' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} 
select标签,list字段,属性showType.infoType:这个请求的list的KEY值#session.typeMap不能够作为一个集合/数组/MAP/枚举/遍历类型,例如:people 或people.{name}

热点排行
Bad Request.