wood burning stoves 2.0*
The moose likes Servlets and the fly likes Servlet Class Object Recompiled with Simple Revision but now Generating a 500 error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Class Object Recompiled with Simple Revision but now Generating a 500 error." Watch "Servlet Class Object Recompiled with Simple Revision but now Generating a 500 error." New topic
Author

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

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
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

Joined: Jan 10, 2002
Posts: 61648
    
  67

This is the important part:
root cause

java.lang.NullPointerException
bcc.lib.Context.getDisplayLifeReviewForUser(Context.java:932)


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
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

Joined: Jan 10, 2002
Posts: 61648
    
  67

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

Joined: Oct 27, 2010
Posts: 421
the portion of the servlet referenced in the error is this:



Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
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

Joined: Oct 27, 2010
Posts: 421
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

Joined: Jan 10, 2002
Posts: 61648
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Class Object Recompiled with Simple Revision but now Generating a 500 error.