TrailingSlash problem

Splash Forums PrettyFaces Users TrailingSlash problem

This topic contains 6 replies, has 2 voices, and was last updated by  Christian Kaltepoth 10 years, 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #17903



    I encountered PrettyException when trying to navigate my static pretty URL.

    pretty-config.xml part:

    <rewrite trailingSlash=”append”/>
    <url-mapping id=”services”>
    <pattern value=”/services”/>
    <view-id value=”/faces/public/services.xhtml”/>

    And exception is:

    Apr 1, 2011 6:18:22 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet default threw exception
    com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/services/]>
    at com.ocpsoft.pretty.PrettyFilter.rewrite(
    at com.ocpsoft.pretty.PrettyFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.http11.Http11AprProcessor.process(
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
    Caused by: java.lang.NullPointerException
    at com.ocpsoft.pretty.PrettyFilter.encodeUrlWithQueryString(
    at com.ocpsoft.pretty.PrettyFilter.rewrite(
    … 16 more

    My configuration is Tomcat 6.0.26, JSF 2.0.2 Mojjara, PrettyFaces 3.2.1-snapshot.

    What could be causing this?

    Thank you


    This seems to be a bug! I’ll have a look at this today.

    Thanks for testing the snapshots! :-)


    I just committed a fix for this issue! Could you try the latest snapshot prettyfaces-jsf2-3.2.1-20110402.070324-16.jar?

    Thanks you again for using the snapshots! As you see it helps to fix bugs that would otherwise have found their way to the release versions! :-)



    Thank you, but i still have same issue. :(

    When I type URL, it is formatted correctly, but throws same exception.


    Could you post the new stacktrace? It cannot be the same as the line numbers changed due to my last commit. Are you sure you are using a recent snapshot?



    It works now, when I “clean and build” with latest snapshot. Thank you very much!


    Great! You can now update the version to “3.2.1” as it has just been released. No more need to use the snapshots! :)

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.