Java.lang.ClassNotFoundException

Java.lang.ClassNotFoundException Техника

Я новичок в базе данных и не могу найти способ справиться с этой ошибкой. Я пытаюсь установить соединение между моим файлом jsp и сервером sql с помощью eclipse. Я скопировал свой драйвер ms sql в WEB-INF / lib и настроил «Путь сборки», чтобы он указывал на этот драйвер, но выдает ошибку. В чем моя ошибка и как ее исправить?

Вот сообщение об ошибке:

Message java.lang.NullPointerException
Description The server encountered an unexpected condition that prevented it
from fulfilling the request.
Exception
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrap per.java:572)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:48
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause
java.lang.NullPointerException
org.apache.jsp.Datab_jsp$Actor.getActors(Datab_jsp.java:54)
org.apache.jsp.Datab_jsp._jspService(Datab_jsp.java:193)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:44
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.

Мой код в файле jsp:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import ="java.sql.*" %>
<%@ page import=" javax.sql.DataSource" %>
<% Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%! public class Actor { String URL = "jdbc:sqlserver://localhost:1433/demo"; String username = "root"; String password = "7170256aziz"; Connection connection = null; PreparedStatement selectActors = null; ResultSet resultSet = null; public Actor(){ try { connection = DriverManager.getConnection(URL, username, password); selectActors = connection.prepareStatement("SELECT name, id, address FROM demo"); } catch(SQLException e){ e.printStackTrace(); } } public ResultSet getActors(){ try{ resultSet = selectActors.executeQuery(); } catch (SQLException e){ e.printStackTrace(); } return resultSet; } }
%>
<% Actor actor = new Actor(); ResultSet actors = actor.getActors();
%>

2 ответа

Я решил это. Что я сделал:

  1. Поменял драйвер с 6.4 на 4.0

  2. Синтаксис URL изменен на «jdbc: sqlserver: // localhost; databaseName = demo; IntegratedSecurity = true;»

  3. Изменено «ВЫБРАТЬ имя, идентификатор, адрес ИЗ демонстрации» на «ВЫБРАТЬ имя, идентификатор, адрес ОТ людей», где люди — это имя моей таблицы.

  4. Скопировал sqljdbc_auth.dll в Windows / system32

После этого сообщения об ошибках исчезли.

25 Июн 2018 в 14:54

Попробуйте добавить Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); в Actor()

public Actor(){ try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); connection = DriverManager.getConnection(URL, username, password); selectActors = connection.prepareStatement("SELECT name, id, address FROM demo"); } catch(SQLException e){ e.printStackTrace(); }
}

24 Июн 2018 в 13:37

Вот файл сервлета, когда я его запускаю, выдается исключение numberformatexception, здесь клиент — это класс.
ошибка вывода при вводе данных в поля , не знаю, что делать. Поскольку я перепробовал все методы, но он все еще не работает. Поскольку мы размещаем здесь код. вы можете просмотреть его. *

 Type Exception Report Message null Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception java.lang.NumberFormatException: null java.lang.Integer.parseInt(Unknown Source) java.lang.Integer.parseInt(Unknown Source) emlakcontroller.ClientServlet.doPost(ClientServlet.java:53) javax.servlet.http.HttpServlet.service(HttpServlet.java:647) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Note The full stack trace of the root cause is available in the server logs. 
 /** * Servlet implementation class ClientServlet */ @WebServlet("/register") public class ClientServlet extends HttpServlet { private static final long serialVersionUID = 1L; private ClientDAO clientDao=new ClientDAO(); /** * @see HttpServlet#HttpServlet() */ public ClientServlet() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.getWriter().append("Served at: ").append(request.getContextPath()); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String name=request.getParameter("name"); String email=request.getParameter("email"); String password=request.getParameter("password"); int contact=Integer.parseInt(request.getParameter("contact")); Client client=new Client(); client.setName(name); client.setEmail(email); client.setPassword(password); client.setContact(contact); try { clientDao.registerClient(client); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } out.print("Yahoo! register successful"); RequestDispatcher rd=request.getRequestDispatcher("SignupFront.html"); rd.include(request,response); } } 

2 ответа

Скорее всего, request.getParameter("contact"); вернет ноль, и вы попытаетесь преобразовать его в целое число. Попробуй это:

String contactStr = request.getParameter("contact");
if (contactStr != null) { int contact = Integer.parseInt();
}

5 Апр 2021 в 13:13

Возвращенной трассировки стека должно было быть достаточно для устранения этой проблемы.

Как видите, можно отметить следующее:

Exception java.lang.NumberFormatException: null

Это фактически означает, что преобразование в число не удалось из-за значения null. Единственное место, где это возможно, из предоставленного вами кода:

int contact=Integer.parseInt(request.getParameter("contact")); 

Поэтому вам следует сделать следующее:

  1. Убедитесь, что request.getParameter("contact") возвращает ненулевое значение.
  2. Убедитесь, что request.getParameter("contact") возвращает значение, которое может быть проанализировано в Integer, иначе процесс завершится с ошибкой.

5 Апр 2021 в 13:12

Вот мой DeleteController (если я что-то напечатаю в doGet, то получаю от него результаты, а не пустую страницу)

@WebServlet("/delete")
public class MedicinesDeleteController extends HttpServlet { private static final long serialVersionUID = 1L; @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); int id = Integer.parseInt(request.getParameter("Id")); if(request.getUserPrincipal() != null) { MedicinesService query = new MedicinesService(); query.delete(id); response.sendRedirect(request.getContextPath() + "/"); } else { response.sendError(403); } }
}

Удалить функцию из MedicinesService ( я думаю, это моя проблема )

public void delete(int id) { DAOFactory factory = DAOFactory.getDAOFactory(); MedicinesDAO medicinesDao = factory.getMedicinesDAO(); Medicines medicines = new Medicines(); medicines.setId(id); medicinesDao.delete(medicines);
}
private final static String DELETE_MEDICINES = "DELETE FROM medicines WHERE id_medicines=:id_medicines;";
@Override
public void delete(Medicines medicines) { SqlParameterSource namedParameter = new MapSqlParameterSource("Id", medicines.getId()); template.update(DELETE_MEDICINES, namedParameter);
}
medicinesDao.delete(medicines); < MedicicinesService:41
template.update(DELETE_MEDICINES, namedParameter); < MedicinesDAOImpl:77
query.delete(id); <MedicinesDeleteController:31 Type Exception Report Message No value supplied for the SQL parameter 'id_medicines': No value registered for key 'id_medicines' Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception org.springframework.dao.InvalidDataAccessApiUsageException: No value supplied for the SQL parameter 'id_medicines': No value registered for key 'id_medicines' org.springframework.jdbc.core.namedparam.NamedParameterUtils.buildValueArray(NamedParameterUtils.java:355) org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.getPreparedStatementCreator(NamedParameterJdbcTemplate.java:398) org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.getPreparedStatementCreator(NamedParameterJdbcTemplate.java:370) org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.update(NamedParameterJdbcTemplate.java:317) pl.firstaidkit.dao.MedicinesDAOImpl.delete(MedicinesDAOImpl.java:77) pl.firstaidkit.dao.MedicinesDAOImpl.delete(MedicinesDAOImpl.java:1) pl.firstaidkit.service.MedicinesService.delete(MedicinesService.java:41) pl.firstaidkit.controller.MedicinesDeleteController.doPost(MedicinesDeleteController.java:31) javax.servlet.http.HttpServlet.service(HttpServlet.java:660) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) pl.firstaidkit.filter.LoginFilter.doFilter(LoginFilter.java:26) Note The full stack trace of the root cause is available in the server logs.

1 ответ

