zoukankan      html  css  js  c++  java
  • ERROR

    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。

  • 相关阅读:
    Yii2中request的使用
    git在本地仓库直接使用rm彻底删除文件,服务端还是存在
    oc基础-oc中之集合NSSet,NSMutableSet
    oc基础-oc中之集合NSArray,NSMutableArray
    oc基础-NSString和NSMutableString区别
    oc基础-Foundation中NSString类型的一些用法
    oc基础-foundation框架中的常用结构体
    oc基础-设计代理模式理解
    oc基础-protocol协议的使用
    block关键字的使用
  • 原文地址:https://www.cnblogs.com/yunkong/p/4788371.html
Copyright © 2011-2022 走看看