Not able to open empathy Game of Empathy

4 replies. Last post: 2011-08-26

Reply to this topic Return to forum

Not able to open empathy
  • Hjallti ★ at 2011-08-26

    For some reason I get an internal server error message when trying to link up to Empathy game

    This is the log:

    type Exception report

    message

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

    exception

    org.apache.jasper.JasperException: Exception in JSP: /jsp/egame/index.jsp:125

    122:

    123:

    124:

    Stacktrace:

    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)

    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)

    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246)

    ng.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:102)

    ng.filter.PlayerFilter.doFilter(PlayerFilter.java:95)

    ng.filter.DbFilter.doFilter(DbFilter.java:40)

    ng.filter.CompressionFilter.doFilter(CompressionFilter.java:238)

    root cause

    java.lang.NullPointerException

    ng.db.Player.getCountryid(Player.java:485)

    org.apache.jsp.jsp.egame.index_jsp._jspService(index_jsp.java:426)

    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)

    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246)

    ng.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:102)

    ng.filter.PlayerFilter.doFilter(PlayerFilter.java:95)

    ng.filter.DbFilter.doFilter(DbFilter.java:40)

    ng.filter.CompressionFilter.doFilter(CompressionFilter.java:238)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

    .

    125:

    126:

    127:

    128:

  • MarleysGhost at 2011-08-26

    The lines that have 123: to 128: also have something that looks like HTML prototypes, in which the percent signs seem to mark places where content is to be generated by executable code. Judging by the “root cause” noted above, I'd guess the call to GetCountryid in the “PlayerFacade.getPlayer(plid).getCountryid()” threw a NullPointerException.

    122:

    123: .

    124:

    125:

    126:   

    127:

    128:

  • maraca at 2011-08-26

    Yes that's right. It's part of a JSP file (which are nothing else than servlets, but you don't have to always print or add the HTML stuff to a string buffer and print later). The are so called scriptlets and allow to write Java code in the JSP file (yes, JSP is like HTML with Java, servlets are like Java with HTML). And <%= are so called expressions, that are evaluated and inserted. The benefit of JSP is, that it allows you to seperate logic from presentation. It looks like getPlayer(plid) returned null and then obviously null.getCountryid() throws a null pointer exception. Well it doesn't help you, but maybe you find it interesting :)

  • somar96 at 2011-08-26

    Seems to work now.

Return to forum

Reply to this topic