Why did Servlet.service() for servlet jsp throw this exception?

后端 未结 5 1493
闹比i
闹比i 2020-11-27 17:34

I get the following error, what could be the problem?

My context descriptor:




        
5条回答
  •  情歌与酒
    2020-11-27 18:06

    The problem is in your JSP, most likely you are calling a method on an object that is null at runtime.

    It is happening in the _jspInit() call, which is a little more unusual... the problem code is probably a method declaration like <%! %>


    Update: I've only reproduced this by overriding the _jspInit() method. Is that what you're doing? If so, it's not recommended - that's why it starts with an _.

提交回复
热议问题