Первоначальная проблема заключалась в том, что это привело бы к вызову метода http get, а метод doGet () не имел кода для обработки того же

 <a data-hren="delete?drugid=${medicines.id}">Delete</a> 

Вторая проблема заключалась в несоответствии имени параметра MapSqlParameterSource и заполнителя в запросе.

Дополнительно:  Исправить ошибки с 360FsFlt.sys (как скачать и исправить)

28 Янв 2020 в 14:10

Ответов

Эта ошибка является симптомом какой-либо другой проблемы, а не основной причиной, которую вы ищете.

Эта ошибка объясняет, почему пользователь не может быть перенаправлен на страницу с ошибкой. (Причина: сервер уже сбросил часть буфера ответа обратно клиенту — слишком поздно для переключения/перенаправления на страницу с ошибкой.)

Как указано в сообщении об ошибке, проверьте в других местах журналы Apache Tomcat 7 (или отлаживайте приложение другим способом), чтобы найти то, что бросает исключение.

Это обычная ошибка, и может быть обнаружена различная причина. В моем случае я открывал pdf файл из веб-службы, и для этого я выполнял операцию записи в файле с использованием буфера.
 Так любезно измените ниже:

 File outfile = File.createTempFile("temp", ".pdf"); OutputStream os=new FileOutputStream(outfile); byte[] buffer = new byte[1024]; int length; /*copying the contents from input stream to * output stream using read and write methods */ while ((length = is.read(buffer)) > 0){ os.write(buffer, 0, length); }
 File outfile = File.createTempFile("temp", ".pdf"); IOUtils.copy(is, new FileOutputStream(outfile));

и после этого я выполнял операцию ниже:

 javax.ws.rs.core.Response.ResponseBuilder responseBuilder = javax.ws.rs.core.Response .ok(outfile, MediaType.APPLICATION_OCTET_STREAM); responseBuilder.header("content-type","application/pdf"); return responseBuilder.build();

и ошибка решена.
Ура!

Вы можете попробовать эту аннотацию, это поможет, поскольку она исправила мою проблему.

Это определенно поможет, если он не сможет вам помочь, а затем попробуйте изменить это согласно вашему требованию.

@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id") @JsonIdentityReference(alwaysAsId=true)
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" metadata-complete="true" version="3.0">

Надеюсь, это ваши потребности!

Я преодолел исключение, вы можете проверить структуру таблицы. Я выполняю SQL-запрос, созданный спящим в mysql.
Как исключено, было исключено исключение.

[Err] 1054 - Unknown column 'this_.ID' in 'field list'

Я обнаружил, что идентификатор поля отсутствует в таблице. Добавьте идентификатор в таблицу, это нормально.
Надеюсь, что это будет полезно.

Ещё вопросы

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 org.apache.struts2.impl.StrutsActionProxy.getErrorMessage (StrutsActionProxy.java:69) com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.8 logs. 
0:0:0:0:0:0:0:1 - - [03/May/2012:15:19:16 +0530] "GET /KurniawanChap02Struts/ HTTP/1.1" 500 1789

Я также пытался увеличить «уровни регистрации», но даже это не помогает.
Что делать с доступом к подробным журналам сервера?

Я хочу попробовать простую программу, но получить следующую ошибку. Я использую Eclipse Kelper и Tomcat 7.0. Пробовал много вещей, но ничего не работает для меня.

HTTP Status 500 - Servlet.init() for servlet appServlet threw exception
type Exception report
message Servlet.init() for servlet appServlet threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet appServlet threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
root cause
java.lang.IllegalArgumentException org.springframework.asm.ClassReader.<init>(Unknown Source) org.springframework.asm.ClassReader.<init>(Unknown Source) org.springframework.asm.ClassReader.<init>(Unknown Source) org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52) org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102) org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76) org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298) org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230) org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153) org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130) org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285) org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223) org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:652) org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:600) org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:666) org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:519) org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:460) org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136) javax.servlet.GenericServlet.init(GenericServlet.java:160) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.

