TrailingSlash problem

Splash Forums PrettyFaces Users TrailingSlash problem

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

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

    mkrstich
    Participant

    Hi,

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

    pretty-config.xml part:

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

    And exception is:

    Code:
    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(PrettyFilter.java:223)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:74)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
    at com.ocpsoft.pretty.PrettyFilter.encodeUrlWithQueryString(PrettyFilter.java:249)
    at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:199)
    … 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

    #20853

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

    Thanks for testing the snapshots! :-)

    #20854

    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! :-)

    #20855

    mkrstich
    Participant

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

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

    #20856

    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?

    #20857

    mkrstich
    Participant

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

    #20858

    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)

You must be logged in to reply to this topic.

Comments are closed.