HTTP Status 500 – Internal Server Error


Type Exception Report

Message Unable to compile class for JSP:

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: [320] in the jsp file: [/annotation.jsp]
Document cannot be resolved to a type
317:       String line = "";
318:       String context = "";
319:       while ( (line = reader.readLine()) != null ) context += line + '\n';
320:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
321:       Element re = doc.getRootElement();
322:       List<Element> l = re.getChildren("problem");
323:       for ( Element pe : l ){


An error occurred at line: [320] in the jsp file: [/annotation.jsp]
SAXBuilder cannot be resolved to a type
317:       String line = "";
318:       String context = "";
319:       while ( (line = reader.readLine()) != null ) context += line + '\n';
320:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
321:       Element re = doc.getRootElement();
322:       List<Element> l = re.getChildren("problem");
323:       for ( Element pe : l ){


An error occurred at line: [321] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
318:       String context = "";
319:       while ( (line = reader.readLine()) != null ) context += line + '\n';
320:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
321:       Element re = doc.getRootElement();
322:       List<Element> l = re.getChildren("problem");
323:       for ( Element pe : l ){
324:         String cid = pe.getChild("categoryId").getValue();


An error occurred at line: [322] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
319:       while ( (line = reader.readLine()) != null ) context += line + '\n';
320:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
321:       Element re = doc.getRootElement();
322:       List<Element> l = re.getChildren("problem");
323:       for ( Element pe : l ){
324:         String cid = pe.getChild("categoryId").getValue();
325:         String id = pe.getChild("id").getValue();


An error occurred at line: [323] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
320:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
321:       Element re = doc.getRootElement();
322:       List<Element> l = re.getChildren("problem");
323:       for ( Element pe : l ){
324:         String cid = pe.getChild("categoryId").getValue();
325:         String id = pe.getChild("id").getValue();
326:         String author = pe.getChild("userId").getValue();


An error occurred at line: [349] in the jsp file: [/annotation.jsp]
Document cannot be resolved to a type
346:       String line = "";
347:       String context = "";
348:       while ( (line = reader.readLine()) != null ) context += line + '\n';
349:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
350:       Element re = doc.getRootElement();
351:       List<Element> l = re.getChildren("tag");
352:       for ( Element pe : l ){


An error occurred at line: [349] in the jsp file: [/annotation.jsp]
SAXBuilder cannot be resolved to a type
346:       String line = "";
347:       String context = "";
348:       while ( (line = reader.readLine()) != null ) context += line + '\n';
349:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
350:       Element re = doc.getRootElement();
351:       List<Element> l = re.getChildren("tag");
352:       for ( Element pe : l ){


An error occurred at line: [350] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
347:       String context = "";
348:       while ( (line = reader.readLine()) != null ) context += line + '\n';
349:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
350:       Element re = doc.getRootElement();
351:       List<Element> l = re.getChildren("tag");
352:       for ( Element pe : l ){
353:         String name = pe.getChild("name").getValue();


An error occurred at line: [351] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
348:       while ( (line = reader.readLine()) != null ) context += line + '\n';
349:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
350:       Element re = doc.getRootElement();
351:       List<Element> l = re.getChildren("tag");
352:       for ( Element pe : l ){
353:         String name = pe.getChild("name").getValue();
354:         String id = pe.getChild("id").getValue();


An error occurred at line: [352] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
349:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
350:       Element re = doc.getRootElement();
351:       List<Element> l = re.getChildren("tag");
352:       for ( Element pe : l ){
353:         String name = pe.getChild("name").getValue();
354:         String id = pe.getChild("id").getValue();
355:         String author = pe.getChild("user_id").getValue();


An error occurred at line: [373] in the jsp file: [/annotation.jsp]
Document cannot be resolved to a type
370:       String line = "";
371:       String context = "";
372:       while ( (line = reader.readLine()) != null ) context += line + '\n';
373:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
374:       Element re = doc.getRootElement();
375:       List<Element> l = re.getChildren("bookmark");
376:       for ( Element be : l ){


An error occurred at line: [373] in the jsp file: [/annotation.jsp]
SAXBuilder cannot be resolved to a type
370:       String line = "";
371:       String context = "";
372:       while ( (line = reader.readLine()) != null ) context += line + '\n';
373:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
374:       Element re = doc.getRootElement();
375:       List<Element> l = re.getChildren("bookmark");
376:       for ( Element be : l ){


An error occurred at line: [374] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
371:       String context = "";
372:       while ( (line = reader.readLine()) != null ) context += line + '\n';
373:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
374:       Element re = doc.getRootElement();
375:       List<Element> l = re.getChildren("bookmark");
376:       for ( Element be : l ){
377:         String uid = be.getChild("userId").getValue().trim();


An error occurred at line: [375] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
372:       while ( (line = reader.readLine()) != null ) context += line + '\n';
373:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
374:       Element re = doc.getRootElement();
375:       List<Element> l = re.getChildren("bookmark");
376:       for ( Element be : l ){
377:         String uid = be.getChild("userId").getValue().trim();
378:         String bid = be.getChild("id").getValue().trim();


An error occurred at line: [376] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
373:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
374:       Element re = doc.getRootElement();
375:       List<Element> l = re.getChildren("bookmark");
376:       for ( Element be : l ){
377:         String uid = be.getChild("userId").getValue().trim();
378:         String bid = be.getChild("id").getValue().trim();
379:         if ( uid.equals(userID) ) bookmarkID = bid;


An error occurred at line: [394] in the jsp file: [/annotation.jsp]
Document cannot be resolved to a type
391:       String line = "";
392:       String context = "";
393:       while ( (line = reader.readLine()) != null ) context += line + '\n';
394:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
395:       Element re = doc.getRootElement();
396:       List<Element> l = re.getChildren("Like");
397:       for ( Element be : l ){


An error occurred at line: [394] in the jsp file: [/annotation.jsp]
SAXBuilder cannot be resolved to a type
391:       String line = "";
392:       String context = "";
393:       while ( (line = reader.readLine()) != null ) context += line + '\n';
394:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
395:       Element re = doc.getRootElement();
396:       List<Element> l = re.getChildren("Like");
397:       for ( Element be : l ){


An error occurred at line: [395] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
392:       String context = "";
393:       while ( (line = reader.readLine()) != null ) context += line + '\n';
394:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
395:       Element re = doc.getRootElement();
396:       List<Element> l = re.getChildren("Like");
397:       for ( Element be : l ){
398:         String uid = be.getChild("userId").getValue().trim();


An error occurred at line: [396] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
393:       while ( (line = reader.readLine()) != null ) context += line + '\n';
394:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
395:       Element re = doc.getRootElement();
396:       List<Element> l = re.getChildren("Like");
397:       for ( Element be : l ){
398:         String uid = be.getChild("userId").getValue().trim();
399:         String bid = be.getChild("id").getValue().trim();


An error occurred at line: [397] in the jsp file: [/annotation.jsp]
Element cannot be resolved to a type
394:       Document doc = new SAXBuilder().build(new ByteArrayInputStream(context.getBytes()));
395:       Element re = doc.getRootElement();
396:       List<Element> l = re.getChildren("Like");
397:       for ( Element be : l ){
398:         String uid = be.getChild("userId").getValue().trim();
399:         String bid = be.getChild("id").getValue().trim();
400:         if ( uid.equals(userID) ) recommendID = bid;


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:482)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:392)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:362)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:346)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:605)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:400)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:378)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:326)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
	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.


Apache Tomcat/9.0.43