从tomcat 7.0.63更新到7.0.82,现在oracle Connection无效

时间:2017-11-17 17:31:10

标签: oracle apache tomcat java-ee datasource

我在Linux上运行apache tomcat 7.0.63上的应用程序,它在server.xml GlobalNamingResources部分使用数据源设置。然后在context.xml中我们有一个引用它的ResourceLink设置。这些在应用程序的WEB-INF / web.xml文件中引用。在7.0.63上运行时,它运行良好,但是当在7.0.82二进制文件上运行时,我收到错误。我一直在深入研究这一段时间,任何人都有任何有用的提示,关于接下来要看什么?

以下是我看到的内容:

首先,初始错误:

SEVERE: Servlet.service() for servlet [jsp] in context with path [/Foobar] threw exception [An exception occurred processing JSP page /foobar/foobar.jsp at line 46

来自同一日志的RootCause:

Stacktrace:] with root cause
java.lang.NullPointerException
        at foo.bar.dal.OracleDatabaseConnector.open(OracleDatabaseConnector.java:31)
        at foo.bar.dal.DataAccess.openConnection(DataAccess.java:81)
        at foo.bar.referralForm.ReferralFormPageBean.lookupUserFromLdap(ReferralFormPageBean.java:412)
        at foo.bar.referralForm.ReferralFormPageBean.initIfLoaded(ReferralFormPageBean.java:58)
        at foo.bar.referralForm.ReferralFormPageBean.setResponse(ReferralFormPageBean.java:53)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.jasper.runtime.JspRuntimeLibrary.handleSetPropertyExpression(JspRuntimeLibrary.java:562)
        at org.apache.jsp.ReferralForm.InvestigativeReferralForm_jsp._jspService(InvestigativeReferralForm_jsp.java:166)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:744)

0 个答案:

没有答案