org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:

Stack Overflow | xyz rety | 4 months ago
  1. 0

    org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException?

    Stack Overflow | 4 months ago | xyz rety
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
  2. 0

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

    Stack Overflow | 4 years ago | Ameer
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 31 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory AStacktrace: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
  3. 0

    org.apache.jasper.JasperException: Unable to compile class for JSP, tried everything but not able to work around

    Stack Overflow | 3 years ago | neel4soft
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [31] in the generated java file: [C:\Users\nagesh.chauhan\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AdminPanel\org\apache\jsp\index_jsp.java] The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JSP Javabean generating Error

    Stack Overflow | 4 years ago | Java Beginner
    org.apache.jasper.JasperException: Cannot find any information on property 'Name' in a bean of type 'Model.SampleServ'
  6. 0

    Raspberry Pi • View topic - using Pi4J inside JSP fails

    raspberrypi.org | 2 years ago
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 16 in the jsp file: /JavaServerPages/Monitor.jsp GpioController cannot be resolved to a type 13:     14: <%! int i = 5;%> 15: 16: <%! GpioController gpio = GpioFactory.getInstance();%> 17: <%! GpioPinDigitalOutput pin01 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "Output01", PinState.LOW);%> 18: 19: An error occurred at line: 16 in the jsp file: /JavaServerPages/Monitor.jsp GpioFactory cannot be resolved 13:     14: <%! int i = 5;%> 15: 16: <%! GpioController gpio = GpioFactory.getInstance();%> 17: <%! GpioPinDigitalOutput pin01 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "Output01", PinState.LOW);%> 18: 19: An error occurred at line: 17 in the jsp file: /JavaServerPages/Monitor.jsp GpioPinDigitalOutput cannot be resolved to a type 14: <%! int i = 5;%> 15: 16: <%! GpioController gpio = GpioFactory.getInstance();%> 17: <%! GpioPinDigitalOutput pin01 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "Output01", PinState.LOW);%> 18: 19: 20: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> An error occurred at line: 17 in the jsp file: /JavaServerPages/Monitor.jsp gpio cannot be resolved 14: <%! int i = 5;%> 15: 16: <%! GpioController gpio = GpioFactory.getInstance();%> 17: <%! GpioPinDigitalOutput pin01 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "Output01", PinState.LOW);%> 18: 19: 20: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> An error occurred at line: 17 in the jsp file: /JavaServerPages/Monitor.jsp RaspiPin.GPIO_00 cannot be resolved to a type 14: <%! int i = 5;%> 15: 16: <%! GpioController gpio = GpioFactory.getInstance();%> 17: <%! GpioPinDigitalOutput pin01 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "Output01", PinState.LOW);%> 18: 19: 20: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> An error occurred at line: 17 in the jsp file: /JavaServerPages/Monitor.jsp PinState.LOW cannot be resolved to a type 14: <%! int i = 5;%> 15: 16: <%! GpioController gpio = GpioFactory.getInstance();%> 17: <%! GpioPinDigitalOutput pin01 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, "Output01", PinState.LOW);%> 18: 19: 20: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Stacktrace:

  1. Andreas Häber 1 times, last 4 weeks ago
  2. Justin 2 times, last 4 months ago
  3. abrazeneb 4 times, last 5 months ago
  4. andyglick 12 times, last 3 months ago
  5. Plato2000 6 times, last 7 months ago
71 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.jasper.JasperException

    Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:95)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    3. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
    5. org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
    6. org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
    7. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
    8. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
    9. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
    10. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    10 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    1 frame
  4. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
    10 frames
  5. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
    3. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
    4. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    4 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames