tomcat配置好ie打开出错。

图片说明 打开IE出现以下问题:谁帮帮我

    HTTP Status 500 - 

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception
java.lang.NullPointerException
com.sangame.ds.ws.web.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:40)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:233)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.

Apache Tomcat/6.0.20

3个回答

com.sangame.ds.ws.web.interceptor.I18nInterceptor这个类的40行,出现空指针异常,这个分析一下源代码吗

weixin_43420111
我喜欢的梦想 回复weixin_43420111: 有联系方式?
大约一年之前 回复
weixin_43420111
我喜欢的梦想 你好,有联系球球吗?请教一下。
大约一年之前 回复

空指针,debug一下,看那个参数不对

 com.sangame.ds.ws.web.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:40)

配置国际化出问题了,报空指针异常,看是否有空对象

weixin_43420111
我喜欢的梦想 你好,有联系球球吗?请教一下。
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!