target is null for setProperty
2013-07-18 09:02
295 查看
- No configuration found for the specified action: 'login.action' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'login.action' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'toSearchybgwForDo.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'toSearchybgwForDo.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'addNewReadDocument.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'addNewReadDocument.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- Error setting expression 'message.type' with value '[Ljava.lang.String;@18195b3'
ognl.OgnlException: target is null for setProperty(null, "type", [Ljava.lang.String;@18195b3)
错误原因:在jsp使用到<s:hidden name="message.type" value="1"></s:hidden>,但是没有在action中定义message和他的get()、set()方法
解决方案:在action中定义message和他的get()、set()方法,重启Tomcat
- No configuration found for the specified action: 'login.action' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'toSearchybgwForDo.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'toSearchybgwForDo.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'addNewReadDocument.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- No configuration found for the specified action: 'addNewReadDocument.action' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
- Error setting expression 'message.type' with value '[Ljava.lang.String;@18195b3'
ognl.OgnlException: target is null for setProperty(null, "type", [Ljava.lang.String;@18195b3)
错误原因:在jsp使用到<s:hidden name="message.type" value="1"></s:hidden>,但是没有在action中定义message和他的get()、set()方法
解决方案:在action中定义message和他的get()、set()方法,重启Tomcat
相关文章推荐
- ognl.OgnlException: target is null for setProperty 异常处理
- 关于ognl.OgnlException: target is null for setProperty
- target is null for setProperty(null, "x", [Ljava.lang.String;@b0c40e)错误异常
- Warning Error user.userId value userid 出现错误ognl.OgnlException: target is null for setProperty(null, "userid", [Ljava.lang.String;@19af9e98)
- 关于ognl.OgnlException: target is null for setProperty
- ognl.OgnlException: target is null for setProperty(null,"XXXX"...)
- target is null for setProperty(null, "name", [Ljava.lang.String;@ffc6ae)
- 关于ognl.OgnlException: target is null for setProperty(null的解决方案
- target is null for setProperty
- 关于ognl.OgnlException: target is null for setProperty(null的解决方案
- Warning Error user.userId value userid 出现错误ognl.OgnlException: target is null for setProperty(null, "userid", [Ljava.lang.String;@19af9e98)
- 关于target is null for setProperty的问题总结
- target is null for setProperty(null, "passwordHash", [Ljava.lang.String;@1535ac)
- 14-关于ognl.OgnlException: target is null for setProperty(null的解决方案)
- ognl.OgnlException: target is null for setProperty(null, "y", [Ljava.lang.String;@1d57c7)
- Struts2异常:ognl.OgnlException: target is null for setProperty
- ognl.OgnlException: target is null for setProperty(null, "login", [Ljava.lang.String;@133cdbd) 国际化时,登录按钮报错
- ognl.OgnlException: target is null for setProperty(null, "y", [Ljava.lang.St
- ognl.OgnlException: target is null for setProperty(null, "x",)错误
- ognl.OgnlException: target is null for setProperty(null, "offset", [Ljava.lang.String;@1667f3c) 解决方法