Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Page inclusion error  RSS feed

 
Raghu Nathan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am getting a consistent error on a certain JSP. Let me try to explain the problem as well as I can.

There are two ways to get to a certain page; when I go through the first way, I see no problem and I am able to go forward.

When I try the second way, a portion of the page gets chopped and when I view the source, I see that the HTML has not been rendered completely and there is a error right in the middle of the jsp that says something like "Page cannot be built ..."

When I check the logs I get the following message:

2009-01-23 16:20:39,000 [http-8080-Processor19] ERROR com.epicentric.portalbeans.beans.jspbean - JSP Inclusion Error [beanID 634361852]
java.lang.NullPointerException
at org.apache.jsp.beans.connector_002dshop_002dcommon.jsp.ER_005fCompare_jsp._jspService(ER_005fCompare_jsp.java:1671)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

Does anyone have any clue what this could be?

Thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The null pointer exception is preventing the page from continuing. You need to find out what's causing the null reference.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at org.apache.jsp.beans.connector_002dshop_002dcommon.jsp.ER_005fCompare_jsp._jspService(ER_005fCompare_jsp.java:1671)

To ease debugging I highly recommend to NOT to write raw Java code in JSP files. There they are not for. Write Java code in Java classes. It not only improves maintainability, reusability but also testability and debuggability.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!