Существует исходный код:

  • <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
    <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/root-context.xml</param-value>
    </context-param>
    <!-- Creates the Spring Container shared by all Servlets and Filters -->
    <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <!-- Processes application requests -->
    <servlet> <servlet-name>appServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value> </init-param> <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping> <servlet-name>appServlet</servlet-name> <url-pattern>/</url-pattern>
    </servlet-mapping>
  • ?

Может кто-нибудь объяснить, в чем проблема?

11 июль 2014, в 18:06

Ответа

Попробуйте эту конфигурацию или переименуйте свой конфиг соответственно: я предпочитаю назвать сервлет как «диспетчер», а его контекстный файл — dispatcher-servlet.xml. Это сработало для меня.

<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/appServlet/dispatcher-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup>
</servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>

попробуйте это: servlet-context.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"> <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> <dep:moduleId> <dep:groupId>org.apache.geronimo.samples.jws</dep:groupId> <dep:artifactId>Calculator</dep:artifactId> <dep:version>1.0</dep:version> <dep:type>car</dep:type> </dep:moduleId> <dep:dependencies> </dep:dependencies> </dep:environment> <context-root>/jaxws-calculator-1.0</context-root> <service-ref> <service-ref-name>services/Calculator</service-ref-name> <port> <port-name>CalculatorPort</port-name> <protocol>http</protocol> <host>localhost</host> <port>8080</port> <uri>/jaxws-calculator/calculator</uri> </port> </service-ref>
</web-app>

Ошибки Servlet.init() в основном происходят из-за несоответствия версий файлов Jar вашего Spring MVC. Проверьте все свои библиотеки, щелкнув правой кнопкой мыши по проекту> properties> build path и удалите любую несогласованную версию jar.

Также удалите библиотеку jar из папки lib. Снова создайте проект и запустите его.

Ещё вопросы

Сообщество Overcoder

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

Shouldn’t this work out of the box? Here’s the hello1.jsp code:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
<head><title>Hello</title></head>
<body bgcolor="white">
<img src="duke.waving.gif">
<h2>Hello, my name is Duke. What's yours?</h2>
<form method="get">
<input type="text" name="username" size="25">
<p></p>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
<c:if test="${fn:trim(param.username) > \"\"}" > <%@include file="response.jsp" %>
</c:if>
</body>
</html>

@pki-bot

This issue was migrated from Pagure Issue #816. Originally filed by lslebodn on 2013-12-12 10:27:32:

  • Closed as Fixed
  • Assigned to mharmsen (@mharmsen)
  • Associated bugzillas

I tried to install ipa replica (from fedora 19 -> fedora 20)
with command
ipa-replica-install —setup-ca —setup-dns —no-forwarders /var/lib/ipa/replica-info-vm-171.idm.lab.example.com.gpg
but installation of replica failed, because certificate server instance could not be started

Configuring certificate server (pki-tomcatd): Estimated time 3 minutes 30 seconds [1/19]: creating certificate server user [2/19]: configuring certificate server instance [3/19]: stopping certificate server instance to update CS.cfg [4/19]: disabling nonces [5/19]: set up CRL publishing [6/19]: starting certificate server instance
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.
CA did not start in 240s

I think that the most important part from log files is:

bash# cat pki/pki-tomcat/ca/system
0.localhost-startStop-1 - [11/Dec/2013:17:42:55 CET] [3] [3] Cannot build CA chain. Error java.security.cert.CertificateException: Certificate is not a PKCS 11 certificate
0.localhost-startStop-1 - [11/Dec/2013:17:42:56 CET] [13] [3] authz instance DirAclAuthz initialization failed and skipped, error=Property internaldb.ldapconn.port missing value

Version of installed software:

bash# rpm -q freeipa-server pki-ca
freeipa-server-3.3.3-2.fc20.x86_64
pki-ca-10.1.0-1.fc20.noarch

