gpt4 book ai didi

java 500错误: Oozie web console 4. 3

转载 作者:行者123 更新时间:2023-12-02 02:56:10 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 16.04 LTS 中配置 Oozie,问题是 oozie 运行良好,除了在访问 Web 控制台时出现以下错误

Java 版本:1.8

Oozie 版本:4.3

Hadoop:2.3.7

错误

HTTP Status 500 - java.lang.NullPointerException

type Exception report

message java.lang.NullPointerException

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

exception

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:542)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:594)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:553)
org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)

root cause

java.lang.NullPointerException
org.apache.jsp.index_jsp._jspInit(index_jsp.java:25)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:164)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:594)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:553)
org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)

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

最佳答案

这是 Jasper 引擎特有的类加载器问题。实际上,会有两个 JSP-API 文件,一个在 WEB-INF/lib 中包含 jsp-api-2.1.jar,另一个在 Tomcat/lib 中包含 jsp-api.jar。在我的例子中,两者都在类路径中。首先停止oozie服务器。然后,从 WEB-INF/lib 中移动或删除 jsp-api-2.1.jar,以确保类加载器不会选择它。本质上,Tomcat 应该从 Tomcat/lib 中获取它。现在重新启动 oozie 服务器。它应该有效。我遇到了同样的问题,并按照我上面提到的方法进行操作,它起作用了。 :-)

关于java 500错误: Oozie web console 4. 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43051872/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com