问题描述
项目本身在WebSphere部署正常,今天下午替换了两个class,导致项目两个功能不能用了,下面贴异常
解决方案
解决方案二:
[14-11-2617:02:20:370CST]00000022servletEcom.ibm.ws.webcontainer.servlet.ServletWrapperserviceSRVE0068E:应用程序plmpcdm_20141126_V1_1_war中servlet/decl/common/comm_iq_in_view.jsp的某一服务方法创建了未捕获到的异常。创建的异常:java.lang.NullPointerExceptionatcom.ibm._jsp._comm_5F_iq_5F_in_5F_view._jspService(_comm_5F_iq_5F_in_5F_view.java:212)atcom.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:831)atcom.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:307)atcom.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:571)atcom.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:247)atcom.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:259)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:895)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)atcom.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)atcom.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)atcom.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239)atcom.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:673)atorg.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)atorg.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1006)atcom.ibm._jsp._comm_5F_censor_5F_ord_5F_view._jspx_meth_c_if_1(_comm_5F_censor_5F_ord_5F_view.java:250)atcom.ibm._jsp._comm_5F_censor_5F_ord_5F_view._jspx_meth_c_if_0(_comm_5F_censor_5F_ord_5F_view.java:358)atcom.ibm._jsp._comm_5F_censor_5F_ord_5F_view._jspService(_comm_5F_censor_5F_ord_5F_view.java:213)atcom.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:831)atcom.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:307)atcom.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:571)atcom.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:247)atcom.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:259)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:895)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)atcom.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)atcom.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)atcom.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:239)atcom.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)atcom.itown.framework.impl.jsp.JSPServiceClient.respond(UnknownSource)atcom.itown.framework.impl.ServiceGateway.invokeService(UnknownSource)atcom.itown.framework.impl.ServiceGateway.doService(UnknownSource)atcom.itown.framework.impl.ServiceGateway.doPost(UnknownSource)atcom.itown.framework.impl.ServiceGateway.doGet(UnknownSource)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:718)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:831)atcom.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:307)atcom.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:571)atcom.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:247)atcom.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:259)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)atcom.itown.util.ajax.AAFilter.doFilter(UnknownSource)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)atcom.itown.util.filter.SetCharacterEncodingFilter.doFilter(UnknownSource)atcom.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)atcom.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)atcom.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:895)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)atcom.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)atcom.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)atcom.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)atcom.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)atcom.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)atcom.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:183)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)atcom.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)atcom.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)atcom.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)atcom.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)atcom.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)atcom.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)atcom.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)异常是这个完全真不明白。。我都没有动这个文件啊
解决方案三:
求救啊今天还要打个版本那现在出这个问题我去。手贱啊
解决方案四:
问题还得看替换的是什么,可能是拦截器的配置类报错了
解决方案五:
引用3楼cyf282501的回复:
问题还得看替换的是什么,可能是拦截器的配置类报错了
替换的是两个logic类里面就是增加了一个查询条件页面都没改动过就报错了
解决方案六:
你部署的时候不是直接替换.class文件后重启吗?你是如何部署?
解决方案七:
首先给你一点建议,动态替换部署前,先备份原来的class,万一出错可以及时还原。接着帮你解决这个问题:出现这个错误两个可能,servlet没有对空指针异常进行捕获,另外检查下你的jsp,有没有为null的请求。
解决方案八:
eclipse下重新部署下程序。可能是没有编译类文件!也可以吧代码退回原来的在试着看看,如果可以运行了那么就说明你的代码编写有问题查查空指针可能出现的地方!