Additional informations:
I was able to install ipa replica with ca (from fedora 19 -> fedora 19)

bash# rpm -q freeipa-server pki-ca
freeipa-server-3.3.3-2.fc19.x86_64
pki-ca-10.0.6-1.fc19.noarch

I will attach all log files and I can provide any other information to fix this bug.

Дополнительно:  Как пользователю передать права root

@pki-bot

@pki-bot

@pki-bot

@pki-bot

Just to confirm. You started with a brand new f20 freeipa instance, and then tried to clone a new freeipa instance (and it failed to restart). Is this something that is consistently repeatable?

According to the logs, it appears that the cloning operation is successful and that a new clone instance is created, but it then fails to restart because one of the self tests for the system certs fails.

Once the installation fails, you should still have a dogtag instance up on the clone. In this case, try to restart it manually.

Also, what is the output of :

certutil -L -d /var/lib/pki/pki-tomcat/alias

and please attach /etc/pki/pki-tomcat/ca/CS.cfg

@pki-bot

Also, once the install fails — and if you are unable to start the service —
then it may make sense to see if the server cert really is the problem.

You can do this by removing the «sslserver» bit from ca.cert.list in /etc/pki/pki-tomcat/ca/CS.cfg
So, replace :
ca.cert.list=signing,ocsp_signing,sslserver,subsystem,audit_signing
with:
ca.cert.list=signing,ocsp_signing,subsystem,audit_signing

This will disable the cert verification self test on startup. Then try to start manually.

You can confirm if the CA is up by doing a :
pki cert-find

@pki-bot

Comment from lslebodn at 2014-01-31 16:37:08

Just to confirm. You started with a brand new f20 freeipa instance, and then tried to clone a new freeipa instance (and it failed to restart). Is this something that is consistently repeatable?

No, I want to create replica of IPA, because VM was created from old template and we want to remove get rid of old VMs.

I was not able to create replica from fedora19->fedora20. So, I decided to upgrade IPA master to fedora 20 and create replica from fedora20->fedora20

Yes, it is consistently repeatable.

According to the logs, it appears that the cloning operation is successful and that a new clone instance is created, but it then fails to restart because one of the self tests for the system certs fails.

Once the installation fails, you should still have a dogtag instance up on the clone. In this case, try to restart it manually.

Yes, this works, but process of creating repoica is not finished and I don’t want to do others steps myself.

Configuring certificate server (pki-tomcatd): Estimated time 3 minutes 30 seconds [1/19]: creating certificate server user [2/19]: configuring certificate server instance [3/19]: stopping certificate server instance to update CS.cfg [4/19]: disabling nonces [5/19]: set up CRL publishing [6/19]: starting certificate server instance
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.
CA did not start in 300s

Also, what is the output of :

certutil -L -d /var/lib/pki/pki-tomcat/alias

sh-4.2# certutil -L -d /var/lib/pki/pki-tomcat/alias
Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI
caSigningCert cert-pki-ca CTu,u,u
auditSigningCert cert-pki-ca u,u,Pu
Server-Cert cert-pki-ca u,u,u
ocspSigningCert cert-pki-ca u,u,u
subsystemCert cert-pki-ca u,u,u

and please attach /etc/pki/pki-tomcat/ca/CS.cfg

@pki-bot

@pki-bot

@pki-bot

Comment from lslebodn at 2014-01-31 16:54:55

I changed line in CA.cfg
ca.cert.list=signing,ocsp_signing,sslserver,subsystem,audit_signing with: ca.cert.list=signing,ocsp_signing,subsystem,audit_signing

HTTP Status 500 - CS server is not ready to serve.
type Exception report
message CS server is not ready to serve.
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.io.IOException: CS server is not ready to serve.	com.netscape.cms.servlet.base.CMSServlet.service(CMSServlet.java:443)	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	java.lang.reflect.Method.invoke(Method.java:606)	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277)	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)	java.security.AccessController.doPrivileged(Native Method)	javax.security.auth.Subject.doAsPrivileged(Subject.java:536)	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.

