1、答案HTTP Status 500 Internal Server ErrorType 异常报告消息 For input string: 描述 服务器遇到一个意外的情况,阻止它完成请求。Exception java.lang.NumberFormatException: For input string: java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)java.lang.Integer.parseInt(Integer.java:592)java.lang.Integer.parseIn
2、t(Integer.java:615)com.qdexam.struts.action.EnglishQuestionsAction.exportWord(EnglishQuestionsAction.java:8013)sun.reflect.GeneratedMethodAccessor777.invoke(Unknown Source)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java
3、:498)ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892)ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1294)ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)com.op
4、ensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370)ognl.ASTMethod.getValueBody(ASTMethod.java:91)ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)ognl.SimpleNode.getValue(SimpleNode.java:258)ognl.Ognl.
5、getValue(Ognl.java:467)ognl.Ognl.getValue(Ognl.java:431)com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:352)com.opensymphony.xwork2.ognl.OgnlUpileAndExecuteMethod(OgnlUtil.java:404)com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:350)com.opensymphony.xwork2.DefaultActionI
6、nvocation.invokeAction(DefaultActionInvocation.java:430)com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:290)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)org.apache.struts2.interceptor.DeprecationInterceptor.inte
7、rcept(DeprecationInterceptor.java:41)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvoc
8、ation.java:245)com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
9、cation.java:245)com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
10、.intercept(MethodFilterInterceptor.java:98)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defau
11、ltActionInvocation.java:245)com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionI
12、nvocation.java:245)com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation
13、.java:245)com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java
14、:73)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.i
15、nterceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)com.opensymphony.xwork2.DefaultActionInvocation.i
16、nvoke(DefaultActionInvocation.java:245)com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.interce
17、pt(ScopedModelDrivenInterceptor.java:141)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
18、on.java:245)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:245)com
19、.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)com.opensymphony.xwork2.Defa
20、ultActionInvocation.invoke(DefaultActionInvocation.java:245)com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor
21、.intercept(ExceptionMappingInterceptor.java:189)com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:575)org.apache.st
22、ruts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)com.qdexam.filter.SecurityFilter.doFilter(SecurityFilter.java:53)com.qdexam.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:83):注意 主要问题的全部 stack 信息可以在 server logs 里查看Apache Tomcat/7.0.100更多试卷请见麦多课文库