3379748 [qtp33117621-12] ERROR org.apache.struts2.dispatcher.StreamResult - Can not find a java.io.InputStream with the name [joGroupMembers] in the invocation stack. Check the tag specified for this action.
3379749 [qtp33117621-12] ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: Can not find a java.io.InputStream with the name [joGroupMembers] in the invocation stack. Check the tag specified for this action.
java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [joGroupMembers] in the invocation stack. Check the tag specified for this action.
at org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java:237)
at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
at org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
该问题有多种原因造成:
遇到这种问题时,根据错误提示,原因没有取到变量joGroupMembers,因此应该去检查这个变量的配置和实际定义的是否一致,以及该变量的存取函数是否正确。
本次的原因是将变量:
private InputStream joGroupMembers = null;
的存取函数:getJoGroupMembers错写成了:getjoGroupMembers