@pki-bot

Ok — thanks for the info.

So, the correct way for us to reproduce this :

  1. install freeipa on f19
  2. update to f20
  3. create a freeipa replica

We’ll try to reproduce this — and hopefully will run into your issue. We’ll update the ticket as soon as we have results.

Thanks for the patience.

@pki-bot

@pki-bot

@pki-bot

Just a preliminary report of my finding so far.

As an experiment, I asked Endi to issue a new SSL server cert from the master ca (instead of the clone), and then import into the clone ca, then the clone ca started.
At one point, I suspected that even if such clone ca (with a new SSL cert issued from the master) might not issue certs correctly (given the wrong initial SSL server cert issuance), but another experiment proved that it actually did. Once the clone was up, I was able to verify successfully a new ssl server cert issued by this clone.

Currently I am asking Endi to try out a possible workaround in the CS.cfg. He will let us know if it works.

As to why it happened, I suspect it has to do with https://fedorahosted.org/pki/ticket/448, which would cause the default encoding to change from PrintableString to UTF8String. However, regardless of the change, the CA should never change its issuer DN encoding, so I am sure there is a bug in the CA.

Дополнительно:  Root android wear

@pki-bot

X500Name.directoryStringEncodingOrder=PrintableString,UTF8String,T61String,BMPString,UniversalString

The replica’s SSL server cert’s issuer DN is encoded with PrintableString.

@pki-bot

@pki-bot

@pki-bot

  1. (not permanent) automate the workaround (X500Name.directoryStringEncodingOrder param in CS.cfg) into (IPA/Dogtag) installation script(s). Please note that this is not a permanent solution as it makes assumption about what the CA signing cert’s encoding was.

  2. (permanent and preferred) fix in Dogtag so that in the cloning procedure, submit the clone’s SSL server cert CSR to the master CA instead. This will guarantee the correct encodings, and totally avoid asking the clone ca to issue certs in the time period when the clone is still unstable.

Choice could be based on how much time each solution will take to complete and how urgent IPA needs the fix.

@pki-bot

@pki-bot

@pki-bot

@pki-bot

@pki-bot

@pki-bot

@pki-bot

Hi,
thanks for your work.

On jersey 2.25 with Tomcat 7.0, with the hk2 guice-bridge on reload my dependencies are not resolves.
It fails with :

HTTP Status 500 — A MultiException has 3 exceptions. They are


type Exception report

message A MultiException has 3 exceptions. They are:

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

javax.servlet.ServletException: A MultiException has 3 exceptions. They are:
1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl(requiredType=CarlUtils,parent=ShareDocumentService,qualifiers={},position=0,optional=false,self=false,unqualified=null,1924933826)
2. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.airbus.prism.gio.gmao.ws.service.ShareDocumentService errors were found
3. java.lang.IllegalStateException: Unable to perform operation: resolve on com.airbus.prism.gio.gmao.ws.service.ShareDocumentService
A MultiException has 3 exceptions. They are:
org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl(requiredType=CarlUtils,parent=ShareDocumentService,qualifiers={},position=0,optional=false,self=false,unqualified=null,1924933826)
org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:75)
org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:228)
org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162)
org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:767)
org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:706)
org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:172)
org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:284)
org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:74)
org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:109)
org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:92)
org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:61)
org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:318)
org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
org.glassfish.jersey.internal.Errors.process(Errors.java:315)
org.glassfish.jersey.internal.Errors.process(Errors.java:297)
org.glassfish.jersey.internal.Errors.process(Errors.java:267)
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)
org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.google.inject.servlet.DefaultFilterPipeline.dispatch(DefaultFilterPipeline.java:46)
com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)

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


Apache Tomcat/7.0.76

Я создал JSP-проект в Eclipse (с Tomcat 7), но когда я запускаю страницу, я получаю ClassnotFoundExcption.

