Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Class Object Recompiled with Simple Revision but now Generating a 500 error.

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I recently changed some code:

This is the code I changed. I changed it to say "Financial Reports" where you see the Financial Reports in the code; before the servlet only said Reports. I recompiled and sent the servlet to the server. As you can see this involves xml.

For some reason now I am getting an error like it isn't refreshing.

Here is the code and the error is a 500.

Thank you,



Error:

type Exception report

message

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

exception

javax.servlet.ServletException
bcc.lib.BaseBccServlet.doPost(BaseBccServlet.java:106)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

javax.servlet.ServletException
bcc.lib.BasePageJQuery.doServletFunction(BasePageJQuery.java:48)
bcc.lib.BaseBccServlet.doPost(BaseBccServlet.java:102)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

java.lang.NullPointerException
bcc.lib.Context.getDisplayLifeReviewForUser(Context.java:932)
bcc.lib.NavBar._generateHTML(NavBar.java:145)
bcc.lib.NavBar.getHTML(NavBar.java:114)
bcc.lib.Context.getNavBarHTML(Context.java:1098)
bcc.lib.BasePageJQuery.getNavBar(BasePageJQuery.java:312)
bcc.lib.BasePageJQuery.buildPage(BasePageJQuery.java:84)
bcc.lib.BasePageJQuery.doServletFunction(BasePageJQuery.java:42)
bcc.lib.BaseBccServlet.doPost(BaseBccServlet.java:102)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.17
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the important part:
root cause

java.lang.NullPointerException
bcc.lib.Context.getDisplayLifeReviewForUser(Context.java:932)
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I am having difficulty with understanding what happened. All I did was change a couple of words and now it is generating an error 500. When I roll it back it makes no difference.

Could you please help me understand why now an error 500?

thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are saying that when you reverted back to the previous code that things are still failing, then it's clear that something else has changed. Again, the stack trace points you to the line of the error. You'll need to figure out why a null reference is occurring.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the portion of the servlet referenced in the error is this:



 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed there was an error referring to this on another servlet called NavBar.java, it was corrected to say this:

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Holy moly, this is pretty complicated.

I reverted back to a previous version in subversion and the error went away.

Thanks anyway,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now that you know what revision does not exhibit the failure, it will be easy to do a diff and see what the changes were. One of the changes must be the cause of the failure.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic