org.apache.struts2.json.JSONException:org.apache.struts2.json.JSONException异常

HTTP Status 500 -


typeException report

message

description Theserver encountered an internal error () that prevented it from fulfilling thisrequest.

exception

org.apache.struts2.json.JSONException:org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException:java.lang.reflect.InvocationTargetException

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:230)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.write(JSONWriter.java:94)

        org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:115)

        org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:197)

        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)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

       com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

     com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

        org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)

   org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

root cause

org.apache.struts2.json.JSONException:org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:230)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.array(JSONWriter.java:447)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:150)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.write(JSONWriter.java:94)

        org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:115)

        org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:197)

        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)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

       com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

     com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

        org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)

   org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

root cause

org.apache.struts2.json.JSONException:java.lang.reflect.InvocationTargetException

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:230)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.array(JSONWriter.java:447)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:150)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.write(JSONWriter.java:94)

        org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:115)

        org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:197)

        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)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

       com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

     com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

        org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)

   org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

root cause

java.lang.reflect.InvocationTargetException

        sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)

        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        java.lang.reflect.Method.invoke(Method.java:597)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:210)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.array(JSONWriter.java:447)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:150)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.write(JSONWriter.java:94)

        org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:115)

        org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:197)

        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)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

       com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

     com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)

      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

        org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510)

   org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

root cause

org.hibernate.LazyInitializationException:could not initialize proxy - no Session

      org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)

org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)

org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)

        cn.csdn.domain.C_class_$$_javassist_23.getC_subclass(C_class_$$_javassist_23.java)

        sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)

        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        java.lang.reflect.Method.invoke(Method.java:597)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:210)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.array(JSONWriter.java:447)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:150)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.add(JSONWriter.java:355)

        org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:215)

        org.apache.struts2.json.JSONWriter.process(JSONWriter.java:160)

        org.apache.struts2.json.JSONWriter.value(JSONWriter.java:126)

        org.apache.struts2.json.JSONWriter.write(JSONWriter.java:94)

        org.apache.struts2.json.JSONUtil.serialize(JSONUtil.java:115)

        org.apache.struts2.json.JSONResult.createJSONString(JSONResult.java:197)

        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

 

以上是我在写程序时遇到的一些问题,不知道你是否也遇到过?

上面说的很清楚,是我们在写请求数据时,session提前关闭了,也就是说我们还没有读取到外键信息,session就关系了,这个的解决方法很简单,只要在web,xml中配置以下配置即可:

<filter>
  <filter-name>openSessionInView</filter-name>
  <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
  <init-param>
   <param-name>sessionFactoryBeanName</param-name>
   <param-value>sessionFactory</param-value>//这里的值是取决于你在bean.xml中的配置的名称的
  </init-param>
 </filter>
 
 <filter-mapping>
  <filter-name>openSessionInView</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值