Я hava уже «google’d» мой вопрос и ничего не нашел.

PS: Извините за плохой английский, я старался изо всех сил

HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
--------------------------------------------------------------------------------
type Exception report
message java.lang.ClassNotFoundException: org.apache.jsp.dbChanges.index_jsp
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.dbChanges.index_jsp org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.ClassNotFoundException: org.apache.jsp.dbChanges.index_jsp java.net.URLClassLoader$1.run(URLClassLoader.java:366) java.net.URLClassLoader$1.run(URLClassLoader.java:355) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:354) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.30 logs.
--------------------------------------------------------------------------------
Apache Tomcat/7.0.30
Jan 14, 2014 11:33:07 AM org.apache.catalina.core.StandardWrapperValve invoke
Schwerwiegend: Servlet.service() for servlet [jsp] in context with path [/dbChanges] threw exception [java.lang.ClassNotFoundException: org.apache.jsp.index_jsp] with root cause
java.lang.ClassNotFoundException: org.apache.jsp.index_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:jsp="http://java.sun.com/xml/ns/javaee/jsp" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>dbChanges</display-name> <session-config> <session-timeout>60</session-timeout> </session-config> <jsp-config> <taglib> <taglib-uri>http://www.springframework.org/tags/form</taglib-uri> <taglib-location>/META-INF/spring-form.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri> <taglib-location>/META-INF/c.tld</taglib-location> </taglib> </jsp-config> <context-param> <param-name>enableSessionManager</param-name> <param-value>false</param-value> </context-param> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <error-page> <error-code>403</error-code> <location>/errors/403.html</location> </error-page> <error-page> <error-code>404</error-code> <location>/errors/404.html</location> </error-page> <!-- <error-page> <error-code>500</error-code> <location>/errors/500.html</location> </error-page> -->
</web-app>

Если вам нужна информация о mor (Файлы и т.д.), просто скажите это.

Надеюсь, ты поможешь мне.
Obsidianfarmer

I’m getting the above error — I’ve searched other answers but I am using Mysql and no proxy, so, they didn’t help.

Basically, I have Jira/Bitbucket/Bamboo/Confluence on a single server — the other 3 apps work fine and are setup on MySQL, I didn’t realise that when I installed Confluence, it was using the embedded database.

It worked fine for a while (using the quickstart/demo files) and we only had about 2 pages in there (only just started using it), and all of a sudden, it would just lag out after clicking edit.

When I logged in, it gave me the health warning that I was using the embedded database.

I uninstalled Confluence and deleted the home directory and application directory (after taking a backup). I then reinstalled the latest version as my installed version was a bit old.

Setup ran fine, I copied over the Mysql java file (same one I used for JIRA), and it passed the database test. Only thing out of the ordinary was I had to type «set global transaction isolation level READ COMMITTED» in SQL due to getting the error.

message Cannot call sendError() after the response has been committed

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

