Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-292

Comment.jsp does not compile ( Preferences.getDateFormat signature changed )

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.x
    • 2.7.x
    • Core & storage
    • None
    • NA

    Description

      The Comment.jsp does not compile :

      org.apache.jasper.JasperException: Unable to compile class for JSP:

      An error occurred at line: 182 in the jsp file: /Comment.jsp
      The method getDateFormat(WikiContext, Preferences.TimeFormat) in the type Preferences is not applicable for the arguments (WikiContext)
      179: }
      180:
      181: Calendar cal = Calendar.getInstance();
      182: SimpleDateFormat fmt = Preferences.getDateFormat( wikiContext );
      183:
      184: pageText.append("\n\n--"signature", "+fmt.format(cal.getTime()));
      185:

      Stacktrace:
      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:316)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:166)
      com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:92)

      Attachments

        1. JSPWIKI-292.patch
          1 kB
          Harry Metske

        Activity

          People

            Unassigned Unassigned
            metskem Harry Metske
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: