the server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:238) org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:171) org.apache.struts2.json.JSONWriter.process(JSONWriter.java:161) org.apache.struts2.json.JSONWriter.value(JSONWriter.java:127) org.apache.struts2.json.JSONWriter.write(JSONWriter.java:95) org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:116) org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:196) org.apache.struts2.json.JSONResult.execute(JSONResult.java:170) ............................ </pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:155) java.util.ResourceBundle.getObject(ResourceBundle.java:389) java.util.ResourceBundle.getString(ResourceBundle.java:355) getPropVal(CommConfig.java:37) getConfiguration(GlobalAppResouceAction.java:272) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:218) org.apache.struts2.json.JSONWriter.processCustom(JSONWriter.java:171) org.apache.struts2.json.JSONWriter.process(JSONWriter.java:161) org.apache.struts2.json.JSONWriter.value(JSONWriter.java:127) org.apache.struts2.json.JSONWriter.write(JSONWriter.java:95) org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:116) org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:196) org.apache.struts2.json.JSONResult.execute(JSONResult.java:170) com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:374) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)
log 如上。
action 中的普通方法命名应避免使用get、set。