java.lang.IllegalStateException: Cannot call sendError() after the response has been committed	org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:462)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	com.atlassian.confluence.web.filter.DebugFilter$LoggingResponseWrapper.sendError(DebugFilter.java:132)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter$1.sendError(FourOhFourErrorLoggingFilter.java:52)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	com.atlassian.core.filters.HeaderSanitisingResponseWrapper.sendError(HeaderSanitisingResponseWrapper.java:103)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	com.opensymphony.webwork.dispatcher.ServletDispatcher.sendError(ServletDispatcher.java:349)	com.atlassian.confluence.servlet.ConfluenceServletDispatcher.sendError(ConfluenceServletDispatcher.java:104)	com.atlassian.confluence.servlet.ConfluenceServletDispatcher.serviceAction(ConfluenceServletDispatcher.java:97)	com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199)	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	com.atlassian.confluence.util.profiling.ProfilingSiteMeshFilter.doFilter(ProfilingSiteMeshFilter.java:55)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)	com.atlassian.confluence.jmx.JmxFilter.doFilter(JmxFilter.java:98)	com.atlassian.confluence.cache.TransactionalCacheFactoryCleanupFilter.doFilter(TransactionalCacheFactoryCleanupFilter.java:22)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:21)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.UserLoggingContextFilter.doFilter(UserLoggingContextFilter.java:32)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.UserNameHeaderFilter.doFilter(UserNameHeaderFilter.java:25)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.MauEventFilter.doFilter(MauEventFilter.java:42)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.UserThreadLocalFilter.doFilter(UserThreadLocalFilter.java:39)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.ConfluenceTimeoutFilter.doFilter(ConfluenceTimeoutFilter.java:57)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:88)	com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:25)	com.atlassian.confluence.web.filter.ThreadLocalCacheFilter.doFilter(ThreadLocalCacheFilter.java:25)	com.atlassian.confluence.util.AbstractBootstrapHotSwappingFilter$SwapOnBootstrapFilter.doFilter(AbstractBootstrapHotSwappingFilter.java:45)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.AbstractBootstrapHotSwappingFilter.doFilter(AbstractBootstrapHotSwappingFilter.java:35)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:148)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)	com.atlassian.confluence.util.ClusterHeaderFilter.doFilter(ClusterHeaderFilter.java:56)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.ConfluenceOpenSessionInViewFilter.doFilterInternal(ConfluenceOpenSessionInViewFilter.java:38)	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)	com.atlassian.confluence.util.ConfluenceErrorFilter.doFilter(ConfluenceErrorFilter.java:24)	com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99)	com.atlassian.confluence.core.datetime.RequestTimeThreadLocalFilter.doFilter(RequestTimeThreadLocalFilter.java:37)	com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)	com.atlassian.confluence.tenant.TenantGateFilter.lambda$doFilter$0(TenantGateFilter.java:35)	com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)	com.atlassian.confluence.tenant.TenantGateFilter.doFilter(TenantGateFilter.java:37)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.internal.web.filter.spring.IgnoreWebAsyncManagerFilter.doFilter(IgnoreWebAsyncManagerFilter.java:59)	com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter.doFilter(RequestParamValidationFilter.java:51)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.TranslationModeFilter.doFilter(TranslationModeFilter.java:39)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.plugin.servlet.filter.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:72)	com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:49)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.impl.vcache.VCacheRequestContextFilter.doFilter(VCacheRequestContextFilter.java:58)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:33)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:65)	com.atlassian.confluence.web.filter.ZipkinTracingFilter.doFilter(ZipkinTracingFilter.java:54)	com.atlassian.confluence.web.filter.ResponseOutputStreamFilter.doFilter(ResponseOutputStreamFilter.java:25)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:59)	com.atlassian.confluence.web.ConfluenceJohnsonFilter.doFilter(ConfluenceJohnsonFilter.java:32)	com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.impl.servlet.HoldingUntilStartedFilter.doFilter(HoldingUntilStartedFilter.java:88)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:64)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)

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


Apache Tomcat/8.0.48

 Can anyone offer any assistance?

5 answers

1 accepted

Suggest an answer

People on a hot air balloon lifted by Community discussions

Still have a question?

Get fast answers from people who know.

HTTP Status 500 — java. lang. NullPointerException


type Exception report

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

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException	com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)	com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:47)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:37)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:29)	com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:71)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
java.lang.NullPointerException	com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)	com.atlassian.confluence.util.LazyComponentReference$Accessor.get(LazyComponentReference.java:46)	com.atlassian.util.concurrent.Lazy$Strong.create(Lazy.java:85)	com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)	com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)	com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:47)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:37)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:29)	com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:71)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)

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


Apache Tomcat/7.0.52

2 answers

1 accepted

Suggest an answer

People on a hot air balloon lifted by Community discussions

Still have a question?

Get fast answers from people who know.

Оцените статью
Master Hi-technology