• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Everybody's invited. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic